Closed Junzz0 closed 3 months ago
Kotlin : 2.0.0 kotlinx-atomicfu : 0.25.0 kotlinx-atomicfu = { group = "org.jetbrains.kotlinx", name = "atomicfu", version.ref = "kotlinxAtomicfu" } kotlinx-atomicfu = { id = "org.jetbrains.kotlinx.atomicfu", version.ref = "kotlinxAtomicfu" }
kotlin-atomicfu = { id = "org.jetbrains.kotlin.plugin.atomicfu", version.ref = "kotlin" }
The compilation was successful with this plugin.
Hi! If you apply the gradle plugin:
plugins {
id("org.jetbrains.kotlinx.atomicfu") version "0.25.0"
}
And enable compiler plugin transformations by setting this flag in your gradle.properties
: kotlinx.atomicfu.enableJvmIrTransformation=true
, this code should be compiled successfully.
(org.jetbrains.kotlin.plugin.atomicfu
is not supposed to be applied directly -- using the gradle plugin org.jetbrains.kotlinx.atomicfu
+ JVM IR transformation flag is the correct way).
Thanks, it was successfully compiled after the modification.ππΌππΌ
atomicfu will compile incorrectly on the desktop, but it will compile successfully on Android.