# Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFile,LineNumberTable # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile -keepattributes *Annotation* -keepclassmembers class * { # @org.greenrobot.eventbus.Subscribe; } -keep enum org.greenrobot.eventbus.ThreadMode { *; } # And if you use AsyncExecutor: -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { (java.lang.Throwable); } #greenDao混淆处理 -keepclassmembers class * extends org.greenrobot.greendao.AbstractDao { public static void dropTable(org.greenrobot.greendao.database.Database, boolean); public static void createTable(org.greenrobot.greendao.database.Database, boolean); } -keep class org.greenrobot.greendao.**{*;} -keepclassmembers class * extends org.greenrobot.greendao.AbstractDao { public static java.lang.String TABLENAME; } -keep class **$Properties{*;} #淘宝SDK混淆处理 -keepattributes Signature -ignorewarnings -keep class javax.ws.rs.** { *; } -keep class com.alibaba.fastjson.** { *; } -dontwarn com.alibaba.fastjson.** -keep class sun.misc.Unsafe { *; } -dontwarn sun.misc.** -keep class com.taobao.** {*;} -keep class com.alibaba.** {*;} -dontwarn com.taobao.** -dontwarn com.alibaba.** -keep class com.ta.** {*;} -dontwarn com.ta.** -keep class org.json.** {*;} -keepattributes *Annotation* -keep interface mtopsdk.mtop.global.init.IMtopInitTask {*;} -keep class * implements mtopsdk.mtop.global.init.IMtopInitTask {*;} -keep class tv.danmaku.ijk.media.player.TaobaoMediaPlayer{*;} -keep class tv.danmaku.ijk.media.player.TaobaoMediaPlayer$*{*;} -keep class tv.taobao.media.player.TaobaoMediaPlayer{*;} -keep class tv.taobao.media.player.TaobaoMediaPlayer$*{*;} #友盟混淆配置 -keep class com.umeng.** {*;} -keep class org.repackage.** {*;} -keep class com.uyumao.** { *; } -keepclassmembers class * { public (org.json.JSONObject); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep public class [com.kx.liedouYX].R$*{ public static final int *; } #retrofit2 混淆 -dontwarn javax.annotation.** -dontwarn javax.inject.** # OkHttp3 -dontwarn okhttp3.logging.** -keep class okhttp3.internal.**{*;} -dontwarn okio.** # Retrofit -dontwarn retrofit2.** -keep class retrofit2.** { *; } -keepattributes Signature -keepattributes Exceptions # RxJava RxAndroid -dontwarn sun.misc.** -keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { long producerIndex; long consumerIndex; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { rx.internal.util.atomic.LinkedQueueNode producerNode; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { rx.internal.util.atomic.LinkedQueueNode consumerNode; } # Gson -keep class com.google.gson.stream.** { *; } -keepattributes EnclosingMethod -keep class com.kx.liedouYX.entity.**{*;}#改成自己的实体类包 -keep class com.kx.liedouYX.db.**{*;}#改成自己的实体类包 #EventBus -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); } #弹窗插件库 -dontwarn com.lxj.xpopup.widget.** -keep class com.lxj.xpopup.widget.**{*;}