补充FirebaseCrashlytics控制开关
This commit is contained in:
parent
6b7fd4d53e
commit
5db1021ecc
@ -321,6 +321,9 @@ public class AppContext extends CommonAppContext {
|
|||||||
.register(this);
|
.register(this);
|
||||||
}
|
}
|
||||||
public void registerFirebaseCrash(){
|
public void registerFirebaseCrash(){
|
||||||
|
if (!CommonAppConfig.IS_UPLOAD_ERROR_LOG) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
FirebaseAnalytics.getInstance(this);
|
FirebaseAnalytics.getInstance(this);
|
||||||
FirebaseApp.initializeApp(this);
|
FirebaseApp.initializeApp(this);
|
||||||
FirebaseCrashlytics.getInstance().setUserId(CommonAppConfig.getInstance().getUid());
|
FirebaseCrashlytics.getInstance().setUserId(CommonAppConfig.getInstance().getUid());
|
||||||
|
Loading…
Reference in New Issue
Block a user