美文网首页
android EventBus 3.0 混淆配置

android EventBus 3.0 混淆配置

作者: lhccccc | 来源:发表于2017-08-11 09:22 被阅读0次

https://github.com/greenrobot/EventBus

使用的这个库在github的官网README中没有写明相应混淆的配置.

经过对官网的查询,在一个小角落还是被我找到了。

-keepattributes *Annotation*

-keepclassmembers class ** {

@org.greenrobot.eventbus.Subscribe ;

}

-keep enum org.greenrobot.eventbus.ThreadMode { *; }

# Only required if you use AsyncExecutor

-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {

(Java.lang.Throwable);

}

链接:http://greenrobot.org/eventbus/documentation/proguard/

相关文章

网友评论

      本文标题:android EventBus 3.0 混淆配置

      本文链接:https://www.haomeiwen.com/subject/nvclrxtx.html