Commit 6555efe1 authored by wanglei's avatar wanglei

...

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