proguard-rules.pro 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. # AMAP start
  106. -keep class com.amap.api.maps.**{*;}
  107. -keep class com.autonavi.amap.mapcore.*{*;}
  108. -keep class com.amap.api.trace.**{*;}
  109. -keep class com.amap.api.maps.**{*;}
  110. -keep class com.autonavi.**{*;}
  111. -keep class com.amap.api.trace.**{*;}
  112. -keep class com.amap.api.location.**{*;}
  113. -keep class com.amap.api.fence.**{*;}
  114. -keep class com.loc.**{*;}
  115. -keep class com.autonavi.aps.amapapi.model.**{*;}
  116. -keep class com.amap.api.services.**{*;}
  117. -keep class com.amap.api.maps2d.**{*;}
  118. -keep class com.amap.api.mapcore2d.**{*;}
  119. -keep class com.amap.api.navi.**{*;}
  120. -keep class com.autonavi.**{*;}
  121. # AMAP end
  122. #七鱼客服
  123. -dontwarn com.qiyukf.**
  124. -keep class com.qiyukf.** {*;}
  125. -dontwarn com.netease.**
  126. -keep class com.netease.** {*;}
  127. -dontwarn org.slf4j.**
  128. -keep class org.slf4j.** { *; }
  129. #flutter start
  130. -keep class io.flutter.** { *; }
  131. #flutter end
  132. -dontwarn com.google.android.play.core.splitcompat.SplitCompatApplication
  133. -dontwarn com.google.android.play.core.splitinstall.SplitInstallException
  134. -dontwarn com.google.android.play.core.splitinstall.SplitInstallManager
  135. -dontwarn com.google.android.play.core.splitinstall.SplitInstallManagerFactory
  136. -dontwarn com.google.android.play.core.splitinstall.SplitInstallRequest$Builder
  137. -dontwarn com.google.android.play.core.splitinstall.SplitInstallRequest
  138. -dontwarn com.google.android.play.core.splitinstall.SplitInstallSessionState
  139. -dontwarn com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListener
  140. -dontwarn com.google.android.play.core.tasks.OnFailureListener
  141. -dontwarn com.google.android.play.core.tasks.OnSuccessListener
  142. -dontwarn com.google.android.play.core.tasks.Task
  143. # Please add these rules to your existing keep rules in order to suppress warnings.
  144. # This is generated automatically by the Android Gradle plugin.
  145. -dontwarn com.android.id.impl.IdProviderImpl
  146. -dontwarn com.huawei.hmf.tasks.OnFailureListener
  147. -dontwarn com.huawei.hmf.tasks.OnSuccessListener
  148. -dontwarn com.huawei.hmf.tasks.Task
  149. -dontwarn com.huawei.hms.aaid.HmsInstanceId
  150. -dontwarn com.huawei.hms.aaid.entity.AAIDResult
  151. -dontwarn com.huawei.hms.opendevice.OpenDevice
  152. -dontwarn com.huawei.hms.opendevice.OpenDeviceClient
  153. -dontwarn com.huawei.hms.support.api.opendevice.OdidResult
  154. -dontwarn okhttp3.Call
  155. -dontwarn okhttp3.Callback
  156. -dontwarn okhttp3.Connection
  157. -dontwarn okhttp3.EventListener$Factory
  158. -dontwarn okhttp3.EventListener
  159. -dontwarn okhttp3.Handshake
  160. -dontwarn okhttp3.HttpUrl
  161. -dontwarn okhttp3.Interceptor$Chain
  162. -dontwarn okhttp3.Interceptor
  163. -dontwarn okhttp3.MediaType
  164. -dontwarn okhttp3.OkHttpClient$Builder
  165. -dontwarn okhttp3.OkHttpClient
  166. -dontwarn okhttp3.Protocol
  167. -dontwarn okhttp3.Request$Builder
  168. -dontwarn okhttp3.Request
  169. -dontwarn okhttp3.RequestBody
  170. -dontwarn okhttp3.Response$Builder
  171. -dontwarn okhttp3.Response
  172. -dontwarn okhttp3.ResponseBody
  173. -dontwarn okio.BufferedSink
  174. -dontwarn okio.BufferedSource
  175. -dontwarn okio.Okio
  176. -dontwarn okio.Sink
  177. -dontwarn okio.Source