Proper way to configure atomicfu
This commit is contained in:
1 parent
37f705d517
commit
22c8a36224
3 files changed
+9
-2
No files matched your search
@@ -3,9 +3,14 @@ plugins {
|
||||
kotlin("android")
|
||||
id("kotlin-parcelize")
|
||||
kotlin("plugin.serialization")
|
||||
kotlin("plugin.atomicfu")
|
||||
id("com.google.devtools.ksp")
|
||||
}
|
||||
|
||||
atomicfuCompilerPlugin {
|
||||
isJvmIrTransformationEnabled = true
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 33
|
||||
buildToolsVersion = "33.0.2"
|
||||
@@ -192,7 +197,7 @@ dependencies {
|
||||
// https://coil-kt.github.io/coil/changelog/
|
||||
implementation("io.coil-kt:coil-compose:2.2.2")
|
||||
|
||||
implementation("org.jetbrains.kotlinx:atomicfu:0.20.0")
|
||||
compileOnly("org.jetbrains.kotlinx:atomicfu:0.20.0")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-cbor:1.5.0-RC")
|
||||
implementation("org.jsoup:jsoup:1.15.4")
|
||||
|
||||
@@ -192,6 +192,8 @@ class ReaderActivity : EhActivity() {
|
||||
return EhUrl.getGalleryDetailUrl(gid, token, 0, false)
|
||||
}
|
||||
|
||||
private val continuation = atomic<StringResumeable?>(null)
|
||||
|
||||
private fun buildProvider() {
|
||||
if (mGalleryProvider != null) {
|
||||
return
|
||||
@@ -211,7 +213,6 @@ class ReaderActivity : EhActivity() {
|
||||
Toast.makeText(this, R.string.error_reading_failed, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
|
||||
val continuation = atomic<StringResumeable?>(null)
|
||||
mGalleryProvider = ArchivePageLoader(this, mUri!!,
|
||||
flow {
|
||||
if (!dialogShown) {
|
||||
|
||||
@@ -2,6 +2,7 @@ plugins {
|
||||
id("com.android.application") version "8.0.0-beta03" apply false
|
||||
kotlin("android") version "1.8.10" apply false
|
||||
kotlin("plugin.serialization") version "1.8.10" apply false
|
||||
kotlin("plugin.atomicfu") version "1.8.10" apply false
|
||||
id("com.google.devtools.ksp") version "1.8.10-1.0.9" apply false
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user