> For the complete documentation index, see [llms.txt](https://tyson.gitbook.io/vigamedoc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tyson.gitbook.io/vigamedoc/cn/ke-hu-duan-jie-ru/android-jie-ru/mo-kuai-kuo-zhan/guang-gao-jie-ru/oneway.md).

# 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查看广告的状态，或者直接通过弹出的广告进行判断
