Proguard配置注解

 

Proguard配置去混淆注解

示例greenrobot的配置

-keepattributes *Annotation*
-keep class org.greenrobot.** {*;}
-keepattributes Subscribe
#-keepclassmembers class * {
# @fully.qualified.package.AnnotationType *;
#}
-keepclassmembers class * {
@org.greenrobot.eventbus.Subscribe *;
}
-keepclassmembers class * {
public void onEvent();
}
posted @ 2016-04-14 14:28  nick_leeli  阅读(1830)  评论(0编辑  收藏  举报