123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- # Add project specific ProGuard rules here.
- # You can control the set of applied configuration files using the
- # proguardFiles setting in build.gradle.
- #
- # For more details, see
- # http://developer.android.com/guide/developing/tools/proguard.html
- # If your project uses WebView with JS, uncomment the following
- # and specify the fully qualified class name to the JavaScript interface
- # class:
- #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
- # public *;
- #}
- # Uncomment this to preserve the line number information for
- # debugging stack traces.
- #-keepattributes SourceFile,LineNumberTable
- # If you keep the line number information, uncomment this to
- # hide the original source file name.
- #-renamesourcefileattribute SourceFile
- #ARouter
- -keep public class com.alibaba.android.arouter.routes.**{*;}
- -keep public class com.alibaba.android.arouter.facade.**{*;}
- -keep class * implements com.alibaba.android.arouter.facade.template.ISyringe{*;}
- # 如果使用了 byType 的方式获取 Service,需添加下面规则,保护接口
- -keep interface * implements com.alibaba.android.arouter.facade.template.IProvider
- # 如果使用了 单类注入,即不定义接口实现 IProvider,需添加下面规则,保护实现
- # -keep class * implements com.alibaba.android.arouter.facade.template.IProvider
- #glide
- -dontwarn com.bumptech.glide.**
- #GSYVideoPlayer
- -keep class com.shuyu.gsyvideoplayer.video.** { *; }
- -dontwarn com.shuyu.gsyvideoplayer.video.**
- -keep class com.shuyu.gsyvideoplayer.video.base.** { *; }
- -dontwarn com.shuyu.gsyvideoplayer.video.base.**
- -keep class com.shuyu.gsyvideoplayer.utils.** { *; }
- -dontwarn com.shuyu.gsyvideoplayer.utils.**
- -keep class tv.danmaku.ijk.** { *; }
- -dontwarn tv.danmaku.ijk.**
- -keep public class * extends android.view.View{
- *** get*();
- void set*(***);
- public <init>(android.content.Context);
- public <init>(android.content.Context, android.util.AttributeSet);
- public <init>(android.content.Context, android.util.AttributeSet, int);
- }
- #极光
- -dontoptimize
- -dontpreverify
- -dontwarn cn.jpush.**
- -keep class cn.jpush.** { *; }
- -keep class * extends cn.jpush.android.helpers.JPushMessageReceiver { *; }
- -dontwarn cn.jiguang.**
- -keep class cn.jiguang.** { *; }
- #离线推送 华为
- #-ignorewarning
- -keepattributes *Annotation*
- -keepattributes Exceptions
- -keepattributes InnerClasses
- -keepattributes Signature
- -keepattributes SourceFile,LineNumberTable
- -keep class com.hianalytics.android.**{*;}
- -keep class com.huawei.updatesdk.**{*;}
- -keep class com.huawei.hms.**{*;}
- #小米
- -dontwarn com.xiaomi.push.**
- -keep class com.xiaomi.push.** { *; }
- #OPPO
- -dontwarn com.coloros.mcsdk.**
- -keep class com.coloros.mcsdk.** { *; }
- -dontwarn com.heytap.**
- -keep class com.heytap.** { *; }
- -dontwarn com.mcs.**
- -keep class com.mcs.** { *; }
- #vivo
- -dontwarn com.vivo.push.**
- -keep class com.vivo.push.**{*; }
- -keep class com.vivo.vms.**{*; }
- #meizu
- -dontwarn com.meizu.cloud.**
- -keep class com.meizu.cloud.** { *; }
- #bind 工具库
- -keepclassmembers class ** implements androidx.viewbinding.ViewBinding {
- public static ** bind(***);
- public static ** inflate(***);
- }
- #微信
- -keep class com.tencent.mm.opensdk.** {
- *;
- }
- -keep class com.tencent.wxop.** {
- *;
- }
- -keep class com.tencent.mm.sdk.** {
- *;
- }
- #oss
- -keep class com.alibaba.sdk.android.oss.** { *; }
- -dontwarn okio.**
- -dontwarn org.apache.commons.codec.binary.**
|