Acra: disable for debug builds.

pull/61/head
Tom Hacohen 6 years ago
parent 6af90b38ae
commit 5d05a2e6e0

@ -120,12 +120,14 @@ class App : Application() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
if (!BuildConfig.DEBUG) {
// The following line triggers the initialization of ACRA
ACRA.init(this)
val pm = base.packageManager
var installedFrom = pm.getInstallerPackageName(BuildConfig.APPLICATION_ID)
ACRA.getErrorReporter().putCustomData("installedFrom", installedFrom);
}
}
private fun loadLanguage() {
val serviceDB = ServiceDB.OpenHelper(this)

Loading…
Cancel
Save