Skip to content

Commit be32cd0

Browse files
committed
Only add the dependencies if running from a mac
1 parent 516250d commit be32cd0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,12 @@ subprojects {
122122
mkdir("$buildDir/node_module")
123123
}
124124

125-
tasks.getByPath("compileKotlinIos").dependsOn(rootProject.tasks.named("unzipIOSFirebase"))
126-
tasks.getByPath("compileKotlinIosArm64").dependsOn(rootProject.tasks.named("unzipIOSFirebase"))
125+
if(Os.isFamily(Os.FAMILY_MAC)) {
126+
tasks.getByPath("compileKotlinIos").dependsOn(rootProject.tasks.named("unzipIOSFirebase"))
127+
tasks.getByPath("compileKotlinIosArm64").dependsOn(rootProject.tasks.named("unzipIOSFirebase"))
128+
} else {
129+
println("Skipping Firebase zip dowload")
130+
}
127131

128132
tasks.named("publishToMavenLocal").configure {
129133
shouldSign = false

0 commit comments

Comments
 (0)