Skip to content

Commit

Permalink
Merge pull request #252 from vivid-money/multiplatform-plugin
Browse files Browse the repository at this point in the history
implement multiplatform plugin
  • Loading branch information
dsvag authored Jan 24, 2024
2 parents 8d2983c + 689f404 commit 16b7a96
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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()
}
2 changes: 1 addition & 1 deletion elmslie-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("elmslie.kotlin-lib")
id("elmslie.kotlin-jvm-lib")
id("elmslie.tests-convention")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 16b7a96

Please sign in to comment.