OneWay

模块引入

    implementation WB.fixVersions('AD:OneWay')

    implementation WB.fixVersions('AD:OneWayA')(隐藏广告方式)

注意事项

混淆过滤

############################################
##           OneWaySDK 混淆配置             ##
############################################
-keepattributes *Annotation*
-keep enum mobi.oneway.** {*;}
-keep class mobi.oneway.** {*;}
############################################
##           OneWay隐藏广告方式 混淆配置      ##
############################################
-keep enum npcj.pofxbz.sdk.* {*;}
-keep class npcj.pofxbz.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 混淆配置              ##
############################################

# 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

集成测试

如何判断sdk是否初始化成功?

通过OneWayAgent或者ADLog查看广告的状态,或者直接通过弹出的广告进行判断

最后更新于

这有帮助吗?