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:
parent
6a0fe39e27
commit
f4edee2481
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user