Skip to content

Commit f050896

Browse files
committed
Disable test tasks in gradle to skip ios tests
1 parent 1612897 commit f050896

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

firebase-auth/build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ kotlin {
8181
}
8282

8383
val supportIosTarget = project.property("skipIosTarget") != "true"
84-
val runIosTests = project.property("firebase-auth.skipIosTests") != "true"
85-
86-
println("supportIosTarget: $supportIosTarget runIosTests $runIosTests")
8784
if (supportIosTarget) {
8885

8986
fun nativeTargetConfig(): KotlinNativeTarget.() -> Unit = {
@@ -183,10 +180,13 @@ kotlin {
183180

184181
val jsMain by getting
185182
}
183+
}
186184

187-
if (!runIosTests) {
188-
tasks.forEach {
189-
if (it.name.contains("ios") && it.name.contains("test")) { it.enabled = false }
185+
if (project.property("firebase-auth.skipIosTests") == "true") {
186+
tasks.forEach {
187+
if (it.name.contains("ios") && it.name.contains("test")) {
188+
println("Skipping ${it.name}")
189+
it.enabled = false
190190
}
191191
}
192192
}

0 commit comments

Comments
 (0)