调整AppContext只在主线程中初始化
新增crashlytics的控制开关
This commit is contained in:
parent
dad3f85864
commit
22225eece6
@ -151,7 +151,9 @@
|
||||
<meta-data
|
||||
android:name="IS_UPLOAD_ERROR_LOG"
|
||||
android:value="${isUploadLog}" />
|
||||
|
||||
<meta-data
|
||||
android:name="firebase_crashlytics_collection_enabled"
|
||||
android:value="${isUploadLog}" />
|
||||
<meta-data
|
||||
android:name="com.openinstall.APP_KEY"
|
||||
android:value="smvslm" />
|
||||
|
@ -129,6 +129,9 @@ public class AppContext extends CommonAppContext {
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
//注册全局异常捕获
|
||||
if(!isMainProcess()){
|
||||
return;
|
||||
}
|
||||
registerError();
|
||||
registerFirebaseCrash();
|
||||
sInstance = this;
|
||||
|
Loading…
Reference in New Issue
Block a user