mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Added CrashReporter dependencies
This commit is contained in:
parent
10c5c295e6
commit
3c507f2f4b
2 changed files with 6 additions and 1 deletions
|
|
@ -82,8 +82,11 @@ dependencies {
|
||||||
// debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
|
// debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
|
||||||
|
|
||||||
// Square - Canary
|
// Square - Canary
|
||||||
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
||||||
|
|
||||||
// Red screen of death
|
// Red screen of death
|
||||||
// debugImplementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
|
// debugImplementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
|
||||||
|
|
||||||
|
// Crash Report
|
||||||
|
debugImplementation 'com.balsikandar.android:crashreporter:1.1.0'
|
||||||
}
|
}
|
||||||
|
|
@ -6,6 +6,7 @@ import android.content.SharedPreferences;
|
||||||
|
|
||||||
import androidx.preference.PreferenceManager;
|
import androidx.preference.PreferenceManager;
|
||||||
|
|
||||||
|
import com.balsikandar.crashreporter.CrashReporter;
|
||||||
import com.cappielloantonio.play.helper.ThemeHelper;
|
import com.cappielloantonio.play.helper.ThemeHelper;
|
||||||
import com.cappielloantonio.play.subsonic.Subsonic;
|
import com.cappielloantonio.play.subsonic.Subsonic;
|
||||||
import com.cappielloantonio.play.subsonic.SubsonicPreferences;
|
import com.cappielloantonio.play.subsonic.SubsonicPreferences;
|
||||||
|
|
@ -20,6 +21,7 @@ public class App extends Application {
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
// RedScreenOfDeath.init(this);
|
// RedScreenOfDeath.init(this);
|
||||||
|
CrashReporter.initialize(this);
|
||||||
|
|
||||||
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||||
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);
|
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue