|
@@ -12,6 +12,7 @@ import cn.yyxx.eyuangame.core.entity.SdkBackLoginInfo
|
|
|
import cn.yyxx.eyuangame.core.internal.IEventObserver
|
|
|
import cn.yyxx.eyuangame.core.utils.MMKVUtils
|
|
|
import cn.yyxx.support.JsonUtils
|
|
|
+import cn.yyxx.support.hawkeye.LogUtils
|
|
|
import com.adjust.sdk.Adjust
|
|
|
import com.adjust.sdk.AdjustConfig
|
|
|
import com.adjust.sdk.AdjustEvent
|
|
@@ -48,7 +49,13 @@ class LinkingAdjustImpl : IEventObserver {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- val config = AdjustConfig(application, appId, AdjustConfig.ENVIRONMENT_PRODUCTION, true)
|
|
|
+ val environment = if (LogUtils.DEBUG) {
|
|
|
+ AdjustConfig.ENVIRONMENT_SANDBOX
|
|
|
+ } else {
|
|
|
+ AdjustConfig.ENVIRONMENT_PRODUCTION
|
|
|
+ }
|
|
|
+
|
|
|
+ val config = AdjustConfig(application, appId, environment, true)
|
|
|
config.setLogLevel(LogLevel.VERBOSE)
|
|
|
Adjust.onCreate(config)
|
|
|
if (MMKVUtils.instance.eventKV.decodeBool("adjust_activities")) {
|