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();
}

转载于:https://www.cnblogs.com/tmlee/p/5390984.html

你可能感兴趣的:(Proguard配置注解)