2019独角兽企业重金招聘Python工程师标准>>>
https://github.com/greenrobot/EventBus
使用的这个库在github的官网README中没有写明相应混淆的配置.
经过对官网的查询,在一个小角落还是被我找到了。
-keepattributes *Annotation*
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
# Only required if you use AsyncExecutor
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
<init>(Java.lang.Throwable);
}
链接:http://greenrobot.org/eventbus/documentation/proguard/