打包混淆

-keepattributes Exceptions,InnerClasses

-keepattributes Signature

 //RongCloud SDK
-keep class io.rong.** {*;}
-keep class cn.rongcloud.** {*;}
-keep class * implements io.rong.imlib.model.MessageContent {*;}
-dontwarn io.rong.push.**
-dontnote com.xiaomi.**
-dontnote com.google.android.gms.gcm.**
-dontnote io.rong.**

 //VoIP
-keep class io.agora.rtc.** {*;}

//红包
-keep class com.google.gson.** { *; }
-keep class com.uuhelper.Application.** {*;}
-keep class net.sourceforge.zbar.** { *; }
-keep class com.google.android.gms.** { *; }
-keep class com.alipay.** {*;}
-keep class com.jrmf360.rylib.** {*;}

-ignorewarnings

另外,需要使用下面的代码 keep 自定义的 BroadcastReceiver。这里 io.rong.app.DemoNotificationReceiver 改成APP的应用自定义的完整类名

-keep class io.rong.app.DemoNotificationReceiver {*;}