Skip to content

Commit cadc261

Browse files
authored
Merge pull request #33 from GitLiveApp/fix_windows_download_fb
Only add the dependencies if running from a mac
2 parents 516250d + be32cd0 commit cadc261

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)