1
0
mirror of https://github.com/etesync/android synced 2024-11-22 07:58:09 +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,12 +121,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)