混淆后,提示 Binary XML 文件行 #24: Binary XML 文件行 #24: 解压类 LinearLayout 时出错
optimizationpasses 5
-dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -dontpreverify -verbose -printmapping priguardMapping.txt -optimizations !code/simplification/artithmetic,!field/,!class/merging/
################common############### -keep public class * implements com.jess.arms.integration.ConfigModule
entity class not participating in optimization
-keep class com.jess.arms.widget.** { *; } # custom controls not participating in optimization -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } -keepnames class * implements java.io.Serializable -keepattributes Signature -keepclassmembers class **.R$* {*;} -ignorewarnings -keepclassmembers class **.R$* { public static ; }
-keepclassmembers enum * { # keep native methods from being optimized, because of the special nature of enum classes, the following two methods will be reflected and called, public static **[] values(); public static ** valueOf(java.lang.String); }
################support############### -keep class android.support.** { ; } -keep interface android.support.* { ; } -dontwarn android.support.*
################alipay############### -keep class com.alipay.android.app.IAlixPay{;} -keep class com.alipay.android.app.IAlixPay$Stub{;} -keep class com.alipay.android.app.IRemoteServiceCallback{;} -keep class com.alipay.android.app.IRemoteServiceCallback$Stub{;} -keep class com.alipay.sdk.app.PayTask{ public *;} -keep class com.alipay.sdk.app.AuthTask{ public *;}
################retrofit############### -dontwarn retrofit2.** -keep class retrofit2.** { *; } -keepattributes Signature -keepattributes Exceptions
内容来源: JessYanCoding/MVPArms