diff --git a/build-logic/src/main/kotlin/elmslie.kotlin-lib.gradle.kts b/build-logic/src/main/kotlin/elmslie.kotlin-jvm-lib.gradle.kts similarity index 100% rename from build-logic/src/main/kotlin/elmslie.kotlin-lib.gradle.kts rename to build-logic/src/main/kotlin/elmslie.kotlin-jvm-lib.gradle.kts diff --git a/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts b/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts new file mode 100644 index 00000000..a85a9692 --- /dev/null +++ b/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts @@ -0,0 +1,22 @@ +@file:Suppress("UnstableApiUsage") + +plugins { + kotlin("multiplatform") + id("com.android.library") + id("elmslie.detekt") +} + +kotlin { + applyDefaultHierarchyTemplate() + + androidTarget { + compilations.all { + kotlinOptions { + jvmTarget = JvmTarget.toString() + } + } + } + + iosX64() + iosArm64() +} diff --git a/elmslie-core/build.gradle.kts b/elmslie-core/build.gradle.kts index cd9b76a3..a16e6bdd 100644 --- a/elmslie-core/build.gradle.kts +++ b/elmslie-core/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - id("elmslie.kotlin-lib") + id("elmslie.kotlin-jvm-lib") id("elmslie.tests-convention") } diff --git a/elmslie-core/src/main/java/vivid/money/elmslie/core/logger/ElmslieLogConfiguration.kt b/elmslie-core/src/main/java/vivid/money/elmslie/core/logger/ElmslieLogConfiguration.kt index 38788d7d..50d255e1 100644 --- a/elmslie-core/src/main/java/vivid/money/elmslie/core/logger/ElmslieLogConfiguration.kt +++ b/elmslie-core/src/main/java/vivid/money/elmslie/core/logger/ElmslieLogConfiguration.kt @@ -23,7 +23,7 @@ class ElmslieLogConfiguration { /** Apply the same logging strategy to all log levels */ fun always(strategy: LogStrategy) = apply { - LogSeverity.values().forEach { strategies[it] = strategy } + LogSeverity.entries.forEach { strategies[it] = strategy } } internal fun build() = ElmslieLogger(strategies) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b428400d..f7570ec3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,7 +2,7 @@ agp = "8.0.2" coroutines = "1.7.1" dokka = "1.8.20" -kotlin = "1.8.21" +kotlin = "1.9.21" lifecycle = "2.6.1" [libraries]