proguard-rules.pro 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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 org.cocos2dx.** { *; }
  18. -dontwarn org.cocos2dx.**
  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. -dontwarn android.webkit.WebView
  31. -dontwarn android.net.http.SslError
  32. -dontwarn android.webkit.WebViewClient
  33. # keep anysdk for release. you can comment if you are not using anysdk
  34. -keep public class com.anysdk.** { *; }
  35. -dontwarn com.anysdk.**
  36. -keep class com.bytedance.sdk.openadsdk.** { *; }
  37. -keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;}
  38. -keep class com.pgl.sys.ces.* {*;}
  39. -keep class com.tencent.mm.opensdk.** {
  40. *;
  41. }
  42. -keep class com.tencent.wxop.** {
  43. *;
  44. }
  45. -keep class com.tencent.mm.sdk.** {
  46. *;
  47. }
  48. -ignorewarnings
  49. -dontwarn com.umeng.**
  50. -dontwarn com.taobao.**
  51. -dontwarn anet.channel.**
  52. -dontwarn anetwork.channel.**
  53. -dontwarn org.android.**
  54. -dontwarn org.apache.thrift.**
  55. -dontwarn com.xiaomi.**
  56. -dontwarn com.huawei.**
  57. -dontwarn com.meizu.**
  58. -keepattributes *Annotation*
  59. -keep class com.taobao.** {*;}
  60. -keep class org.android.** {*;}
  61. -keep class anet.channel.** {*;}
  62. -keep class com.umeng.** {*;}
  63. -keep class com.xiaomi.** {*;}
  64. -keep class com.huawei.** {*;}
  65. -keep class com.meizu.** {*;}
  66. -keep class org.apache.thrift.** {*;}
  67. -keep class com.alibaba.sdk.android.**{*;}
  68. -keep class com.ut.**{*;}
  69. -keep class com.ta.**{*;}
  70. -keep class com.uc.** {*;}
  71. -keep public class **.R$*{
  72. public static final int *;
  73. }
  74. -keepclassmembers class * {
  75. public <init> (org.json.JSONObject);
  76. }
  77. -keepclassmembers enum * {
  78. public static **[] values();
  79. public static ** valueOf(java.lang.String);
  80. }
  81. # Add project specific ProGuard rules here.
  82. # You can control the set of applied configuration files using the
  83. # proguardFiles setting in build.gradle.
  84. #
  85. # For more details, see
  86. # http://developer.android.com/guide/developing/tools/proguard.html
  87. # If your project uses WebView with JS, uncomment the following
  88. # and specify the fully qualified class name to the JavaScript interface
  89. # class:
  90. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  91. # public *;
  92. #}
  93. # Uncomment this to preserve the line number information for
  94. # debugging stack traces.
  95. -keepattributes SourceFile,LineNumberTable
  96. # If you keep the line number information, uncomment this to
  97. # hide the original source file name.
  98. -renamesourcefileattribute SourceFile
  99. -keepparameternames
  100. -keep class com.bytedance.applog.AppLog { public *; }
  101. -keep public interface com.bytedance.applog.IDataObserver { *; }
  102. -keep public interface com.bytedance.applog.IAppParam { *; }
  103. -keep public interface com.bytedance.applog.IExtraParams { *; }
  104. -keep public interface com.bytedance.applog.IPicker { *; }
  105. -keep public interface com.bytedance.applog.IOaidObserver { *; }
  106. -keep class com.bytedance.applog.IOaidObserver$Oaid { *; }
  107. -keep class com.bytedance.applog.GameReportHelper { public *; }
  108. -keep class com.bytedance.applog.WhalerGameHelper { *; }
  109. -keep class com.bytedance.applog.WhalerGameHelper$Result { *; }
  110. -keep class com.bytedance.applog.InitConfig { public *; }
  111. -keep class com.bytedance.applog.util.UriConfig { public *; }
  112. -keep class com.bytedance.applog.tracker.Tracker { public *; }
  113. -keep class com.bytedance.applog.picker.Picker { public *; }
  114. -keep class com.bytedance.applog.tracker.WebViewJsUtil { *; }
  115. -keep interface com.bytedance.base_bdtracker.bt { public *; }
  116. -keep class com.bytedance.base_bdtracker.bt$a { public *; }
  117. -keep class com.bytedance.base_bdtracker.bt$a$a { public *; }
  118. # Add project specific ProGuard rules here.
  119. # You can control the set of applied configuration files using the
  120. # proguardFiles setting in build.gradle.
  121. #
  122. # For more details, see
  123. # http://developer.android.com/guide/developing/tools/proguard.html
  124. # If your project uses WebView with JS, uncomment the following
  125. # and specify the fully qualified class name to the JavaScript interface
  126. # class:
  127. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  128. # public *;
  129. #}
  130. # Uncomment this to preserve the line number information for
  131. # debugging stack traces.
  132. #-keepattributes SourceFile,LineNumberTable
  133. # If you keep the line number information, uncomment this to
  134. # hide the original source file name.
  135. #-renamesourcefileattribute SourceFile
  136. -dontwarn com.tencent.smtt.sdk.WebView
  137. -dontwarn com.tencent.smtt.sdk.WebChromeClient
  138. -dontwarn androidx.annotation.Nullable
  139. -dontwarn androidx.annotation.NonNull
  140. -dontwarn com.google.android.gms.ads.identifier.AdvertisingIdClient
  141. -dontwarn com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
  142. -dontwarn androidx.appcompat.app.AlertDialog
  143. -dontwarn androidx.appcompat.view.menu.ListMenuItemView
  144. -dontwarn androidx.recyclerview.widget.RecyclerView
  145. -dontwarn androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  146. -dontwarn androidx.viewpager.widget.ViewPager
  147. -dontwarn androidx.recyclerview.widget.RecyclerView
  148. -dontwarn androidx.annotation.RequiresApi
  149. -dontwarn androidx.fragment.app.FragmentActivity
  150. -dontwarn androidx.fragment.app.Fragment
  151. -dontwarn androidx.annotation.AnyThread
  152. -dontwarn androidx.annotation.WorkerThread
  153. #Topon
  154. -keep class com.androidquery.callback.** {*;}
  155. -keep class com.ss.sys.ces.* {*;}
  156. -keep class com.bytedance.sdk.openadsdk.** { *; }
  157. -keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;}
  158. -keep class com.pgl.sys.ces.* {*;}
  159. -keep class com.qq.e.** {
  160. public protected *;
  161. }
  162. -keep class android.support.v4.**{
  163. public *;
  164. }
  165. -keep class android.support.v7.**{
  166. public *;
  167. }
  168. -keep class MTT.ThirdAppInfoNew {
  169. *;
  170. }
  171. -keep class com.tencent.** {
  172. *;
  173. }
  174. -dontwarn dalvik.**
  175. -dontwarn com.tencent.smtt.**
  176. -keep public class com.anythink.network.**
  177. -keepclassmembers class com.anythink.network.** {
  178. public *;
  179. }
  180. -dontwarn com.anythink.hb.**
  181. -keep class com.anythink.hb.**{ *;}
  182. -dontwarn com.anythink.china.api.**
  183. -keep class com.anythink.china.api.**{ *;}
  184. # new in v5.6.6
  185. -keep class com.anythink.myoffer.ui.**{ *;}
  186. -keepclassmembers public class com.anythink.myoffer.ui.** {
  187. public *;
  188. }