2020-06-03 15:49:29 +00:00
|
|
|
plugins {
|
|
|
|
id "org.jetbrains.kotlin.multiplatform"
|
2022-02-24 01:42:23 +00:00
|
|
|
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlinVersion"
|
2020-06-14 18:30:34 +00:00
|
|
|
id "maven-publish"
|
2020-06-03 15:49:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kotlin {
|
2023-07-06 13:43:23 +00:00
|
|
|
// Enable the default target hierarchy:
|
|
|
|
targetHierarchy.default()
|
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
jvm {
|
2023-07-06 13:43:23 +00:00
|
|
|
jvmToolchain(8)
|
|
|
|
withJava() // not allowed if android { } is present
|
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
testRuns["test"].executionTask.configure {
|
|
|
|
useJUnitPlatform()
|
2023-07-06 13:43:23 +00:00
|
|
|
|
|
|
|
testLogging { // This is for logging and can be removed.
|
|
|
|
events("passed", "skipped", "failed")
|
|
|
|
}
|
2020-07-02 21:14:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-15 00:39:17 +00:00
|
|
|
js(IR) {
|
2023-07-06 13:43:23 +00:00
|
|
|
// binaries.executable()
|
|
|
|
|
2022-02-15 00:39:17 +00:00
|
|
|
browser {
|
|
|
|
testTask {
|
|
|
|
useKarma {
|
2024-08-17 01:56:07 +00:00
|
|
|
// useChromeHeadless()
|
2023-07-06 13:43:23 +00:00
|
|
|
useFirefoxHeadless()
|
2022-02-15 00:39:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-06 13:43:23 +00:00
|
|
|
|
|
|
|
nodejs()
|
2022-02-15 00:39:17 +00:00
|
|
|
}
|
2022-02-11 22:53:35 +00:00
|
|
|
|
2023-07-06 13:43:23 +00:00
|
|
|
|
|
|
|
linuxX64()
|
|
|
|
mingwX64()
|
|
|
|
|
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
ios {
|
|
|
|
binaries {
|
|
|
|
framework {
|
|
|
|
baseName = "fints4k"
|
2020-06-09 21:55:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-06 13:43:23 +00:00
|
|
|
iosSimulatorArm64()
|
|
|
|
macosX64()
|
|
|
|
macosArm64()
|
|
|
|
watchos()
|
|
|
|
watchosSimulatorArm64()
|
|
|
|
tvos()
|
|
|
|
tvosSimulatorArm64()
|
2022-02-11 22:53:35 +00:00
|
|
|
|
2020-06-03 15:49:29 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2024-08-19 09:32:35 +00:00
|
|
|
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
|
2020-07-11 10:03:28 +00:00
|
|
|
|
2024-08-19 06:53:53 +00:00
|
|
|
implementation("net.codinux.log:kmp-log:1.5.1")
|
2023-07-06 16:21:45 +00:00
|
|
|
|
2023-07-06 11:49:55 +00:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1"
|
2022-02-13 21:01:13 +00:00
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
|
|
|
|
|
2022-02-24 01:42:23 +00:00
|
|
|
implementation "co.touchlab:stately-concurrency:1.2.0"
|
|
|
|
|
2024-08-19 06:56:05 +00:00
|
|
|
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
2020-06-03 15:49:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
2023-07-06 14:52:37 +00:00
|
|
|
implementation kotlin("test")
|
2024-08-19 06:56:05 +00:00
|
|
|
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion")
|
2020-06-03 15:49:29 +00:00
|
|
|
}
|
|
|
|
}
|
2019-10-02 17:54:11 +00:00
|
|
|
|
2020-05-14 20:40:42 +00:00
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
jvmMain {
|
2020-06-03 15:49:29 +00:00
|
|
|
dependencies {
|
2024-08-19 06:56:05 +00:00
|
|
|
// or use client-java or client-okhttp?
|
|
|
|
implementation("io.ktor:ktor-client-cio:$ktorVersion")
|
2020-06-03 15:49:29 +00:00
|
|
|
}
|
|
|
|
}
|
2019-10-12 18:54:02 +00:00
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
jvmTest {
|
2020-06-03 15:49:29 +00:00
|
|
|
dependencies {
|
|
|
|
implementation "org.assertj:assertj-core:$assertJVersion"
|
|
|
|
implementation "org.mockito:mockito-core:$mockitoVersion"
|
2019-10-02 17:54:11 +00:00
|
|
|
|
2020-06-09 21:55:30 +00:00
|
|
|
|
2020-06-03 15:49:29 +00:00
|
|
|
implementation "org.apache.commons:commons-csv:1.8"
|
2019-10-02 17:54:11 +00:00
|
|
|
|
2024-08-18 02:08:48 +00:00
|
|
|
implementation "ch.qos.logback:logback-classic:$logbackVersion"
|
2020-06-03 15:49:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-02-15 00:39:17 +00:00
|
|
|
jsMain {
|
|
|
|
dependencies {
|
2024-08-19 06:56:05 +00:00
|
|
|
implementation("io.ktor:ktor-client-js:$ktorVersion")
|
2024-08-19 09:32:35 +00:00
|
|
|
|
|
|
|
api(npm("@js-joda/timezone", "2.3.0"))
|
2022-02-15 00:39:17 +00:00
|
|
|
}
|
|
|
|
}
|
2020-06-03 15:49:29 +00:00
|
|
|
|
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
nativeMain {
|
2020-06-09 21:55:30 +00:00
|
|
|
dependencies {
|
2024-08-17 01:56:07 +00:00
|
|
|
implementation("com.github.ajalt.clikt:clikt:3.5.4")
|
2022-02-24 01:42:23 +00:00
|
|
|
|
|
|
|
// only needed for writing files to output
|
2024-08-17 01:56:07 +00:00
|
|
|
implementation "com.soywiz.korlibs.korio:korio:3.4.0"
|
2020-06-09 21:55:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-19 06:56:05 +00:00
|
|
|
linuxMain {
|
|
|
|
dependencies {
|
|
|
|
implementation("io.ktor:ktor-client-curl:$ktorVersion")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mingwMain {
|
|
|
|
dependencies {
|
|
|
|
implementation("io.ktor:ktor-client-winhttp:$ktorVersion")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
appleMain {
|
|
|
|
dependencies {
|
|
|
|
implementation("io.ktor:ktor-client-darwin:$ktorVersion")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-03 15:49:29 +00:00
|
|
|
}
|
2019-10-02 17:54:11 +00:00
|
|
|
}
|