Don't run android tasks on mac/windows
This commit is contained in:
		
							parent
							
								
									345ddc563e
								
							
						
					
					
						commit
						887c52a319
					
				@ -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
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -57,19 +57,20 @@ version = ReleaseInfo.version
 | 
			
		||||
 | 
			
		||||
val ideaActive = isInIdea()
 | 
			
		||||
println("Idea active: $ideaActive")
 | 
			
		||||
 | 
			
		||||
android {
 | 
			
		||||
    compileSdkVersion(29)
 | 
			
		||||
    defaultConfig {
 | 
			
		||||
        minSdkVersion(24)
 | 
			
		||||
        targetSdkVersion(29)
 | 
			
		||||
        versionCode = 1
 | 
			
		||||
        versionName = "1.0"
 | 
			
		||||
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
 | 
			
		||||
    }
 | 
			
		||||
    buildTypes {
 | 
			
		||||
        getByName("release") {
 | 
			
		||||
            isMinifyEnabled = false
 | 
			
		||||
rootRunningOnLinuxx86_64 {
 | 
			
		||||
    android {
 | 
			
		||||
        compileSdkVersion(29)
 | 
			
		||||
        defaultConfig {
 | 
			
		||||
            minSdkVersion(24)
 | 
			
		||||
            targetSdkVersion(29)
 | 
			
		||||
            versionCode = 1
 | 
			
		||||
            versionName = "1.0"
 | 
			
		||||
            testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
 | 
			
		||||
        }
 | 
			
		||||
        buildTypes {
 | 
			
		||||
            getByName("release") {
 | 
			
		||||
                isMinifyEnabled = false
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user