1
0
mirror of https://github.com/etesync/android synced 2024-11-21 23:48:11 +00:00

Acra: disable for debug builds.

This commit is contained in:
Tom Hacohen 2019-01-06 15:32:38 +00:00
parent 6a0fe39e27
commit f4edee2481

View File

@ -121,11 +121,13 @@ class App : Application() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
// 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);
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() {