123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- # 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
- ## pangle 穿山甲原有的
- -keepclassmembers class * {
- *** getContext(...);
- *** getActivity(...);
- *** getResources(...);
- *** startActivity(...);
- *** startActivityForResult(...);
- *** registerReceiver(...);
- *** unregisterReceiver(...);
- *** query(...);
- *** getType(...);
- *** insert(...);
- *** delete(...);
- *** update(...);
- *** call(...);
- *** setResult(...);
- *** startService(...);
- *** stopService(...);
- *** bindService(...);
- *** unbindService(...);
- *** requestPermissions(...);
- *** getIdentifier(...);
- }
- -keep class com.bytedance.pangle.** {*;}
- -keep class com.bytedance.sdk.openadsdk.** { *; }
- -keep class com.bytedance.frameworks.** { *; }
- -keep class ms.bd.c.Pgl.**{*;}
- -keep class com.bytedance.mobsec.metasec.ml.**{*;}
- -keep class com.ss.android.**{*;}
- -keep class com.bytedance.embedapplog.** {*;}
- -keep class com.bytedance.embed_dr.** {*;}
- -keep class com.bykv.vk.** {*;}
- //聚合混淆
- -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 <fields>;
- }
- # baidu sdk 不接入baidu sdk可以不引入
- -ignorewarnings
- -dontwarn com.baidu.mobads.sdk.api.**
- -keepclassmembers class * extends android.app.Activity {
- public void *(android.view.View);
- }
- -keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
- }
- -keep class com.baidu.mobads.** { *; }
- -keep class com.style.widget.** {*;}
- -keep class com.component.** {*;}
- -keep class com.baidu.ad.magic.flute.** {*;}
- -keep class com.baidu.mobstat.forbes.** {*;}
- # Admob 不接入admob sdk可以不引入
- -keep class com.google.android.gms.ads.MobileAds {
- public *;
- }
- #sigmob 不接入sigmob sdk可以不引入
- -dontwarn android.support.v4.**
- -keep class android.support.v4.** { *; }
- -keep interface android.support.v4.** { *; }
- -keep public class * extends android.support.v4.**
- -keep class sun.misc.Unsafe { *; }
- -dontwarn com.sigmob.**
- -keep class com.sigmob.**.**{*;}
- #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 <methods>;}
- #klevin 游可赢
- -keep class com.tencent.tgpa.**{*;}
- -keep class com.tencent.klevin.**{*;}
- #Mintegral 不接入Mintegral sdk,可以不引入
- -keepattributes Signature
- -keepattributes *Annotation*
- -keep class com.mbridge.** {*; }
- -keep interface com.mbridge.** {*; }
- -keep class android.support.v4.** { *; }
- -dontwarn com.mbridge.**
- -keep class **.R$* { public static final int mbridge*; }
- 注意: SDK代码被混淆后会导致广告无法展现或者其它异常。
- 注意: SDK中使用的so文件支持1种架构:armeabi-v7a 如果您应用中支持的架构超出这
- 1种,请在build.gradle中使用abiFilters选择支持的架构(需要注意ADN支持的架构有几种)。如下所示:
- ndk {
- // 设置支持的 SO 库构架,注意这里要根据你的实际情况来设置
- abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64', 'armeabi'
- }
- packagingOptions {
- doNotStrip "*/armeabi-v7a/*.so"
- doNotStrip "*/x86/*.so"
- doNotStrip "*/arm64-v8a/*.so"
- doNotStrip "*/x86_64/*.so"
- doNotStrip "armeabi.so"
- }
|