Add temporary ios filtering everywhere
This commit is contained in:
parent
8b91cf41ea
commit
05ef422747
@ -203,8 +203,10 @@ kotlin {
|
|||||||
|
|
||||||
}
|
}
|
||||||
compilations.getByName("test") {
|
compilations.getByName("test") {
|
||||||
println("Setting cinterop for $name")
|
if (this@withType.name.contains("ios").not()) {
|
||||||
|
println("Setting native test dep for $this@withType.name")
|
||||||
defaultSourceSet.dependsOn(nativeTest)
|
defaultSourceSet.dependsOn(nativeTest)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -204,13 +204,15 @@ kotlin {
|
|||||||
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
|
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
|
||||||
compilations.getByName("main") {
|
compilations.getByName("main") {
|
||||||
println("Setting native sourceset dependancy for $name")
|
println("Setting native sourceset dependancy for $name")
|
||||||
if (!name.contains("ios")) {
|
if (this@withType.name.contains("ios").not()) {
|
||||||
|
println("Setting native sourceset dependancy for $this@withType.name")
|
||||||
defaultSourceSet.dependsOn(nativeMain)
|
defaultSourceSet.dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compilations.getByName("test") {
|
compilations.getByName("test") {
|
||||||
println("Setting native sourceset dependancy for $name")
|
println("Setting native sourceset dependancy for $name")
|
||||||
if (!name.contains("ios")) {
|
if (this@withType.name.contains("ios").not()) {
|
||||||
|
println("Setting native sourceset dependancy for $this@withType.name")
|
||||||
defaultSourceSet.dependsOn(nativeTest)
|
defaultSourceSet.dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -283,24 +285,24 @@ kotlin {
|
|||||||
if (hostOsName == "macos") {
|
if (hostOsName == "macos") {
|
||||||
|
|
||||||
val iosMain by getting {
|
val iosMain by getting {
|
||||||
dependsOn(nativeMain)
|
// dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
val iosTest by getting {
|
val iosTest by getting {
|
||||||
dependsOn(nativeTest)
|
// dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
val ios64ArmMain by getting {
|
val ios64ArmMain by getting {
|
||||||
dependsOn(nativeMain)
|
// dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
val ios64ArmTest by getting {
|
val ios64ArmTest by getting {
|
||||||
dependsOn(nativeTest)
|
// dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
val ios32ArmMain by getting {
|
val ios32ArmMain by getting {
|
||||||
dependsOn(nativeMain)
|
// dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
val ios32ArmTest by getting {
|
val ios32ArmTest by getting {
|
||||||
dependsOn(nativeTest)
|
// dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
val macosX64Main by getting {
|
val macosX64Main by getting {
|
||||||
|
@ -208,13 +208,15 @@ kotlin {
|
|||||||
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
|
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
|
||||||
compilations.getByName("main") {
|
compilations.getByName("main") {
|
||||||
println("Setting native sourceset dependancy for $name")
|
println("Setting native sourceset dependancy for $name")
|
||||||
if (!name.contains("ios")) {
|
if (this@withType.name.contains("ios").not()) {
|
||||||
|
println("Setting native sourceset deps for $this@withType.name")
|
||||||
defaultSourceSet.dependsOn(nativeMain)
|
defaultSourceSet.dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compilations.getByName("test") {
|
compilations.getByName("test") {
|
||||||
println("Setting native sourceset dependancy for $name")
|
println("Setting native sourceset dependancy for $name")
|
||||||
if (!name.contains("ios")) {
|
if (this@withType.name.contains("ios").not()) {
|
||||||
|
println("Setting native test deps for $this@withType.name")
|
||||||
defaultSourceSet.dependsOn(nativeTest)
|
defaultSourceSet.dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -285,24 +287,24 @@ kotlin {
|
|||||||
if (hostOsName == "macos") {
|
if (hostOsName == "macos") {
|
||||||
|
|
||||||
val iosMain by getting {
|
val iosMain by getting {
|
||||||
dependsOn(nativeMain)
|
// dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
val iosTest by getting {
|
val iosTest by getting {
|
||||||
dependsOn(nativeTest)
|
// dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
val ios64ArmMain by getting {
|
val ios64ArmMain by getting {
|
||||||
dependsOn(nativeMain)
|
// dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
val ios64ArmTest by getting {
|
val ios64ArmTest by getting {
|
||||||
dependsOn(nativeTest)
|
// dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
val ios32ArmMain by getting {
|
val ios32ArmMain by getting {
|
||||||
dependsOn(nativeMain)
|
// dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
val ios32ArmTest by getting {
|
val ios32ArmTest by getting {
|
||||||
dependsOn(nativeTest)
|
// dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
val macosX64Main by getting {
|
val macosX64Main by getting {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user