2020-07-09 20:45:23 +00:00
|
|
|
plugins {
|
|
|
|
id "org.jetbrains.kotlin.multiplatform"
|
|
|
|
id "maven-publish"
|
|
|
|
}
|
2020-06-03 15:49:29 +00:00
|
|
|
|
2020-06-14 19:05:48 +00:00
|
|
|
|
|
|
|
ext.artifactName = "bank-finder"
|
|
|
|
|
2020-06-03 15:49:29 +00:00
|
|
|
|
2020-07-09 20:45:23 +00:00
|
|
|
kotlin {
|
|
|
|
jvm {
|
2022-02-11 22:53:35 +00:00
|
|
|
compilations.all {
|
|
|
|
kotlinOptions.jvmTarget = '1.8'
|
|
|
|
}
|
|
|
|
withJava()
|
|
|
|
testRuns["test"].executionTask.configure {
|
|
|
|
useJUnitPlatform()
|
2020-07-09 20:45:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
// js(BOTH) {
|
|
|
|
// browser {
|
|
|
|
// commonWebpackConfig {
|
|
|
|
// cssSupport.enabled = true
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
ios {
|
|
|
|
binaries {
|
|
|
|
framework {
|
|
|
|
baseName = "BankFinder"
|
2020-07-09 20:45:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
// def hostOs = System.getProperty("os.name")
|
|
|
|
// def isMingwX64 = hostOs.startsWith("Windows")
|
|
|
|
// def nativeTarget
|
|
|
|
// if (hostOs == "Mac OS X") nativeTarget = macosX64('native') { binaries.executable() }
|
|
|
|
// else if (hostOs == "Linux") nativeTarget = linuxX64("native") { binaries.executable() }
|
|
|
|
// else if (isMingwX64) nativeTarget = mingwX64("native") { binaries.executable() }
|
|
|
|
// else throw new GradleException("Host OS is not supported in Kotlin/Native.")
|
|
|
|
|
2020-07-09 20:45:23 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2020-11-17 00:34:07 +00:00
|
|
|
api project(":common")
|
2020-07-09 20:45:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin("test-common")
|
|
|
|
implementation kotlin("test-annotations-common")
|
|
|
|
}
|
|
|
|
}
|
2020-06-03 15:49:29 +00:00
|
|
|
|
|
|
|
|
2020-07-09 20:45:23 +00:00
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
|
|
|
api "net.dankito.utils:java-utils:$javaUtilsVersion"
|
|
|
|
}
|
|
|
|
}
|
2020-06-03 15:49:29 +00:00
|
|
|
|
2020-07-09 20:45:23 +00:00
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
2020-06-03 15:49:29 +00:00
|
|
|
|
2020-07-09 20:45:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
iosMain {
|
|
|
|
dependencies {
|
2022-02-11 22:53:35 +00:00
|
|
|
|
2020-07-09 20:45:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-11 15:09:43 +00:00
|
|
|
iosTest {
|
|
|
|
dependencies {
|
2020-07-09 11:34:45 +00:00
|
|
|
|
2022-02-11 22:53:35 +00:00
|
|
|
}
|
2020-07-09 20:45:23 +00:00
|
|
|
}
|
|
|
|
}
|
2022-02-11 22:53:35 +00:00
|
|
|
}
|