123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- # 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 *;
- #}
- # 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
- # ------ 通用配置 ------
- -optimizationpasses 5
- -dontusemixedcaseclassnames
- -dontskipnonpubliclibraryclasses
- -dontpreverify
- -verbose
- -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
- -ignorewarnings
- # ------ 官方模板推荐不需要混淆的组件 ------
- -keep public class * extends android.app.Activity
- -keep public class * extends android.app.Fragment
- -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 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 {*;}
- -dontwarn android.webkit.WebView
- # 忽略原生方法
- -keepclasseswithmembernames class * {
- native <methods>;
- }
- # 忽略自定义控件
- -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*(...);
- }
- -keepclassmembers class * {
- public <init> (org.json.JSONObject);
- }
- # 忽略枚举
- -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
- # 保持R文件不被混淆
- -keep class **.R$* {*;}
- -keep class **.R{*;}
- -dontwarn **.R$*
- -keepattributes Signature
- -keepattributes *Annotation*
- # ------ 应用定制混淆方案 ------
- -keep public class * extends com.shanp.shebao.ui.activity.BaseActivity
- -keep public class * extends com.shanp.framework.widget.pop.BasePop
- -keep class com.shanp.shebao.model.**{*;}
- -keep class com.shanp.framework.model.**{*;}
- -keep class com.shanp.shebao.vo.**{*;}
- -keep class com.shanp.framework.util.JsonUtil{*;}
- -keep class **.*$JavaScriptInterface{*;}
- # ------ 保护第三方jar包,不做混淆处理----------
- -keep class android.support.**{*;}
- -dontwarn android.support.**
- -keep class com.jg.**{*;}
- -dontwarn com.jg.**
- # Gson
- -keep class com.google.gson.**{*;}
- -dontwarn com.google.gson.**
- # 友盟
- -keep class com.taobao.** {*;}
- -dontwarn com.taobao.**
- -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.alibaba.sdk.android.**{*;}
- -keep class com.ut.**{*;}
- -keep class com.ta.**{*;}
- -keep class com.alimama.mobile.**{*;}
- -dontwarn com.alimama.mobile.**
- -keep class u.**{*;}
- -dontwarn u.**
- # 分享
- -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.alipay.**{*;}
- -dontwarn com.alipay.**
- -keep class com.ta.utdid2.**{*;}
- -dontwarn com.ta.utdid2.**
- -keep class com.ut.device.**{*;}
- -dontwarn com.ut.device.**
- -keep class org.json.alipay.** { *; }
- # 百度地图
- -keep class com.baidu.**{*;}
- -dontwarn com.baidu.**
- # 图片加载库
- -keep class com.bumptech.glide.Glide { *; }
- -keep class com.bumptech.glide.request.RequestOptions {*;}
- -keep public class * implements com.bumptech.glide.module.GlideModule
- -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
- **[] $VALUES;
- public *;
- }
- -dontwarn com.bumptech.glide.**
- #智齿客服
- -keep class com.sobot.** {*;}
- -keep class com.yunva.** { *; }
- -keep class com.blm.** { *; }
- -keep class com.pg.** { *; }
- -dontwarn com.yunva.im.sdk.lib.**
- #okhttp
- -dontwarn okhttp3.**
- -dontwarn okio.**
- -dontwarn javax.annotation.**
- -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
- #穿山甲
- -keep class com.bytedance.sdk.openadsdk.** { *; }
- -keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;}
- -keep class com.ss.sys.ces.* {*;}
|