| kotlin("multiplatform") version "1.7.10" |
| url = uri("http://localhost:1480") |
| isAllowInsecureProtocol = true |
| val hostOs = System.getProperty("os.name") |
| val isMingwX64 = hostOs.startsWith("Windows") |
| val nativeTarget = when { |
| hostOs == "Mac OS X" -> macosX64("native") |
| hostOs == "Linux" -> linuxX64("native") |
| isMingwX64 -> mingwX64("native") |
| else -> throw GradleException("Host OS is not supported in Kotlin/Native.") |
| kotlinOptions.jvmTarget = "1.8" |
| testRuns["test"].executionTask.configure { |
| val nativeMain by getting |
| val commonMain by getting { |
| implementation("androidx.collection:collection:1.3.0-alpha03") |
| val nativeTest by getting |
| implementation(kotlin("test")) |