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/