Commit 1130e868 authored by maxiaoliang's avatar maxiaoliang

同步

parent 7c030d42
......@@ -149,19 +149,19 @@ object ConfigHelper {
var ifcacheinstall = ""
get() {
return SPUtils.getInstance().getString("ifcacheinstall", field)
return SPUtils.getInstance().getString("${packageName}_ifcacheinstall", field)
}
set(value) {
field = value
SPUtils.getInstance().put("ifcacheinstall", value, true)
SPUtils.getInstance().put("${packageName}_ifcacheinstall", value, true)
}
var ifConfig = ""
get() {
return SPUtils.getInstance().getString("ifConfig", field)
return SPUtils.getInstance().getString("${packageName}_ifConfig", field)
}
set(value) {
field = value
SPUtils.getInstance().put("ifConfig", value, true)
SPUtils.getInstance().put("${packageName}_ifConfig", value, true)
}
var openAdLoadFail = 0
get() {
......
package com.test.easy.easycleanerjunk.helps
import android.os.Build
import android.text.TextUtils
import androidx.annotation.RequiresApi
import com.android.installreferrer.api.InstallReferrerClient
import com.android.installreferrer.api.InstallReferrerStateListener
import com.test.easy.easycleanerjunk.fcm.MyTimerManager
......@@ -115,6 +117,7 @@ object InstallHelps {
obj.put("referrerClickTime", response.referrerClickTimestampSeconds)
obj.put("appInstallTime", response.installBeginTimestampSeconds)
obj.put("instantExperienceLaunched", installInfo.toString())
SPUtils.getInstance().put("referrer", response.installReferrer)
EventUtils.event("install_referrer", ext = obj, isSingleEvent = true)
if (listOf(
"gclid",
......@@ -148,6 +151,7 @@ object InstallHelps {
}
})
}
@RequiresApi(Build.VERSION_CODES.O)
fun updateConfig(){
ComUtils.requestCfg{
}
......
......@@ -29,6 +29,8 @@ import com.test.easy.easycleanerjunk.helps.EventUtils
import com.test.easy.easycleanerjunk.utils.ActivityManagerUtils
import com.test.easy.easycleanerjunk.utils.SPUtils
import org.json.JSONObject
import java.math.BigDecimal
import java.util.Currency
import java.util.UUID
object MaxAdUtils {
......@@ -762,7 +764,7 @@ object MaxAdUtils {
val logger = AppEventsLogger.newLogger(BaseApplication.context)
val parameters = Bundle()
parameters.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, "USD")
logger.logEvent("ad_value", currentTaichiTroasCache.toDouble(), parameters)
logger.logPurchase( BigDecimal(currentTaichiTroasCache), Currency.getInstance("USD"))
} else {
taichiSharedPreferencesEditor.putFloat(
"TaichiTroasCache",
......
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