Fixed setting up other targets then JVM (but wasm is not yet supported by fints4j)

This commit is contained in:
dankito 2024-08-17 05:12:19 +02:00
parent 29210974f0
commit 25f3451219
1 changed files with 47 additions and 46 deletions

View File

@ -34,48 +34,49 @@ kotlin {
}
}
// js {
// moduleName = "fints4k-banking-client"
// binaries.executable()
//
// browser {
// testTask {
// useKarma {
// useChromeHeadless()
// useFirefoxHeadless()
// }
// }
// }
//
// nodejs {
// testTask {
// useMocha {
// timeout = "20s" // Mocha times out after 2 s, which is too short for bufferExceeded() test
// }
// }
// }
// }
//
js {
moduleName = "fints4k-banking-client"
binaries.executable()
browser {
testTask {
useKarma {
useChromeHeadless()
useFirefoxHeadless()
}
}
}
nodejs {
testTask {
useMocha {
timeout = "20s" // Mocha times out after 2 s, which is too short for bufferExceeded() test
}
}
}
}
// wasmJs()
//
//
// linuxX64()
// mingwX64()
//
// iosArm64()
// iosSimulatorArm64()
// macosX64()
// macosArm64()
// watchosArm64()
// watchosSimulatorArm64()
// tvosArm64()
// tvosSimulatorArm64()
linuxX64()
mingwX64()
iosArm64()
iosSimulatorArm64()
macosX64()
macosArm64()
watchosArm64()
watchosSimulatorArm64()
tvosArm64()
tvosSimulatorArm64()
applyDefaultHierarchyTemplate()
val coroutinesVersion: String by project
val kotlinxDateTimeVersion: String by project
sourceSets {
commonMain {
@ -84,7 +85,7 @@ kotlin {
api("net.codinux.banking:fints4k:1.0.0-Alpha-10")
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
}
}
commonTest {
@ -97,7 +98,7 @@ kotlin {
jvmMain {
dependencies {
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:$coroutinesVersion")
}
}
jvmTest {
@ -106,15 +107,15 @@ kotlin {
}
}
// jsMain {
// dependencies {
//// implementation(npm("@js-joda/timezone", "2.3.0"))
// }
// }
// jsTest { }
//
// nativeMain { }
// nativeTest { }
jsMain {
dependencies {
}
}
jsTest { }
nativeMain { }
nativeTest { }
}
}