IDE: Add a flag to disable native libraries propagation

This commit is contained in:
Ilya Matveev
2019-09-27 12:29:18 +07:00
parent becdd7a5e6
commit 95cbb4e8b4
10 changed files with 112 additions and 21 deletions
@@ -0,0 +1,35 @@
plugins {
kotlin("multiplatform") version "1.3.60-dev-2515"
}
repositories {
jcenter()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
}
kotlin {
val jvm = jvm()
val iosDev = iosArm64()
val iosSim = iosX64()
val watchDev = watchosArm32()
val watchSim = watchosX86()
sourceSets {
val commonMain by getting
val appleMain by creating {
dependsOn(commonMain)
}
val iosMain by creating {
dependsOn(appleMain)
}
configure(listOf(watchDev, watchSim)) {
compilations["main"].defaultSourceSet.dependsOn(appleMain)
}
configure(listOf(iosDev, iosSim)) {
compilations["main"].defaultSourceSet.dependsOn(iosMain)
}
}
}
@@ -0,0 +1,3 @@
org.jetbrains.kotlin.native.home=../kotlin-native-data-dir/kotlin-native-PLATFORM-VERSION
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
@@ -0,0 +1,7 @@
pluginManagement {
repositories {
jcenter()
gradlePluginPortal()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
}
}