Dont add default soruce set to mingw on multiplatform-crypto, as it uses it's own SRNG

This commit is contained in:
Ugljesa Jovanovic 2020-05-30 00:09:10 +02:00 committed by Ugljesa Jovanovic
parent 82470472ad
commit 452d7561a2
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F

View File

@ -204,7 +204,9 @@ 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 (this@withType.name.contains("ios").not()) { if ((this@withType.name.contains("ios") ||
this@withType.name.contains("ios")).not()
) {
println("Setting native sourceset dependancy for $this@withType.name") println("Setting native sourceset dependancy for $this@withType.name")
defaultSourceSet.dependsOn(nativeMain) defaultSourceSet.dependsOn(nativeMain)
} }