|
@ -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."); |
|
|