changed the getSn and visual func
This commit is contained in:
@@ -4,6 +4,7 @@ import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.mogo.cloud.passport.MoGoAiCloudClientConfig;
|
||||
import com.mogo.commons.network.Utils;
|
||||
import com.mogo.test.crashreport.CrashReportConstants;
|
||||
import com.mogo.test.crashreport.ITestCrashReportProvider;
|
||||
@@ -34,7 +35,7 @@ class BuglyCrashReportProvider implements ITestCrashReportProvider {
|
||||
CrashReport.UserStrategy strategy = new CrashReport.UserStrategy( context );
|
||||
strategy.setUploadProcess( processName == null || processName.equals( packageName ) );
|
||||
CrashReport.initCrashReport( context, "f3f8b0b2f1", true, strategy );
|
||||
CrashReport.putUserData( context, "serial", Utils.getSn() );
|
||||
CrashReport.putUserData( context, "serial", MoGoAiCloudClientConfig.getInstance().getSn() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,6 +5,7 @@ import android.text.TextUtils;
|
||||
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.cloud.passport.MoGoAiCloudClientConfig;
|
||||
import com.mogo.commons.network.Utils;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.tencent.bugly.Bugly;
|
||||
@@ -37,7 +38,7 @@ public class UpgradeReportProvider implements IProvider {
|
||||
|
||||
strategy.setUploadProcess(processName == null || processName.equals(packageName));
|
||||
|
||||
CrashReport.putUserData(context, "serial", Utils.getSn());
|
||||
CrashReport.putUserData(context, "serial", MoGoAiCloudClientConfig.getInstance().getSn());
|
||||
|
||||
Bugly.init(context, "f3f8b0b2f1", true, strategy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user