diff --git a/README.md b/README.md index 026e71ac8..9523ceb99 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,9 @@ ### Including Store In Your Project -> **Note** -> -> **[AtomicFU](https://github.com/Kotlin/kotlinx-atomicfu) is required ([#503](https://github.com/MobileNativeFoundation/Store/issues/503))** - #### Android ```kotlin implementation "org.mobilenativefoundation.store:store5:5.0.0-alpha04" -implementation "org.jetbrains.kotlinx:atomicfu:0.18.5" ``` #### Multiplatform (Common, JVM, Native, JS) @@ -45,7 +40,6 @@ implementation "org.jetbrains.kotlinx:atomicfu:0.18.5" commonMain { dependencies { implementation("org.mobilenativefoundation.store:store5:5.0.0-alpha04") - implementation("org.jetbrains.kotlinx:atomicfu:0.18.5") } } ``` diff --git a/cache/build.gradle.kts b/cache/build.gradle.kts index 05bdc7955..1b5a8fa69 100644 --- a/cache/build.gradle.kts +++ b/cache/build.gradle.kts @@ -13,7 +13,6 @@ plugins { id("co.touchlab.faktory.kmmbridge") version Version.kmmBridge `maven-publish` kotlin("native.cocoapods") - id("kotlinx-atomicfu") } kotlin { @@ -44,7 +43,7 @@ kotlin { val commonMain by getting { dependencies { with(Deps.Kotlinx) { - api(atomicFu) + implementation(atomicFu) } } } diff --git a/multicast/build.gradle.kts b/multicast/build.gradle.kts index 731f16a73..66b2ac85d 100644 --- a/multicast/build.gradle.kts +++ b/multicast/build.gradle.kts @@ -13,7 +13,6 @@ plugins { id("co.touchlab.faktory.kmmbridge") version Version.kmmBridge `maven-publish` kotlin("native.cocoapods") - id("kotlinx-atomicfu") } kotlin { @@ -44,7 +43,7 @@ kotlin { val commonMain by getting { dependencies { with(Deps.Kotlinx) { - api(atomicFu) + implementation(atomicFu) implementation(coroutinesCore) } } diff --git a/store/build.gradle.kts b/store/build.gradle.kts index bb4b98e60..7c81865ca 100644 --- a/store/build.gradle.kts +++ b/store/build.gradle.kts @@ -13,7 +13,6 @@ plugins { id("co.touchlab.faktory.kmmbridge") version Version.kmmBridge `maven-publish` kotlin("native.cocoapods") - id("kotlinx-atomicfu") } kotlin { @@ -48,7 +47,7 @@ kotlin { implementation(coroutinesCore) implementation(serializationCore) implementation(dateTime) - api(atomicFu) + implementation(atomicFu) } implementation(Deps.Touchlab.kermit) implementation(project(":multicast")) @@ -68,7 +67,13 @@ kotlin { } } - val jvmMain by getting + val jvmMain by getting { + dependencies { + with(Deps.Kotlinx) { + implementation(atomicFu) + } + } + } val androidMain by getting val nativeMain by creating { dependsOn(commonMain) @@ -136,8 +141,3 @@ koverMerged { onCheck.set(true) } } - -atomicfu { - transformJvm = false - transformJs = false -}