同步peko:声网RTC配置debug环境KEY

This commit is contained in:
Max
2023-12-13 15:14:20 +08:00
parent c8a23a1532
commit ecfe005606
2 changed files with 5 additions and 1 deletions

View File

@@ -9,6 +9,9 @@ object SdkConfig {
// f8713b6ec98c4c01adaf34cb4fa091b1
fun getAgoraKey() = decrypt("PeyLUWRgKCvpEoCfS4N7e0ME1EFveAxP8/ghtNgvAappYKlmIfzkBA==")
// f8713b6ec98c4c01adaf34cb4fa091b1
fun getAgoraKeyDebug() = decrypt("kzqq4TAI/tJUqGVu/9Vl5dFYK6J4Zr7vYItmeOVWdv9pYKlmIfzkBA==")
// 1c3b8c6bf8467d8e4c33a004dbec5c94
fun getNimKeyDebug() = decrypt("I3U3e6/lM156ggnsyDmOpPQ48hiEUXk4aTqy5Vc3WeNpYKlmIfzkBA==")

View File

@@ -12,6 +12,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.chwl.core.SdkConfig;
import com.chwl.library.common.application.Env;
import com.orhanobut.logger.Logger;
import com.chwl.core.XConstants;
import com.chwl.core.manager.BaseEngine;
@@ -56,7 +57,7 @@ public class RtcEngineManager extends BaseEngine {
Logger.t(TAG).d("enterChannel channelId:%d", channelId);
if (mRtcEngine == null) {
try {
mRtcEngine = RtcEngine.create(BasicConfig.INSTANCE.getAppContext(), SdkConfig.INSTANCE.getAgoraKey(), mEngineEventHandler);
mRtcEngine = RtcEngine.create(BasicConfig.INSTANCE.getAppContext(), Env.isDebug() ? SdkConfig.INSTANCE.getAgoraKeyDebug() : SdkConfig.INSTANCE.getAgoraKey(), mEngineEventHandler);
} catch (Exception e) {
throw new RuntimeException(
"NEED TO check rtc sdk init fatal error\n" + Log.getStackTraceString(e));