Enable ANR reporting for debug versions

This commit is contained in:
M66B 2020-08-19 11:39:01 +02:00
parent b072d9e9f1
commit 25077bf999
2 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ dependencies {
// https://github.com/bugsnag/bugsnag-android
implementation("com.bugsnag:bugsnag-android:$bugsnag_version") {
exclude group: "com.bugsnag", module: "bugsnag-plugin-android-anr"
//exclude group: "com.bugsnag", module: "bugsnag-plugin-android-anr"
exclude group: "com.bugsnag", module: "bugsnag-plugin-android-ndk"
}

View File

@ -283,7 +283,7 @@ public class Log {
config.setAutoTrackSessions(false);
ErrorTypes etypes = new ErrorTypes();
etypes.setAnrs(false);
etypes.setAnrs(BuildConfig.DEBUG);
etypes.setNdkCrashes(false);
config.setEnabledErrorTypes(etypes);