proguard-rules.pro 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. -dontshrink
  20. ## Log
  21. -assumenosideeffects class android.util.Log {
  22. public static *** d(...);
  23. public static *** v(...);
  24. public static *** w(...);
  25. public static *** i(...);
  26. public static *** wtf(...);
  27. }
  28. -assumenosideeffects class com.atmob.common.logging.AtmobLog {
  29. public static *** d(...);
  30. public static *** v(...);
  31. public static *** w(...);
  32. public static *** i(...);
  33. public static *** wtf(...);
  34. }
  35. ## native
  36. -keepclasseswithmembernames class * {
  37. native <methods>;
  38. }
  39. ## res
  40. -keepclassmembers class **.R$* {
  41. public static <fields>;
  42. }
  43. ## ViewBinding & DataBinding
  44. -keep class * implements androidx.viewbinding.ViewBinding {
  45. public inflate(android.view.LayoutInflater);
  46. public inflate(android.view.LayoutInflater, android.view.ViewGroup, boolean);
  47. }
  48. # common config end
  49. # RxJava start
  50. -dontwarn java.util.concurrent.Flow*
  51. # RxJava end
  52. # Glide start
  53. -keep public class * implements com.bumptech.glide.module.GlideModule
  54. -keep class * extends com.bumptech.glide.module.AppGlideModule {
  55. <init>(...);
  56. }
  57. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  58. **[] $VALUES;
  59. public *;
  60. }
  61. -keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder {
  62. *** rewind();
  63. }
  64. # Glide end
  65. # Turbo start
  66. -keep class com.plutus.common.turbo.beans.** {*;}
  67. # Turbo end
  68. # bugly start
  69. -dontwarn com.tencent.bugly.**
  70. -keep public class com.tencent.bugly.**{*;}
  71. # bugly end
  72. # Umeng start
  73. -keep class com.umeng.** {*;}
  74. -keep class org.repackage.** {*;}
  75. -keepclassmembers class * {
  76. public <init> (org.json.JSONObject);
  77. }
  78. -keepclassmembers enum * {
  79. public static **[] values();
  80. public static ** valueOf(java.lang.String);
  81. }
  82. # Umeng end
  83. #oaid miitmdid start
  84. -keep class com.bun.miitmdid.core.** {*;}
  85. -keep class com.bun.lib.**{*;}
  86. -keep class XI.CA.XI.**{*;}
  87. -keep class XI.K0.XI.**{*;}
  88. -keep class XI.XI.K0.**{*;}
  89. -keep class XI.vs.K0.**{*;}
  90. -keep class XI.xo.XI.XI.**{*;}
  91. -keep class com.asus.msa.SupplementaryDID.**{*;}
  92. -keep class com.asus.msa.sdid.**{*;}
  93. -keep class com.bun.lib.**{*;}
  94. -keep class com.bun.miitmdid.**{*;}
  95. -keep class com.huawei.hms.ads.identifier.**{*;}
  96. -keep class com.samsung.android.deviceidservice.**{*;}
  97. -keep class org.json.**{*;}
  98. -keep public class com.netease.nis.sdkwrapper.Utils {
  99. public <methods>;
  100. }
  101. #
  102. -keep class androidx.core.content.FileProvider { *; }
  103. -keep class android.support.v4.content.FileProvider { *; }
  104. #oaid miitmdid end
  105. #flutter start
  106. -keep class io.flutter.** { *; }
  107. #flutter end
  108. # ==================================== Glide ====================================
  109. -keep class com.bumptech.glide.**{*;}
  110. # Glide Webp Decoder start
  111. -keep public class com.bumptech.glide.integration.webp.WebpImage { *; }
  112. -keep public class com.bumptech.glide.integration.webp.WebpFrame { *; }
  113. -keep public class com.bumptech.glide.integration.webp.WebpBitmapFactory { *; }
  114. # Glide Webp Decoder end
  115. # ==================================== Gson ====================================
  116. -keepattributes Signature
  117. -keep class com.google.gson.reflect.TypeToken { *; }
  118. -keep class * extends com.google.gson.reflect.TypeToken
  119. -keepattributes AnnotationDefault,RuntimeVisibleAnnotations