4399
模块引入
implementation WB.fixVersions('AD:Ad4399')
注意事项
无
混淆过滤
###
# Mobgi
###
-dontwarn
-dontoptimize
-keepattributes InnerClasses
-keepattributes *Annotation*
-keepattributes Signature
-keepattributes *JavascriptInterface*
-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
-dontnote android.net.http.*
-dontnote org.apache.http.**
-keep public class com.mobgi.* {*;}
-keep public class com.mobgi.adutil.parser.NativeAdBeanPro {*;}
-keep public interface com.mobgi.** {*;}
-keep public class com.mobgi.platform.** {*;}
-keep class net.skey.mob.std.dsr.ut.** { *; }
###
# AdView
###
-dontwarn
-keep public class com.kyview.** {*;}
-keepclassmembers class * {public *;}
-keep public class com.kuaiyou.**.** {*;}
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
###
# Baidu
###
-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.lam.** { *; }
###
# 九游
###
-keepattributes SourceFile,LineNumberTable
-keepattributes Signature
-keepattributes *Annotation*
## common
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep class android.app.**{*;}
-dontwarn android.app.**
-keep class android.support.v7.media.*{public *;}
-keep class android.support.v4.** { *; }
-dontwarn android.support.**
## network libs
-keep class android.net.http.** { *; }
-dontwarn android.net.**
-dontnote android.net.http.*
-keep class org.apache.http.** { *; }
-dontwarn org.apache.**
-dontnote org.apache.commons.codec.**
-dontnote org.apache.http.**
# Keep native methods
-keepclasseswithmembers class * {
native <methods>;
}
### utdid
-keep class com.ta.utdid2.**{*;}
-keep class com.ut.device.**{*;}
-dontwarn com.ta.utdid2.**
-dontwarn com.ut.device.**
# Keep ngad-sdk classes
-keep class cn.sirius.nga.** {*; }
-dontwarn cn.sirius.nga.**
-keep class cn.ninegame.library.** {*; }
-dontwarn cn.ninegame.library.**
-keep class com.taobao.** {*; }
-dontwarn com.taobao.**
-keep class android.taobao.** {*; }
-dontwarn android.taobao.**
-keep class com.UCMobile.Apollo.**{*;}
###
# OneWay
###
-keepattributes *Annotation*
-keep enum mobi.oneway.sdk.* {*;}
-keep class mobi.oneway.sdk.** {*;}
# OkDownload
-dontwarn com.liulishuo.okdownload.**
-keep class com.liulishuo.okdownload.core.breakpoint.BreakpointStoreOnSQLite {
public com.liulishuo.okdownload.core.breakpoint.DownloadStore createRemitSelf();
public com.liulishuo.okdownload.core.breakpoint.BreakpointStoreOnSQLite(android.content.Context);
}
# okdownload:okhttp
-keepnames class com.liulishuo.okdownload.core.connection.DownloadOk
# okhttp https://github.com/square/okhttp/#proguard
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
###
# Toutiao
###
-keep class com.bytedance.sdk.openadsdk.** { *; }
-keep class com.androidquery.callback.** {*;}
-keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;}
###
# Uniplay
###
-dontwarn com.uniplay.**
-keep class com.uniplay.** { *; }
###
# media 4399
###
-keeppackagenames cn.m4399.admob
-keep class cn.m4399.admob.** {*;}
-keeppackagenames cn.m4399.support
-keep class cn.m4399.support.** {*;}
集成测试
如何判断sdk是否初始化成功?
通过Ad4399或者ADLog过滤日志查看广告状态,或者直接通过弹出的广告进行判断
最后更新于