Expose AtomicFU (#505)

Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>
This commit is contained in:
Matt 2022-12-29 19:08:58 -05:00 committed by GitHub
parent eeb2bf7850
commit d5aedb0ef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 4 deletions

View file

@ -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}")
}
}

View file

@ -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}"

View file

@ -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"

View file

@ -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 {

View file

@ -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

View file

@ -47,6 +47,7 @@ kotlin {
implementation(coroutinesCore)
implementation(serializationCore)
implementation(dateTime)
api(atomicFu)
}
implementation(Deps.Touchlab.kermit)
implementation(project(":multicast"))