Skip to content

Commit

Permalink
use multiplatform plugin instead of jvm
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvag committed Feb 10, 2024
1 parent fec3f6f commit ac22f60
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
@file:Suppress("UnstableApiUsage")

plugins {
kotlin("multiplatform")
id("com.android.library")
id("elmslie.detekt")
}

java {
targetCompatibility = JvmTarget
sourceCompatibility = JvmTarget
}

kotlin {
applyDefaultHierarchyTemplate()

androidTarget {
jvm {
compilations.all {
kotlinOptions {
jvmTarget = JvmTarget.toString()
}
}
}

iosX64()
iosArm64()
}
}
22 changes: 16 additions & 6 deletions elmslie-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
plugins {
id("elmslie.kotlin-jvm-lib")
id("elmslie.tests-convention")
id("elmslie.kotlin-multiplatform-lib")
}

dependencies {
implementation(libs.kotlinx.coroutinesCore)
testImplementation(libs.kotlinx.coroutinesTest)
}
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(libs.kotlinx.coroutinesCore)
}
}
val commonTest by getting {
dependencies {
implementation(libs.kotlinx.coroutinesTest)
implementation(libs.kotlin.test)
}
}
}
}

0 comments on commit ac22f60

Please sign in to comment.