Use a better build id detection
This commit is contained in:
@@ -56,13 +56,7 @@ class App : Application() {
|
|||||||
// overhead of debug mode is minimal: https://github.com/Kotlin/kotlinx.coroutines/blob/f528898/docs/debugging.md#debug-mode
|
// overhead of debug mode is minimal: https://github.com/Kotlin/kotlinx.coroutines/blob/f528898/docs/debugging.md#debug-mode
|
||||||
System.setProperty(DEBUG_PROPERTY_NAME, DEBUG_PROPERTY_VALUE_ON)
|
System.setProperty(DEBUG_PROPERTY_NAME, DEBUG_PROPERTY_VALUE_ON)
|
||||||
Firebase.initialize(deviceStorage)
|
Firebase.initialize(deviceStorage)
|
||||||
when (val codename = Build.VERSION.CODENAME) {
|
FirebaseCrashlytics.getInstance().setCustomKey("build", Build.DISPLAY)
|
||||||
"REL" -> { }
|
|
||||||
else -> FirebaseCrashlytics.getInstance().apply {
|
|
||||||
setCustomKey("codename", codename)
|
|
||||||
setCustomKey("preview_sdk", Build.VERSION.PREVIEW_SDK_INT)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Timber.plant(object : Timber.DebugTree() {
|
Timber.plant(object : Timber.DebugTree() {
|
||||||
@SuppressLint("LogNotTimber")
|
@SuppressLint("LogNotTimber")
|
||||||
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
|
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
|
||||||
|
|||||||
Reference in New Issue
Block a user