# 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 -optimizationpasses 5 #混淆时不会产生形形色色的类名 -dontusemixedcaseclassnames #指定不去忽略非公共的库类 -dontskipnonpubliclibraryclasses #不预校验 -dontpreverify #不优化输入的类文件 -dontoptimize -ignorewarnings -verbose #优化 -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* #保护内部类 -keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod ## pangle 穿山甲原有的 -keep class com.bytedance.sdk.openadsdk.** { *; } -keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;} -keep class com.pgl.sys.ces.** {*;} -keep class com.bytedance.embed_dr.** {*;} -keep class com.bytedance.embedapplog.** {*;} ## pangle 插件新增 穿山甲插件化版本新增 -keep public class com.ss.android.**{*;} -keeppackagenames com.bytedance.sdk.openadsdk.api -keeppackagenames com.bytedance.embed_dr -keeppackagenames com.bytedance.embedapplog -keeppackagenames com.ss.android ## 聚合混淆 -keep class bykvm*.** -keep class com.bytedance.msdk.adapter.**{ public *; } -keep class com.bytedance.msdk.api.** { public *; } -keep class com.bytedance.msdk.base.TTBaseAd{*;} -keep class com.bytedance.msdk.adapter.TTAbsAdLoaderAdapter{ public *; protected ; } #oaid 不同的版本混淆代码不太一致,你注意你接入的oaid版本 ,不接入oaid可以不添加 -dontwarn com.bun.** -keep class com.bun.** {*;} -keep class a.**{*;} -keep class XI.CA.XI.**{*;} -keep class XI.K0.XI.**{*;} -keep class XI.XI.K0.**{*;} -keep class XI.vs.K0.**{*;} -keep class XI.xo.XI.XI.**{*;} -keep class com.asus.msa.SupplementaryDID.**{*;} -keep class com.asus.msa.sdid.**{*;} -keep class com.huawei.hms.ads.identifier.**{*;} -keep class com.samsung.android.deviceidservice.**{*;} -keep class com.zui.opendeviceidlibrary.**{*;} -keep class org.json.**{*;} -keep public class com.netease.nis.sdkwrapper.Utils {public ;}