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() {