proguard-rules.pro 4.0 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. #
  8. ## If your project uses WebView with JS, uncomment the following
  9. ## and specify the fully qualified class name to the JavaScript interface
  10. ## class:
  11. ##-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  12. ## public *;
  13. ##}
  14. #
  15. ## Uncomment this to preserve the line number information for
  16. ## debugging stack traces.
  17. ##-keepattributes SourceFile,LineNumberTable
  18. #
  19. ## If you keep the line number information, uncomment this to
  20. ## hide the original source file name.
  21. ##-renamesourcefileattribute SourceFile
  22. #-dontshrink
  23. #
  24. ### Log
  25. #-assumenosideeffects class android.util.Log {
  26. # public static *** d(...);
  27. # public static *** v(...);
  28. # public static *** w(...);
  29. # public static *** i(...);
  30. # public static *** wtf(...);
  31. #}
  32. #-assumenosideeffects class com.atmob.common.logging.AtmobLog {
  33. # public static *** d(...);
  34. # public static *** v(...);
  35. # public static *** w(...);
  36. # public static *** i(...);
  37. # public static *** wtf(...);
  38. #}
  39. #
  40. ### native
  41. #-keepclasseswithmembernames class * {
  42. # native <methods>;
  43. #}
  44. #
  45. ### res
  46. #-keepclassmembers class **.R$* {
  47. # public static <fields>;
  48. #}
  49. #
  50. ### ViewBinding & DataBinding
  51. #-keep class * implements androidx.viewbinding.ViewBinding {
  52. # public inflate(android.view.LayoutInflater);
  53. # public inflate(android.view.LayoutInflater, android.view.ViewGroup, boolean);
  54. #}
  55. #
  56. ## common config end
  57. #
  58. ## RxJava start
  59. #-dontwarn java.util.concurrent.Flow*
  60. ## RxJava end
  61. #
  62. ## Glide start
  63. #-keep public class * implements com.bumptech.glide.module.GlideModule
  64. #-keep class * extends com.bumptech.glide.module.AppGlideModule {
  65. # <init>(...);
  66. #}
  67. #-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  68. # **[] $VALUES;
  69. # public *;
  70. #}
  71. #-keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder {
  72. # *** rewind();
  73. #}
  74. ## Glide end
  75. #
  76. ## Turbo start
  77. #-keep class com.plutus.common.turbo.beans.** {*;}
  78. ## Turbo end
  79. #
  80. ## bugly start
  81. #-dontwarn com.tencent.bugly.**
  82. #-keep public class com.tencent.bugly.**{*;}
  83. ## bugly end
  84. #
  85. ## Umeng start
  86. #-keep class com.umeng.** {*;}
  87. #-keep class org.repackage.** {*;}
  88. #-keepclassmembers class * {
  89. # public <init> (org.json.JSONObject);
  90. #}
  91. #-keepclassmembers enum * {
  92. # public static **[] values();
  93. # public static ** valueOf(java.lang.String);
  94. #}
  95. ## Umeng end
  96. #
  97. ##oaid miitmdid start
  98. #-keep class com.bun.miitmdid.core.** {*;}
  99. #-keep class com.bun.lib.**{*;}
  100. #-keep class XI.CA.XI.**{*;}
  101. #-keep class XI.K0.XI.**{*;}
  102. #-keep class XI.XI.K0.**{*;}
  103. #-keep class XI.vs.K0.**{*;}
  104. #-keep class XI.xo.XI.XI.**{*;}
  105. #-keep class com.asus.msa.SupplementaryDID.**{*;}
  106. #-keep class com.asus.msa.sdid.**{*;}
  107. #-keep class com.bun.lib.**{*;}
  108. #-keep class com.bun.miitmdid.**{*;}
  109. #-keep class com.huawei.hms.ads.identifier.**{*;}
  110. #-keep class com.samsung.android.deviceidservice.**{*;}
  111. #-keep class org.json.**{*;}
  112. #-keep public class com.netease.nis.sdkwrapper.Utils {
  113. #public <methods>;
  114. #}
  115. #
  116. ##
  117. #-keep class androidx.core.content.FileProvider { *; }
  118. #-keep class android.support.v4.content.FileProvider { *; }
  119. #
  120. ##oaid miitmdid end
  121. #
  122. ##flutter start
  123. #
  124. #-keep class io.flutter.** { *; }
  125. #
  126. ##flutter end
  127. #
  128. #
  129. # ==================================== Glide ====================================
  130. -keep class com.bumptech.glide.**{*;}
  131. # Glide Webp Decoder start
  132. -keep public class com.bumptech.glide.integration.webp.WebpImage { *; }
  133. -keep public class com.bumptech.glide.integration.webp.WebpFrame { *; }
  134. -keep public class com.bumptech.glide.integration.webp.WebpBitmapFactory { *; }
  135. # Glide Webp Decoder end
  136. # ==================================== Gson ====================================
  137. -keepattributes Signature
  138. -keep class com.google.gson.reflect.TypeToken { *; }
  139. -keep class * extends com.google.gson.reflect.TypeToken
  140. -keepattributes AnnotationDefault,RuntimeVisibleAnnotations