proguard-rules.pro 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. #ARouter
  20. -keep public class com.alibaba.android.arouter.routes.**{*;}
  21. -keep public class com.alibaba.android.arouter.facade.**{*;}
  22. -keep class * implements com.alibaba.android.arouter.facade.template.ISyringe{*;}
  23. # 如果使用了 byType 的方式获取 Service,需添加下面规则,保护接口
  24. -keep interface * implements com.alibaba.android.arouter.facade.template.IProvider
  25. # 如果使用了 单类注入,即不定义接口实现 IProvider,需添加下面规则,保护实现
  26. # -keep class * implements com.alibaba.android.arouter.facade.template.IProvider
  27. #glide
  28. -dontwarn com.bumptech.glide.**
  29. #GSYVideoPlayer
  30. -keep class com.shuyu.gsyvideoplayer.video.** { *; }
  31. -dontwarn com.shuyu.gsyvideoplayer.video.**
  32. -keep class com.shuyu.gsyvideoplayer.video.base.** { *; }
  33. -dontwarn com.shuyu.gsyvideoplayer.video.base.**
  34. -keep class com.shuyu.gsyvideoplayer.utils.** { *; }
  35. -dontwarn com.shuyu.gsyvideoplayer.utils.**
  36. -keep class tv.danmaku.ijk.** { *; }
  37. -dontwarn tv.danmaku.ijk.**
  38. -keep public class * extends android.view.View{
  39. *** get*();
  40. void set*(***);
  41. public <init>(android.content.Context);
  42. public <init>(android.content.Context, android.util.AttributeSet);
  43. public <init>(android.content.Context, android.util.AttributeSet, int);
  44. }
  45. #极光
  46. -dontoptimize
  47. -dontpreverify
  48. -dontwarn cn.jpush.**
  49. -keep class cn.jpush.** { *; }
  50. -keep class * extends cn.jpush.android.helpers.JPushMessageReceiver { *; }
  51. -dontwarn cn.jiguang.**
  52. -keep class cn.jiguang.** { *; }
  53. #离线推送 华为
  54. #-ignorewarning
  55. -keepattributes *Annotation*
  56. -keepattributes Exceptions
  57. -keepattributes InnerClasses
  58. -keepattributes Signature
  59. -keepattributes SourceFile,LineNumberTable
  60. -keep class com.hianalytics.android.**{*;}
  61. -keep class com.huawei.updatesdk.**{*;}
  62. -keep class com.huawei.hms.**{*;}
  63. #小米
  64. -dontwarn com.xiaomi.push.**
  65. -keep class com.xiaomi.push.** { *; }
  66. #OPPO
  67. -dontwarn com.coloros.mcsdk.**
  68. -keep class com.coloros.mcsdk.** { *; }
  69. -dontwarn com.heytap.**
  70. -keep class com.heytap.** { *; }
  71. -dontwarn com.mcs.**
  72. -keep class com.mcs.** { *; }
  73. #vivo
  74. -dontwarn com.vivo.push.**
  75. -keep class com.vivo.push.**{*; }
  76. -keep class com.vivo.vms.**{*; }
  77. #meizu
  78. -dontwarn com.meizu.cloud.**
  79. -keep class com.meizu.cloud.** { *; }
  80. #bind 工具库
  81. -keepclassmembers class ** implements androidx.viewbinding.ViewBinding {
  82. public static ** bind(***);
  83. public static ** inflate(***);
  84. }
  85. #微信
  86. -keep class com.tencent.mm.opensdk.** {
  87. *;
  88. }
  89. -keep class com.tencent.wxop.** {
  90. *;
  91. }
  92. -keep class com.tencent.mm.sdk.** {
  93. *;
  94. }
  95. #oss
  96. -keep class com.alibaba.sdk.android.oss.** { *; }
  97. -dontwarn okio.**
  98. -dontwarn org.apache.commons.codec.binary.**