mirror of
https://github.com/mamoe/mirai.git
synced 2024-12-27 17:10:15 +08:00
[core] Revert "Review atomic calls and enable atomicfu compiler. Close #2315", due to atomicfu does not behave correctly when mirai-console depends on mirai-core-utils. Fixes #2329.
This commit reverts part of commit 564a7ce8f8
This commit is contained in:
parent
65e49283a2
commit
60bbcf6e2c
@ -14,7 +14,7 @@ plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("plugin.serialization")
|
||||
|
||||
id("kotlinx-atomicfu")
|
||||
//id("kotlinx-atomicfu")
|
||||
id("signing")
|
||||
id("me.him188.kotlin-jvm-blocking-bridge")
|
||||
id("me.him188.kotlin-dynamic-delegation")
|
||||
@ -43,6 +43,7 @@ kotlin {
|
||||
implementation(project(":mirai-core-utils"))
|
||||
implementation(project(":mirai-console-compiler-annotations"))
|
||||
implementation(`kotlinx-serialization-protobuf`)
|
||||
implementation(`kotlinx-atomicfu`)
|
||||
compileOnly(`ktor-io`) // runtime from mirai-core-utils
|
||||
}
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ kotlin {
|
||||
api(`kotlinx-serialization-json`)
|
||||
api(`kotlinx-coroutines-core`)
|
||||
|
||||
implementation(`kotlinx-atomicfu`)
|
||||
implementation(`kotlinx-serialization-protobuf`)
|
||||
relocateImplementation(`ktor-io_relocated`)
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
id("kotlinx-atomicfu")
|
||||
// id("kotlinx-atomicfu")
|
||||
kotlin("plugin.serialization")
|
||||
id("me.him188.kotlin-jvm-blocking-bridge")
|
||||
id("me.him188.kotlin-dynamic-delegation")
|
||||
@ -43,6 +43,7 @@ kotlin {
|
||||
|
||||
implementation(project(":mirai-core-utils"))
|
||||
implementation(`kotlinx-serialization-protobuf`)
|
||||
implementation(`kotlinx-atomicfu`)
|
||||
|
||||
// relocateImplementation(`ktor-http_relocated`)
|
||||
// relocateImplementation(`ktor-serialization_relocated`)
|
||||
|
Loading…
Reference in New Issue
Block a user