Browse Source

bira

pull/61/merge
Thodoris1999 6 years ago
parent
commit
b60a206474
  1. 3
      app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java

3
app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java

@ -68,8 +68,6 @@ public class BaseApplication extends Application {
// Initialize Timber // Initialize Timber
if (BuildConfig.DEBUG) if (BuildConfig.DEBUG)
Timber.plant(new Timber.DebugTree()); Timber.plant(new Timber.DebugTree());
else
Timber.plant(new CrashReportingTree());
//Shared Preferences //Shared Preferences
SharedPreferences sharedPrefs = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE); SharedPreferences sharedPrefs = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);
@ -82,6 +80,7 @@ public class BaseApplication extends Application {
.build(); .build();
// Initialize Fabric with the debug-disabled Crashlytics. // Initialize Fabric with the debug-disabled Crashlytics.
Fabric.with(this, crashlyticsKit); Fabric.with(this, crashlyticsKit);
Timber.plant(new CrashReportingTree());
Timber.i("Starting app with Crashlytics enabled."); Timber.i("Starting app with Crashlytics enabled.");
} else } else
Timber.i("Starting app with Crashlytics disabled."); Timber.i("Starting app with Crashlytics disabled.");

Loading…
Cancel
Save