mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-14 21:18:56 +01:00
Upgrade Kotlin (to 1.3), Coroutines, Gradle and Android gradle plugin.
Kotlin: 1.2.71 -> 1.3.50 Coroutines: 0.30.2 -> 1.3.1 Gradle: 4.6 -> 5.4.1 Android gradle plugin: 3.2.1 -> 3.5.0 This brings us down to *one* experimental coroutine API, and we've opted in to using it in just *one* place. (The fact that the API to opt-in to using an experimental API in a specific place is *also* experimental surely will not come back to bite us later.)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package eu.kanade.tachiyomi.util
|
||||
|
||||
import kotlinx.coroutines.experimental.*
|
||||
import kotlinx.coroutines.experimental.android.Main
|
||||
import kotlinx.coroutines.*
|
||||
|
||||
fun launchUI(block: suspend CoroutineScope.() -> Unit): Job =
|
||||
GlobalScope.launch(Dispatchers.Main, CoroutineStart.DEFAULT, block)
|
||||
|
||||
@UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
fun launchNow(block: suspend CoroutineScope.() -> Unit): Job =
|
||||
GlobalScope.launch(Dispatchers.Main, CoroutineStart.UNDISPATCHED, block)
|
||||
|
||||
Reference in New Issue
Block a user