同步peko:声网RTC配置debug环境KEY
This commit is contained in:
@@ -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==")
|
||||
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user