Commit 52049f15 authored by mengcuiguang's avatar mengcuiguang

1.2.4发版 更换中文在线调用方式

parent 307416e4
......@@ -157,9 +157,6 @@ public class MintsApplication extends MultiDexApplication {
// 自定义logger
bindLogger();
// 中文在线 听读
ReaderManager.INSTANCE.init(this);
// 子线程初始化三方SDK
String processName = SystemUtils.INSTANCE.getProcessName(this, android.os.Process.myPid());
......
......@@ -13,6 +13,7 @@ import com.chineseall.reader17ksdk.utils.DensityUtil.px2dip
import com.chineseall.reader17ksdk.utils.NetworkUtil.isNetworkAvailable
import com.chineseall.reader17ksdk.utils.NetworkUtil.isWifiConnected
import com.chineseall.reader17ksdk.utils.book.ScreenUtils
import com.mints.goodmoney.MintsApplication
/**
* 中文在线 听读
......@@ -36,7 +37,8 @@ object ReaderManager {
private var isCsjAd: Boolean = true
fun init(applicationContext: Application) {
fun init() {
val applicationContext = MintsApplication.getContext()
install(applicationContext, APP_ID, SECRET, APP, SUBAPP, object : AdProvider {
/**
* 阅读⻚弹窗广告确认按钮的点击回调-激励视频
......
......@@ -157,6 +157,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
homePresenter.comSaveTerminalInfo(ps)
baseApplication.initUm(context)
baseApplication.TalkingDataConfig()
ReaderManager.init()
// }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment