默认渠道(GH_TEST)开启JS调试

This commit is contained in:
kehaoyuan
2019-07-15 16:00:15 +08:00
parent b2064c3758
commit 0c918bd826
4 changed files with 11 additions and 12 deletions

View File

@ -75,7 +75,7 @@ public class DataUtils {
// 设置数据上报策略
// 测试渠道的时候即时上传,方便查看日志
if ("GH_TEST".equals(HaloApp.getInstance().getChannel())) {
if (Config.DEFAULT_CHANNEL.equals(HaloApp.getInstance().getChannel())) {
StatConfig.setStatSendStrategy(StatReportStrategy.INSTANT);
} else {
StatConfig.setStatSendStrategy(StatReportStrategy.PERIOD);
@ -99,7 +99,7 @@ public class DataUtils {
// init bugly
try {
CrashReport.setIsDevelopmentDevice(context, "GH_TEST".equals(channel));
CrashReport.setIsDevelopmentDevice(context, Config.DEFAULT_CHANNEL.equals(channel));
CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(context);
strategy.setEnableANRCrashMonitor(false);