Don't run android tasks on mac/windows

This commit is contained in:
Ugljesa Jovanovic committed 2020-10-07 20:13:14 +02:00
1 parent 345ddc563e
commit 887c52a319
2 files changed
+9 -2

No files matched your search

+6
View File
@@ -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)
@@ -57,8 +57,8 @@ version = ReleaseInfo.version
val ideaActive = isInIdea()
println("Idea active: $ideaActive")
android {
rootRunningOnLinuxx86_64 {
android {
compileSdkVersion(29)
defaultConfig {
minSdkVersion(24)
@@ -72,6 +72,7 @@ android {
isMinifyEnabled = false
}
}
}
}