Updated to new Kotlin Multiplatform settings

This commit is contained in:
dankito 2024-08-19 23:09:19 +02:00
parent 56c9fd79bd
commit 41bdeca35b
2 changed files with 15 additions and 16 deletions

View File

@ -6,13 +6,13 @@ plugins {
kotlin { kotlin {
targetHierarchy.default()
linuxX64() linuxX64()
mingwX64() mingwX64()
macosX64() macosX64()
macosArm64() macosArm64()
applyDefaultHierarchyTemplate()
val kotlinxSerializationVersion: String by project val kotlinxSerializationVersion: String by project

View File

@ -8,11 +8,15 @@ plugins {
kotlin { kotlin {
// Enable the default target hierarchy: jvmToolchain(8)
targetHierarchy.default()
compilerOptions {
// suppresses compiler warning: [EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING] 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta.
freeCompilerArgs.add("-Xexpect-actual-classes")
}
jvm { jvm {
jvmToolchain(8)
withJava() // not allowed if android { } is present withJava() // not allowed if android { } is present
testRuns["test"].executionTask.configure { testRuns["test"].executionTask.configure {
@ -24,7 +28,7 @@ kotlin {
} }
} }
js(IR) { js {
binaries.executable() binaries.executable()
browser { browser {
@ -43,22 +47,17 @@ kotlin {
linuxX64() linuxX64()
mingwX64() mingwX64()
iosArm64()
ios {
binaries {
framework {
baseName = "fints4k"
}
}
}
iosSimulatorArm64() iosSimulatorArm64()
macosX64() macosX64()
macosArm64() macosArm64()
watchos() watchosArm64()
watchosSimulatorArm64() watchosSimulatorArm64()
tvos() tvosArm64()
tvosSimulatorArm64() tvosSimulatorArm64()
applyDefaultHierarchyTemplate()
sourceSets { sourceSets {
commonMain { commonMain {