EventBus3.0-混淆
来源:互联网 发布:sql降序排列 编辑:程序博客网 时间:2024/04/30 06:53
混淆(ProGuard)
ProGuard会把方法名简化和移除没有调用过的方法。因为订阅者的处理方法不是直接调用的,所以ProGuard会导致项目出错。因而如果开发者开启项目混淆,必须让ProGuard保留这个事件处理方法。只要在混淆文件使用以下代码块,就可以保证订阅者的处理方法不会被移除。
-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);}
1 0
- EventBus3.0-混淆
- Eventbus3.0
- EventBus3.0
- EventBus3.0
- EventBus3.0
- EventBus3.0使用总结
- EventBus3.0 总结
- EventBus3.0使用总结
- EventBus3.0使用详解
- EventBus3.0使用
- EventBus3.0的使用
- EventBus3.0学习小结
- EventBus3.0 study
- EventBus3.0源码分析
- EventBus3.0源码分析
- EventBus3.0源码解读
- EventBus3.0使用
- EventBus3.0使用详解
- 【二分图匹配】HDU1083-Courses【模板题】
- git 提交大小限制efrror: RPC failed; result=22, HTTP code = 411
- Cookie/Session机制详解
- Git 学习笔记 --- 安装和基本配置
- React/React Native 的ES5 ES6写法对照表
- EventBus3.0-混淆
- 路径3
- SSH框架总结
- shell中各种括号的作用()、(())、[]、[[]]、{}
- sigaction
- hdu-1166敌兵布阵(线段树 部分数据的更新及求和)
- JDK内置工具使用
- ConcurrentHashMap实现原理-源码调试
- XMLHttpRequest用法介绍