补充FirebaseCrashlytics控制开关

This commit is contained in:
zlzw 2022-10-24 18:26:31 +08:00
parent 6b7fd4d53e
commit 5db1021ecc

View File

@ -321,6 +321,9 @@ public class AppContext extends CommonAppContext {
.register(this);
}
public void registerFirebaseCrash(){
if (!CommonAppConfig.IS_UPLOAD_ERROR_LOG) {
return;
}
FirebaseAnalytics.getInstance(this);
FirebaseApp.initializeApp(this);
FirebaseCrashlytics.getInstance().setUserId(CommonAppConfig.getInstance().getUid());