Commit 6555efe1 authored by wanglei's avatar wanglei

...

parent 0aa86c30
......@@ -185,6 +185,7 @@ object AdMaxInterstitialUtils {
AdDisplayUtils.getInstance().incrementAdRequestCount()
return true
} else {
LogEx.logDebug(TAG, "isAdInit=$isAdInit")
EventUtils.event("isAdInit", value = "loadInterstitialAd isAdInit=${isAdInit.get()}")
}
return false
......
......@@ -4,6 +4,7 @@ import com.base.datarecovery.BuildConfig
import com.base.datarecovery.ads.AdmobMaxHelper
import com.base.datarecovery.utils.AESHelper
import com.base.datarecovery.utils.AppPreferences
import com.base.datarecovery.utils.LogEx
import okhttp3.Call
import okhttp3.Callback
import okhttp3.MediaType.Companion.toMediaTypeOrNull
......@@ -17,6 +18,7 @@ import java.io.IOException
object BlackUtils {
private val TAG = "BlackUtils"
private val blcurl by lazy {
val pkg = ConfigHelper.packageName
......@@ -71,6 +73,7 @@ object BlackUtils {
if (i.toString() != "null") {
i!!.groupValues[1].let {
val str = AESHelper.decrypt(it)
LogEx.logDebug(TAG, "black str=$str")
AdmobMaxHelper.isBlack = str.equals("true")
}
}
......
......@@ -33,6 +33,7 @@ object InstallHelps {
val referrerClient = InstallReferrerClient.newBuilder(BaseApplication.context).build()
referrerClient.startConnection(object : InstallReferrerStateListener {
override fun onInstallReferrerSetupFinished(responseCode: Int) {
LogEx.logDebug(TAG, "responseCode=$responseCode")
try {
when (responseCode) {
InstallReferrerClient.InstallReferrerResponse.OK -> {
......@@ -65,6 +66,7 @@ object InstallHelps {
else -> {
EventUtils.event("install_referrer_error")
requestCfg(true)
}
}
} catch (_: Exception) {
......
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