greenDAO混淆配置

 分类:Android, Java 阅读 (3,899)  No Responses »
1月 092017
 

如果你的项目中使用了greenDAO并且使用了混淆,那么请为greenDAO增加混淆配置,如下:

官方原文地址:http://greenrobot.org/greendao/documentation/updating-to-greendao-3-and-annotations/#Step_1_Update_dependencies_to_V3

Eventbus混淆配置

 分类:Android, Java 阅读 (3,085)  No Responses »
1月 092017
 

如果你的项目使用了Eventbus并且使用混淆,那么你需要为Eventbus配置混淆,代码如下:

官方原文地址:http://greenrobot.org/eventbus/documentation/proguard/

10月 272016
 

使用gson进行数据解析后,必须在混淆脚本中添加如下代码,如果不加的话json解析就会失败。

其中-keep class com.bcoder.test.datatypes.** { *; }这一行class和.**之间改成你的Bean类所在的包名