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