Crash reporter: Hide exceptions initially production builds
This commit is contained in:
parent
0b22b70153
commit
79ee848772
@ -4,6 +4,7 @@ import androidx.lifecycle.MutableLiveData
|
|||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
import androidx.lifecycle.liveData
|
import androidx.lifecycle.liveData
|
||||||
import androidx.lifecycle.viewModelScope
|
import androidx.lifecycle.viewModelScope
|
||||||
|
import de.mm20.launcher2.crashreporter.BuildConfig
|
||||||
import de.mm20.launcher2.crashreporter.CrashReport
|
import de.mm20.launcher2.crashreporter.CrashReport
|
||||||
import de.mm20.launcher2.crashreporter.CrashReportType
|
import de.mm20.launcher2.crashreporter.CrashReportType
|
||||||
import de.mm20.launcher2.crashreporter.CrashReporter
|
import de.mm20.launcher2.crashreporter.CrashReporter
|
||||||
@ -29,7 +30,7 @@ class CrashReporterScreenVM: ViewModel() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val showExceptions = MutableLiveData(true)
|
val showExceptions = MutableLiveData(BuildConfig.DEBUG)
|
||||||
val showCrashes = MutableLiveData(true)
|
val showCrashes = MutableLiveData(true)
|
||||||
|
|
||||||
val reports = MutableLiveData<List<CrashReport>?>(null)
|
val reports = MutableLiveData<List<CrashReport>?>(null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user