Commit 9762c394 authored by wanglei's avatar wanglei

垃圾清理

parent 5d8143d8
......@@ -59,7 +59,13 @@ class MyApplication : BaseApplication() {
ScreenStatusReceiver.setupScreenStatusListener(this)
InstallHelps.init()
if (ifAgreePrivacy) {
if (ConfigHelper.admobTrueMaxFlase) {
MobileAds.initialize(this) { initializationStatus ->
}
} else {
initAdMax()
}
InstallHelps.init()
NewComUtils.requestCfg {
ScreenStatusReceiver.setupScreenStatusListener(this)
......@@ -77,24 +83,6 @@ class MyApplication : BaseApplication() {
}
}
}
if (ifAgreePrivacy) {
if (ConfigHelper.admobTrueMaxFlase) {
MobileAds.initialize(this) { initializationStatus ->
}
} else {
initAdMax()
}
MainScope().launch(Dispatchers.Main) {
val deferred = async(Dispatchers.IO) {
try {
AdvertisingIdClient.getAdvertisingIdInfo(context).id
} catch (_: Exception) {
"unknown"
}
}
val gid = deferred.await() ?: ""
AppPreferences.getInstance().put("gid", gid)
}
}
initLifeListener()
}
......
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