123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- # Add project specific ProGuard rules here.
- # By default, the flags in this file are appended to flags specified
- # in /Users/shanpin_lxw/Desktop/Leexw/DevelopmentTool/android-sdk/tools/proguard/proguard-android.txt
- # You can edit the include path and order by changing the proguardFiles
- # directive in build.gradle.
- #
- # For more details, see
- # http://developer.android.com/guide/developing/tools/proguard.html
- # Add any project specific keep options here:
- # 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 *;
- #}
- # ------ 通用配置 ------
- -optimizationpasses 5
- -dontusemixedcaseclassnames
- -dontskipnonpubliclibraryclasses
- -dontpreverify
- -verbose
- -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
- # ------ 官方模板推荐不需要混淆的组件 ------
- -keep public class * extends android.app.Application
- -keep public class * extends android.app.Activity
- -keep public class * extends android.app.Service
- -keep public class * extends android.content.ContentProvider
- -keep public class * extends android.content.BroadcastReceiver
- -keep public class * extends android.app.backup.BackupAgentHelper
- -keep public class * extends android.preference.Preference
- -keep public class * extends android.widget.PopupWindow
- -keep class * extends android.webkit.WebChromeClient {*;}
- -keep class * extends android.webkit.WebViewClient {*;}
- -keep public class com.android.vending.licensing.ILicensingService
- # 忽略自定义控件
- -keep public class * extends android.view.View {
- public <init>(android.content.Context);
- public <init>(android.content.Context, android.util.AttributeSet);
- public <init>(android.content.Context, android.util.AttributeSet, int);
- public void set*(...);
- *** get*();
- }
- -keepclassmembers class * extends android.app.Activity{
- public void *(android.view.View);
- }
- # 忽略原生方法
- -keepclasseswithmembernames class * {
- native <methods>;
- }
- # 忽略枚举
- -keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
- }
- # 忽略序列化实体类
- -keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
- }
- -keepnames class * implements java.io.Serializable
- # 保留Annotation不混淆
- -keepattributes *Annotation*,InnerClasses
- # 避免混淆泛型
- -keepattributes Signature
- # 保持R文件不被混淆
- -keep class **.R$* {*;}
- # ------ 应用定制混淆方案 ------
- -keep class com.xsbanruo.common.activity.**{*;}
- -keep class com.xsbanruo.common.fragment.**{*;}
- -keep class com.xsbanruo.common.adapter.**{*;}
- -keep public class * extends com.shanp.base.pop.AbstractPop
- -keep class com.xsbanruo.data.model.**{*;}
- -keep class com.xsbanruo.**.vo.**{*;}
- -keep class **.*$JavaScriptInterface{*;}
- -keepclassmembers class * {
- public <init> (org.json.JSONObject);
- }
- # ------ 企业私有sdk混淆方案 ------
- -keep class com.shanp.sms.**{*;}
- -keep class com.shanp.base.util.GsonUtil{*;}
- -keep class com.shanp.widget.wheel.**{*;}
- -dontwarn com.shanp.widget.wheel.**
- # ------ 保护第三方jar包,不做混淆处理----------
- -keep class android.support.**{*;}
- -dontwarn android.support.**
- -keep public class * extends androidx.**
- -dontwarn androidx.**
- -keep public class * extends com.google.android.**
- -dontwarn com.google.android.**
- -keep public class * extends android.support.v4.**
- -keep public class * extends android.support.v7.**
- -keep public class * extends android.support.annotation.**
- # Gson
- -keep class com.google.gson.**{*;}
- -dontwarn com.google.gson.**
- # 分享
- -keep class cn.sharesdk.**{*;}
- -dontwarn cn.sharesdk.**
- -keep class com.mob.**{*;}
- -dontwarn com.mob.**
- # 腾讯相关
- -keep class com.tencent.**{*;}
- -dontwarn com.tencent.**
- -keep class com.qq.**{*;}
- -dontwarn com.qq.**
- -keep class src.com.qq.**{*;}
- -dontwarn src.com.qq.**
- # 新浪相关
- -keep class com.sina.**{*;}
- -dontwarn com.sina.**
- # 阿里巴巴 支付宝 阿里云
- -keep class com.taobao.** {*;}
- -dontwarn com.taobao.**
- -keep class com.alibaba.** {*;}
- -dontwarn com.alibaba.**
- -keep class org.json.alipay.** {*;}
- -dontwarn org.json.alipay.**
- -keep class com.alipay.**{*;}
- -dontwarn com.alipay.**
- -keep class com.ta.utdid2.**{*;}
- -dontwarn com.ta.utdid2.**
- -keep class com.ut.device.**{*;}
- -dontwarn com.ut.device.**
- -keep class com.acme.hellojni.nativeapklib.**{*;}
- -dontwarn com.acme.hellojni.nativeapklib.**
- -keep class com.alivc.player.**{*;}
- -keep class com.aliyun.clientinforeport.**{*;}
- -keep class com.aliyun.vodplayer.**{*;}
- -keep class com.alibaba.sdk.android.** { *; }
- -dontwarn com.alivc.player.**
- # 友盟
- -keep class com.umeng.** {*;}
- -dontwarn com.umeng.**
- # 友盟离线推送
- -dontwarn com.taobao.**
- -dontwarn anet.channel.**
- -dontwarn anetwork.channel.**
- -dontwarn org.android.**
- -dontwarn org.apache.thrift.**
- -dontwarn com.xiaomi.**
- -dontwarn com.huawei.**
- -dontwarn com.meizu.**
- -dontwarn com.vivo.**
- -dontwarn com.heytap.**
- -keep class com.taobao.** {*;}
- -keep class org.android.** {*;}
- -keep class anet.channel.** {*;}
- -keep class org.apache.thrift.** {*;}
- -keep class com.xiaomi.** {*;}
- -keep class com.huawei.** {*;}
- -keep class com.meizu.** {*;}
- -keep class com.vivo.**{*;}
- -keep class com.heytap.** {*;}
- -keep class com.alibaba.sdk.android.** {*;}
- -keep class com.ut.** {*;}
- -keep class com.uc.** {*;}
- -keep class com.ta.** {*;}
- -keep class com.xsbanruo.common.util.MiPushRegistar {*;}
- # 图片加载库
- -keep public class * implements com.bumptech.glide.module.GlideModule
- -keep public class * extends com.bumptech.glide.module.AppGlideModule
- -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
- **[] $VALUES;
- public *;
- }
- # RxJava
- -keep class io.reactivex.**{*;}
- -dontwarn io.reactivex.**
- -keep class org.reactivestreams.**{*;}
- -dontwarn org.reactivestreams.**
- # retrofit2
- -dontnote retrofit2.Platform
- -dontwarn retrofit2.Platform$Java8
- -dontnote retrofit2.Platform$IOS$MainThreadExecutor
- -keepattributes Exceptions
- -keepclassmembers,allowshrinking,allowobfuscation interface * {
- @retrofit2.http.* <methods>;
- }
- -dontwarn javax.annotation.**
- # okhttp3
- -keep class okhttp3.**{*;}
- -dontwarn okhttp3.**
- -keep class okio.**{*;}
- -dontwarn okio.**
- # SwipeToLoadLayout
- -keep class com.aspsine.swipetoloadlayout.**{*;}
- -dontwarn com.aspsine.swipetoloadlayout.**
- #穿山甲
- -keep class com.bytedance.sdk.openadsdk.** { *; }
- -keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;}
- -keep class com.pgl.sys.ces.* {*;}
- #oaid
- -keep class com.bun.miitmdid.core.** {*;}
- #oss
- -keep class com.alibaba.sdk.android.oss.** { *; }
- -dontwarn org.apache.commons.codec.binary.**
|