1
0
mirror of https://github.com/etesync/android synced 2024-11-18 06:08:08 +00:00

Acra: disable for debug builds.

This commit is contained in:
Tom Hacohen 2019-01-06 15:32:38 +00:00
parent 6af90b38ae
commit 5d05a2e6e0

View File

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