Proguard 保留所有 java 接口
Proguard keep all java interfaces
如何保留所有 api 接口和像回调一样使用的内部接口?
我没有在那里找到它 http://proguard.sourceforge.net/manual/examples.html
URL 已经提供了答案。
A fast but sub-optimal alternative would be simply keeping all interfaces with "-keep interface *".
2016/3/25更新 保留Interface
.
中的所有方法
-keep interface * {
<methods>;
}
2017/7/24更新 Java8的class文件可以存储方法参数反射的元数据,包括Interface
. Proguard v5.3 可以通过以下 options 保留这些元数据:
-keepattributes MethodParameters
如何保留所有 api 接口和像回调一样使用的内部接口? 我没有在那里找到它 http://proguard.sourceforge.net/manual/examples.html
URL 已经提供了答案。
A fast but sub-optimal alternative would be simply keeping all interfaces with "-keep interface *".
2016/3/25更新 保留Interface
.
-keep interface * {
<methods>;
}
2017/7/24更新 Java8的class文件可以存储方法参数反射的元数据,包括Interface
. Proguard v5.3 可以通过以下 options 保留这些元数据:
-keepattributes MethodParameters