proguard-rules.pro 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt
  4. # You can edit the include path and order by changing the proguardFiles
  5. # directive in build.gradle.
  6. #
  7. # For more details, see
  8. # http://developer.android.com/guide/developing/tools/proguard.html
  9. # Add any project specific keep options here:
  10. # If your project uses WebView with JS, uncomment the following
  11. # and specify the fully qualified class name to the JavaScript interface
  12. # class:
  13. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  14. # public *;
  15. #}
  16. # Proguard Cocos2d-x-lite for release
  17. -keep public class com.cocos.** { *; }
  18. -dontwarn com.cocos.**
  19. # Proguard Apache HTTP for release
  20. -keep class org.apache.http.** { *; }
  21. -dontwarn org.apache.http.**
  22. # Proguard okhttp for release
  23. -keep class okhttp3.** { *; }
  24. -dontwarn okhttp3.**
  25. -keep class okio.** { *; }
  26. -dontwarn okio.**
  27. # Proguard Android Webivew for release. you can comment if you are not using a webview
  28. -keep public class android.net.http.SslError
  29. -keep public class android.webkit.WebViewClient
  30. -keep public class com.google.** { *; }
  31. -dontwarn android.webkit.WebView
  32. -dontwarn android.net.http.SslError
  33. -dontwarn android.webkit.WebViewClient
  34. # This is generated automatically by the Android Gradle plugin.
  35. -dontwarn android.hardware.BatteryState
  36. -dontwarn android.hardware.lights.Light
  37. -dontwarn android.hardware.lights.LightState$Builder
  38. -dontwarn android.hardware.lights.LightState
  39. -dontwarn android.hardware.lights.LightsManager$LightsSession
  40. -dontwarn android.hardware.lights.LightsManager
  41. -dontwarn android.hardware.lights.LightsRequest$Builder
  42. -dontwarn android.hardware.lights.LightsRequest
  43. -dontwarn android.net.ssl.SSLSockets
  44. -dontwarn android.os.VibratorManager
  45. ## Log
  46. -assumenosideeffects class android.util.Log {
  47. public static *** d(...);
  48. public static *** v(...);
  49. public static *** w(...);
  50. public static *** i(...);
  51. public static *** wtf(...);
  52. }
  53. -assumenosideeffects class com.atmob.common.logging.AtmobLog {
  54. public static *** d(...);
  55. public static *** v(...);
  56. public static *** w(...);
  57. public static *** i(...);
  58. public static *** wtf(...);
  59. }
  60. ## native
  61. -keepclasseswithmembernames class * {
  62. native <methods>;
  63. }
  64. ## res
  65. -keepclassmembers class **.R$* {
  66. public static <fields>;
  67. }
  68. ## ViewBinding & DataBinding
  69. -keep class * implements androidx.viewbinding.ViewBinding {
  70. public inflate(android.view.LayoutInflater);
  71. public inflate(android.view.LayoutInflater, android.view.ViewGroup, boolean);
  72. }
  73. # common config end
  74. # RxJava start
  75. -dontwarn java.util.concurrent.Flow*
  76. # RxJava end
  77. # Glide start
  78. -keep public class * implements com.bumptech.glide.module.GlideModule
  79. -keep class * extends com.bumptech.glide.module.AppGlideModule {
  80. <init>(...);
  81. }
  82. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  83. **[] $VALUES;
  84. public *;
  85. }
  86. -keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder {
  87. *** rewind();
  88. }
  89. # Glide end
  90. # ifly start
  91. -keep class com.iflytek.**{*;}
  92. -keepattributes Signature
  93. # ifly end
  94. # room bean start
  95. -keep class com.atmob.ai.data.local.bean.ChatHistoryBean{*;}
  96. # room bean end
  97. # Turbo start
  98. -keep class com.plutus.common.turbo.beans.** {*;}
  99. # Turbo end
  100. # bugly start
  101. -dontwarn com.tencent.bugly.**
  102. -keep public class com.tencent.bugly.**{*;}
  103. # bugly end
  104. # Umeng start
  105. -keep class com.umeng.** {*;}
  106. -keep class org.repackage.** {*;}
  107. -keepclassmembers class * {
  108. public <init> (org.json.JSONObject);
  109. }
  110. -keepclassmembers enum * {
  111. public static **[] values();
  112. public static ** valueOf(java.lang.String);
  113. }
  114. # Umeng end
  115. # RxJava start
  116. -dontwarn java.util.concurrent.Flow*
  117. # RxJava end
  118. #oaid miitmdid start
  119. -keep class com.bun.miitmdid.core.** {*;}
  120. -keep class com.bun.lib.**{*;}
  121. -keep class XI.CA.XI.**{*;}
  122. -keep class XI.K0.XI.**{*;}
  123. -keep class XI.XI.K0.**{*;}
  124. -keep class XI.vs.K0.**{*;}
  125. -keep class XI.xo.XI.XI.**{*;}
  126. -keep class com.asus.msa.SupplementaryDID.**{*;}
  127. -keep class com.asus.msa.sdid.**{*;}
  128. -keep class com.bun.lib.**{*;}
  129. -keep class com.bun.miitmdid.**{*;}
  130. -keep class com.huawei.hms.ads.identifier.**{*;}
  131. -keep class com.samsung.android.deviceidservice.**{*;}
  132. -keep class org.json.**{*;}
  133. -keep public class com.netease.nis.sdkwrapper.Utils {
  134. public <methods>;
  135. }
  136. #oaid miitmdid end
  137. #wechat start
  138. -keep class com.tencent.mm.opensdk.** {
  139. *;
  140. }
  141. -keep class com.tencent.wxop.** {
  142. *;
  143. }
  144. -keep class com.tencent.mm.sdk.** {
  145. *;
  146. }
  147. #wechat end
  148. #tencent aai start
  149. -keepclasseswithmembernames class * {
  150. native <methods>;
  151. }
  152. -keep public class com.tencent.aai.*
  153. -keep public class com.qq.wx.voice.*
  154. #tencent aai end
  155. #ucrop start
  156. -dontwarn com.yalantis.ucrop**
  157. -keep class com.yalantis.ucrop** { *; }
  158. -keep interface com.yalantis.ucrop** { *; }
  159. #ucrop end
  160. #tencent open sdk start
  161. -keep class com.tencent.**{*;}
  162. #tencent open sdk end
  163. -keep class org.libpag.** {*;}
  164. -keep class androidx.exifinterface.** {*;}