Turn on debugging coroutines
This commit is contained in:
@@ -26,6 +26,8 @@ import com.google.firebase.analytics.ktx.analytics
|
|||||||
import com.google.firebase.crashlytics.FirebaseCrashlytics
|
import com.google.firebase.crashlytics.FirebaseCrashlytics
|
||||||
import com.google.firebase.ktx.Firebase
|
import com.google.firebase.ktx.Firebase
|
||||||
import com.google.firebase.ktx.initialize
|
import com.google.firebase.ktx.initialize
|
||||||
|
import kotlinx.coroutines.DEBUG_PROPERTY_NAME
|
||||||
|
import kotlinx.coroutines.DEBUG_PROPERTY_VALUE_ON
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import timber.log.Timber
|
import timber.log.Timber
|
||||||
@@ -47,6 +49,9 @@ class App : Application() {
|
|||||||
deviceStorage.moveDatabaseFrom(this, AppDatabase.DB_NAME)
|
deviceStorage.moveDatabaseFrom(this, AppDatabase.DB_NAME)
|
||||||
} else deviceStorage = this
|
} else deviceStorage = this
|
||||||
Services.init(this)
|
Services.init(this)
|
||||||
|
|
||||||
|
// 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)
|
||||||
Firebase.initialize(deviceStorage)
|
Firebase.initialize(deviceStorage)
|
||||||
when (val codename = Build.VERSION.CODENAME) {
|
when (val codename = Build.VERSION.CODENAME) {
|
||||||
"REL" -> { }
|
"REL" -> { }
|
||||||
|
|||||||
Reference in New Issue
Block a user