Don't run android tasks on mac/windows
This commit is contained in:
2 files changed
+21
-14
No files matched your search
@@ -37,6 +37,12 @@ fun getHostArchitecture(): String {
|
||||
return resolvedArch
|
||||
}
|
||||
|
||||
fun rootRunningOnLinuxx86_64(block: () -> Unit) {
|
||||
if (getHostOsName() == "linux" && getHostArchitecture() == "x86-64") {
|
||||
block()
|
||||
}
|
||||
}
|
||||
|
||||
fun KotlinMultiplatformExtension.isRunningInIdea(block: KotlinMultiplatformExtension.() -> Unit) {
|
||||
if (isInIdea()) {
|
||||
block(this)
|
||||
@@ -109,4 +115,4 @@ fun NamedDomainObjectContainer<KotlinSourceSet>.createWorkaroundNativeMainSource
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user