Skip to content

Commit 5eff430

Browse files
matt-ramotaraclassen
authored andcommitted
Expose AtomicFU (#505)
Signed-off-by: mramotar <mramotar@dropbox.com> Signed-off-by: mramotar <mramotar@dropbox.com>
1 parent 01cfe83 commit 5eff430

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ buildscript {
2222
classpath("org.jetbrains.kotlinx:kover:${Version.kover}")
2323
classpath("com.squareup.anvil:gradle-plugin:${Version.anvilGradlePlugin}")
2424
classpath("com.squareup.sqldelight:gradle-plugin:${Version.sqlDelightGradlePlugin}")
25-
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${Version.atomicFuGradlePlugin}")
25+
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${Version.atomicFu}")
2626
}
2727
}
2828

buildSrc/src/main/kotlin/Deps.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ object Deps {
3333
}
3434

3535
object Kotlinx {
36+
const val atomicFu = "org.jetbrains.kotlinx:atomicfu:${Version.atomicFu}"
3637
const val stdLib = "org.jetbrains.kotlin:kotlin-stdlib:${Version.baseKotlin}"
3738
const val serializationCore = "org.jetbrains.kotlinx:kotlinx-serialization-core:${Version.kotlinxSerialization}"
3839
const val serializationJson = "org.jetbrains.kotlinx:kotlinx-serialization-json:${Version.kotlinxSerialization}"

buildSrc/src/main/kotlin/Version.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ object Version {
55
const val androidGradlePlugin = "7.2.2"
66
const val androidTargetSdk = androidCompileSdk
77
const val anvilGradlePlugin = "2.4.2"
8-
const val atomicFuGradlePlugin = "0.18.5"
8+
const val atomicFu = "0.18.5"
99
const val baseKotlin = "1.7.21"
1010
const val binaryCompatibilityValidator = "0.12.1"
1111
const val composeAndroidX = "1.3.0-beta02"

cache/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ kotlin {
4040
}
4141
}
4242

43-
val commonMain by getting
43+
val commonMain by getting {
44+
dependencies {
45+
with(Deps.Kotlinx) {
46+
api(atomicFu)
47+
}
48+
}
49+
}
4450
val jvmMain by getting
4551
val androidMain by getting
4652
val nativeMain by creating {

multicast/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ kotlin {
4242

4343
val commonMain by getting {
4444
dependencies {
45-
implementation(Deps.Kotlinx.coroutinesCore)
45+
with(Deps.Kotlinx) {
46+
api(atomicFu)
47+
implementation(coroutinesCore)
48+
}
4649
}
4750
}
4851
val jvmMain by getting

store/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ kotlin {
4747
implementation(coroutinesCore)
4848
implementation(serializationCore)
4949
implementation(dateTime)
50+
api(atomicFu)
5051
}
5152
implementation(Deps.Touchlab.kermit)
5253
implementation(project(":multicast"))

0 commit comments

Comments
 (0)