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