説明なし

proguard-rules.pro 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # Add project specific ProGuard rules here.
  2. # You can control the set of applied configuration files using the
  3. # proguardFiles setting in build.gradle.
  4. #
  5. # For more details, see
  6. # http://developer.android.com/guide/developing/tools/proguard.html
  7. # If your project uses WebView with JS, uncomment the following
  8. # and specify the fully qualified class name to the JavaScript interface
  9. # class:
  10. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  11. # public *;
  12. #}
  13. # Uncomment this to preserve the line number information for
  14. # debugging stack traces.
  15. #-keepattributes SourceFile,LineNumberTable
  16. # If you keep the line number information, uncomment this to
  17. # hide the original source file name.
  18. #-renamesourcefileattribute SourceFile
  19. -keepattributes *Annotation*
  20. -keepclassmembers class * {
  21. # @org.greenrobot.eventbus.Subscribe<methods>;
  22. }
  23. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  24. # And if you use AsyncExecutor:
  25. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  26. <init>(java.lang.Throwable);
  27. }
  28. #greenDao混淆处理
  29. -keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
  30. public static void dropTable(org.greenrobot.greendao.database.Database, boolean);
  31. public static void createTable(org.greenrobot.greendao.database.Database, boolean);
  32. }
  33. -keep class org.greenrobot.greendao.**{*;}
  34. -keepclassmembers class * extends org.greenrobot.greendao.AbstractDao { public static java.lang.String TABLENAME; }
  35. -keep class **$Properties{*;}
  36. #淘宝SDK混淆处理
  37. -keepattributes Signature
  38. -ignorewarnings
  39. -keep class javax.ws.rs.** { *; }
  40. -keep class com.alibaba.fastjson.** { *; }
  41. -dontwarn com.alibaba.fastjson.**
  42. -keep class sun.misc.Unsafe { *; }
  43. -dontwarn sun.misc.**
  44. -keep class com.taobao.** {*;}
  45. -keep class com.alibaba.** {*;}
  46. -dontwarn com.taobao.**
  47. -dontwarn com.alibaba.**
  48. -keep class com.ta.** {*;}
  49. -dontwarn com.ta.**
  50. -keep class org.json.** {*;}
  51. -keepattributes *Annotation*
  52. -keep interface mtopsdk.mtop.global.init.IMtopInitTask {*;}
  53. -keep class * implements mtopsdk.mtop.global.init.IMtopInitTask {*;}
  54. -keep class tv.danmaku.ijk.media.player.TaobaoMediaPlayer{*;}
  55. -keep class tv.danmaku.ijk.media.player.TaobaoMediaPlayer$*{*;}
  56. -keep class tv.taobao.media.player.TaobaoMediaPlayer{*;}
  57. -keep class tv.taobao.media.player.TaobaoMediaPlayer$*{*;}
  58. #友盟混淆配置
  59. -keep class com.umeng.** {*;}
  60. -keep class org.repackage.** {*;}
  61. -keep class com.uyumao.** { *; }
  62. -keepclassmembers class * {
  63. public <init> (org.json.JSONObject);
  64. }
  65. -keepclassmembers enum * {
  66. public static **[] values();
  67. public static ** valueOf(java.lang.String);
  68. }
  69. -keep public class [com.kx.liedouYX].R$*{
  70. public static final int *;
  71. }
  72. #retrofit2 混淆
  73. -dontwarn javax.annotation.**
  74. -dontwarn javax.inject.**
  75. # OkHttp3
  76. -dontwarn okhttp3.logging.**
  77. -keep class okhttp3.internal.**{*;}
  78. -dontwarn okio.**
  79. # Retrofit
  80. -dontwarn retrofit2.**
  81. -keep class retrofit2.** { *; }
  82. -keepattributes Signature
  83. -keepattributes Exceptions
  84. # RxJava RxAndroid
  85. -dontwarn sun.misc.**
  86. -keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
  87. long producerIndex;
  88. long consumerIndex;
  89. }
  90. -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
  91. rx.internal.util.atomic.LinkedQueueNode producerNode;
  92. }
  93. -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
  94. rx.internal.util.atomic.LinkedQueueNode consumerNode;
  95. }
  96. # Gson
  97. -keep class com.google.gson.stream.** { *; }
  98. -keepattributes EnclosingMethod
  99. -keep class com.kx.liedouYX.entity.**{*;}#改成自己的实体类包
  100. -keep class com.kx.liedouYX.db.**{*;}#改成自己的实体类包
  101. #EventBus
  102. -keepattributes *Annotation*
  103. -keepclassmembers class ** {
  104. @org.greenrobot.eventbus.Subscribe <methods>;
  105. }
  106. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  107. # Only required if you use AsyncExecutor
  108. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  109. <init>(java.lang.Throwable);
  110. }
  111. #弹窗插件库
  112. -dontwarn com.lxj.xpopup.widget.**
  113. -keep class com.lxj.xpopup.widget.**{*;}