From 51dac754d0970d518edca4118230bcd9e79ca67c Mon Sep 17 00:00:00 2001 From: Martin <13046765170@163.com> Date: Sat, 10 Aug 2024 10:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/shayu/phonelive/AppContext.java | 5 ++++- common/build.gradle | 1 + config.gradle | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/shayu/phonelive/AppContext.java b/app/src/main/java/com/shayu/phonelive/AppContext.java index 57c14fe4e..f0df31c0c 100644 --- a/app/src/main/java/com/shayu/phonelive/AppContext.java +++ b/app/src/main/java/com/shayu/phonelive/AppContext.java @@ -124,6 +124,8 @@ public class AppContext extends CommonAppContext { private static final class AdjustLifecycleCallbacks implements ActivityLifecycleCallbacks { @Override public void onActivityResumed(@NonNull Activity activity) { + Adjust.onResume(); + Log.e("打招呼定时器", "onActivityResumed: " + activity); MessageChatNotifyManager.getInstance().restart(activity); if (activity instanceof LiveActivity) { @@ -175,6 +177,7 @@ public class AppContext extends CommonAppContext { @Override public void onActivityPaused(@NonNull Activity activity) { + Adjust.onPause(); } @Override @@ -448,7 +451,7 @@ public class AppContext extends CommonAppContext { // FaceManager.initFaceUnity(this); //初始化Adjust String appToken = "d6m0zj5a3k00"; - String environment = AdjustConfig.ENVIRONMENT_SANDBOX; + String environment = AdjustConfig.ENVIRONMENT_PRODUCTION; AdjustConfig config = new AdjustConfig(this, appToken, environment); config.setLogLevel(LogLevel.VERBOSE); Adjust.onCreate(config); diff --git a/common/build.gradle b/common/build.gradle index 1fa72ed86..5ec1ccacf 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -270,4 +270,5 @@ dependencies { api 'com.android.installreferrer:installreferrer:2.2' // Add the following if you're using the Adjust SDK inside web views on your app api 'com.adjust.sdk:adjust-android-webbridge:4.38.5' + api 'com.google.android.gms:play-services-appset:16.0.2' } diff --git a/config.gradle b/config.gradle index b781874c6..73d70577c 100644 --- a/config.gradle +++ b/config.gradle @@ -4,7 +4,7 @@ ext { buildToolsVersion: "29.0.2", minSdkVersion : 23, targetSdkVersion : 34, - versionCode : 546, + versionCode : 548, versionName : "6.8.0", namespace : "com.pandoralive.shayu" ]