From 5db1021ecc25a6d22eddbf135ee124a631a8de83 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 24 Oct 2022 18:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85FirebaseCrashlytics=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/shayu/phonelive/AppContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/shayu/phonelive/AppContext.java b/app/src/main/java/com/shayu/phonelive/AppContext.java index c22bd16f7..3cf6b5251 100644 --- a/app/src/main/java/com/shayu/phonelive/AppContext.java +++ b/app/src/main/java/com/shayu/phonelive/AppContext.java @@ -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());