Skip to content

Commit 96261b4

Browse files
committed
do not initialize ACRA on debug build
1 parent 3fa4a52 commit 96261b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/kotlin/org/emunix/insteadlauncher/InsteadLauncher.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2020 Boris Timofeev <btimofeev@emunix.org>
2+
* Copyright (c) 2018-2021 Boris Timofeev <btimofeev@emunix.org>
33
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
44
*/
55

@@ -75,7 +75,8 @@ class InsteadLauncher: Application() {
7575

7676
override fun attachBaseContext(base: Context?) {
7777
super.attachBaseContext(base)
78-
ACRA.init(this)
78+
if (!BuildConfig.DEBUG)
79+
ACRA.init(this)
7980
}
8081

8182
@TargetApi(26)

0 commit comments

Comments
 (0)