Skip to content

Commit

Permalink
Expose AtomicFU (#505)
Browse files Browse the repository at this point in the history
Signed-off-by: mramotar <[email protected]>

Signed-off-by: mramotar <[email protected]>
  • Loading branch information
matt-ramotar authored and aclassen committed Jan 16, 2023
1 parent 01cfe83 commit 5eff430
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildscript {
classpath("org.jetbrains.kotlinx:kover:${Version.kover}")
classpath("com.squareup.anvil:gradle-plugin:${Version.anvilGradlePlugin}")
classpath("com.squareup.sqldelight:gradle-plugin:${Version.sqlDelightGradlePlugin}")
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${Version.atomicFuGradlePlugin}")
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${Version.atomicFu}")
}
}

Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/Deps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ object Deps {
}

object Kotlinx {
const val atomicFu = "org.jetbrains.kotlinx:atomicfu:${Version.atomicFu}"
const val stdLib = "org.jetbrains.kotlin:kotlin-stdlib:${Version.baseKotlin}"
const val serializationCore = "org.jetbrains.kotlinx:kotlinx-serialization-core:${Version.kotlinxSerialization}"
const val serializationJson = "org.jetbrains.kotlinx:kotlinx-serialization-json:${Version.kotlinxSerialization}"
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Version.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object Version {
const val androidGradlePlugin = "7.2.2"
const val androidTargetSdk = androidCompileSdk
const val anvilGradlePlugin = "2.4.2"
const val atomicFuGradlePlugin = "0.18.5"
const val atomicFu = "0.18.5"
const val baseKotlin = "1.7.21"
const val binaryCompatibilityValidator = "0.12.1"
const val composeAndroidX = "1.3.0-beta02"
Expand Down
8 changes: 7 additions & 1 deletion cache/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ kotlin {
}
}

val commonMain by getting
val commonMain by getting {
dependencies {
with(Deps.Kotlinx) {
api(atomicFu)
}
}
}
val jvmMain by getting
val androidMain by getting
val nativeMain by creating {
Expand Down
5 changes: 4 additions & 1 deletion multicast/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ kotlin {

val commonMain by getting {
dependencies {
implementation(Deps.Kotlinx.coroutinesCore)
with(Deps.Kotlinx) {
api(atomicFu)
implementation(coroutinesCore)
}
}
}
val jvmMain by getting
Expand Down
1 change: 1 addition & 0 deletions store/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ kotlin {
implementation(coroutinesCore)
implementation(serializationCore)
implementation(dateTime)
api(atomicFu)
}
implementation(Deps.Touchlab.kermit)
implementation(project(":multicast"))
Expand Down

0 comments on commit 5eff430

Please sign in to comment.