From 015a852ab5c31ba2f80983d5ddfe75dc27407b35 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Fri, 14 Jul 2017 02:21:14 +0200 Subject: [PATCH] Custom: Disable Crashlytics. (cherry picked from commit 7890f6b) (cherry picked from commit 1374739) --- app/src/main/java/info/nightscout/androidaps/MainApp.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.java b/app/src/main/java/info/nightscout/androidaps/MainApp.java index d3541dcf59..cf284cacc9 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainApp.java +++ b/app/src/main/java/info/nightscout/androidaps/MainApp.java @@ -11,6 +11,7 @@ import android.support.v4.content.LocalBroadcastManager; import com.crashlytics.android.Crashlytics; import com.crashlytics.android.answers.Answers; import com.crashlytics.android.answers.CustomEvent; +import com.crashlytics.android.core.CrashlyticsCore; import com.j256.ormlite.android.apptools.OpenHelperManager; import com.squareup.otto.Bus; import com.squareup.otto.ThreadEnforcer; @@ -98,7 +99,8 @@ public class MainApp extends Application { @Override public void onCreate() { super.onCreate(); - Fabric.with(this, new Crashlytics()); + Crashlytics crashlytics = new Crashlytics.Builder().disabled(true).build(); + Fabric.with(this, crashlytics); Fabric.with(this, new Answers()); Crashlytics.setString("BUILDVERSION", BuildConfig.BUILDVERSION); log.info("Version: " + BuildConfig.VERSION_NAME);