新增直播间轮播Banner

调整身份特权弹窗
This commit is contained in:
2022-10-26 16:34:53 +08:00
parent c725be7bbc
commit 38d2e0df57
26 changed files with 444 additions and 123 deletions

View File

@@ -129,7 +129,7 @@ public class AppContext extends CommonAppContext {
public void onCreate() {
super.onCreate();
//注册全局异常捕获
if(!isMainProcess()){
if (!isMainProcess()) {
return;
}
registerError();
@@ -268,7 +268,7 @@ public class AppContext extends CommonAppContext {
});
configSPApp();
//初始化美颜SDK
FaceManager.initFaceUnity(this);
FaceManager.initFaceUnity(this);
}
/**
@@ -315,7 +315,9 @@ public class AppContext extends CommonAppContext {
}
/* Process.killProcess(Process.myPid());
System.exit(0);*/
new Handler(Looper.getMainLooper()).postDelayed(()->{throw new RuntimeException(e);},100);
new Handler(Looper.getMainLooper()).postDelayed(() -> {
throw new RuntimeException(e);
}, 100);
})
.setUncaughtCrashHandler((t, e) -> {
Log.e("ApplicationError", "子线程异常");//此处log只是展示当debug为true时主类内部log会打印异常信息
@@ -323,16 +325,22 @@ public class AppContext extends CommonAppContext {
})
.register(this);
}
public void registerFirebaseCrash(){
public void registerFirebaseCrash() {
if (!CommonAppConfig.IS_UPLOAD_ERROR_LOG) {
return;
}
FirebaseAnalytics.getInstance(this);
FirebaseApp.initializeApp(this);
String uid = CommonAppConfig.getInstance().getUid();
FirebaseCrashlytics.getInstance().setUserId(CommonAppConfig.getInstance().getUid());
FirebaseCrashlytics.getInstance().setCustomKey("uid",CommonAppConfig.getInstance().getUid());
FirebaseCrashlytics.getInstance().setCustomKey("userData",SpUtil.getInstance().getStringValue(SpUtil.USER_INFO));
FirebaseCrashlytics.getInstance().setCustomKey("isGoogle",CommonAppConfig.IS_GOOGLE_PLAY);
if (uid != null && !uid.isEmpty()) {
FirebaseCrashlytics.getInstance().setCustomKey("uid", uid);
} else {
FirebaseCrashlytics.getInstance().setCustomKey("uid", "uid is null");
}
FirebaseCrashlytics.getInstance().setCustomKey("userData", SpUtil.getInstance().getStringValue(SpUtil.USER_INFO));
FirebaseCrashlytics.getInstance().setCustomKey("isGoogle", CommonAppConfig.IS_GOOGLE_PLAY);
FirebaseCrashlytics.getInstance().setCustomKey("PhoneName", Build.BRAND);
FirebaseCrashlytics.getInstance().setCustomKey("Phone", Build.MODEL);
FirebaseCrashlytics.getInstance().setCustomKey("CPU", Arrays.toString(Build.SUPPORTED_ABIS));