123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- # 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.Activity
- -keep public class * extends android.app.Application
- -keep public class * extends android.app.Service
- -keep public class * extends android.content.BroadcastReceiver
- -keep public class * extends android.content.ContentProvider
- -keep public class * extends android.app.backup.BackupAgentHelper
- -keep public class * extends android.preference.Preference
- -keep public class com.android.vending.licensing.ILicensingService
- -keep public class * extends android.widget.PopupWindow
- -keep class * extends android.webkit.WebChromeClient {*;}
- -keep class * extends android.webkit.WebViewClient {*;}
- # 忽略自定义控件
- -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 public class * extends com.xsbanruo.common.activity.**{*;}
- -keep public class * extends com.xsbanruo.common.fragment.**{*;}
- -keep public class * extends com.xsbanruo.common.adapter.**{*;}
- -keep public class * extends com.shanp.base.pop.AbstractPop
- -keep class com.shanp.sms.**{*;}
- -keep class com.xsbanruo.data.model.**{*;}
- -keep class com.xsbanruo.**.vo.**{*;}
- -keep class com.shanp.base.util.GsonUtil{*;}
- -keep class **.*$JavaScriptInterface{*;}
- -keepclassmembers class * {
- public <init> (org.json.JSONObject);
- }
- # ------ 保护第三方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 org.android.** {*;}
- -dontwarn org.android.**
- -keep class anet.channel.** {*;}
- -dontwarn anetwork.channel.**
- -dontwarn anet.channel.**
- -keep class com.umeng.** {*;}
- -dontwarn com.umeng.**
- -keep class com.xiaomi.** {*;}
- -dontwarn com.xiaomi.**
- -keep class com.huawei.** {*;}
- -dontwarn com.huawei.**
- -keep class com.meizu.** {*;}
- -dontwarn com.meizu.**
- -keep class org.apache.thrift.** {*;}
- -dontwarn org.apache.thrift.**
- -keep class com.ut.**{*;}
- -keep class com.ta.**{*;}
- -keep class com.alimama.mobile.**{*;}
- -dontwarn com.alimama.mobile.**
- -keep class u.**{*;}
- -dontwarn u.**
- # 图片加载库
- -keep public class * implements com.bumptech.glide.module.GlideModule
- -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.**
- # SwipeToLoadLayout
- -keep class com.aspsine.swipetoloadlayout.**{*;}
- -dontwarn com.aspsine.swipetoloadlayout.**
- -keep class com.shanp.widget.wheel.**{*;}
- -dontwarn com.shanp.widget.wheel.**
- # okhttp3
- -keep class okhttp3.**{*;}
- -dontwarn okhttp3.**
- -keep class okio.**{*;}
- -dontwarn okio.**
|