From 516a068c2558f9ae6a9933b67f4bc5908647c98b Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 29 Jul 2024 11:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B8=B8=E6=88=8FSDK?= =?UTF-8?q?=E5=9C=A8Android14=E6=97=B6=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/build.gradle | 4 ++-- .../main/java/com/yunbao/common/sud/BaseGameViewModel.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/build.gradle b/common/build.gradle index 50ed13a68..e04255fcb 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -222,10 +222,10 @@ dependencies { // api(name: 'umeng-common-9.6.8+000', ext: 'aar') //高级运营分析功能依赖库,使用卸载分析、开启反作弊能力请务必集成,以免影响高级功能使用。common需搭配v9.6.3及以上版本,asms需搭配v1.7.0及以上版本。需更新隐私声明。 // 标准版本SudMGP SDK - api 'tech.sud.mgp:SudMGP:1.3.3.1158' + api 'tech.sud.mgp:SudMGP:1.4.3.1201' // 多语言语音识别扩展库(可选) - api 'tech.sud.mgp:SudASR:1.3.3.1158' + api 'tech.sud.mgp:SudASR:1.4.3.1201' //侧滑删除 api 'com.yanzhenjie.recyclerview:x:1.3.2' diff --git a/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java b/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java index 39cba517d..046b7cb80 100644 --- a/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java +++ b/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java @@ -10,6 +10,7 @@ import android.view.ViewTreeObserver; import android.widget.Toast; import com.alibaba.fastjson.JSONObject; +import com.yunbao.common.BuildConfig; import com.yunbao.common.sud.decorator.SudFSMMGCache; import com.yunbao.common.sud.decorator.SudFSMMGDecorator; import com.yunbao.common.sud.decorator.SudFSMMGListener; @@ -113,6 +114,9 @@ public abstract class BaseGameViewModel implements SudFSMMGListener { String appKey = getAppKey(); boolean testEnv = isTestEnv(); // 初始化sdk + if(BuildConfig.DEBUG) { + SudMGP.setLogLevel(Log.DEBUG); + } SudMGP.initSDK(activity, appId, appKey, testEnv, new ISudListenerInitSDK() { @Override public void onSuccess() {