File tree Expand file tree Collapse file tree 6 files changed +55
-41
lines changed Expand file tree Collapse file tree 6 files changed +55
-41
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ kotlin {
58
58
}
59
59
60
60
val supportIosTarget = project.property(" skipIosTarget" ) != " true"
61
- val runIosTests = project.property(" firebase-app.skipIosTests" ) != " true"
62
-
63
61
if (supportIosTarget) {
64
62
65
63
fun nativeTargetConfig (): KotlinNativeTarget .() -> Unit = {
@@ -144,17 +142,21 @@ kotlin {
144
142
val iosSimulatorArm64Main by getting
145
143
iosSimulatorArm64Main.dependsOn(iosMain)
146
144
147
- if (runIosTests) {
148
- val iosTest by sourceSets.getting
149
- val iosSimulatorArm64Test by sourceSets.getting
150
- iosSimulatorArm64Test.dependsOn(iosTest)
151
- }
145
+ val iosTest by sourceSets.getting
146
+ val iosSimulatorArm64Test by sourceSets.getting
147
+ iosSimulatorArm64Test.dependsOn(iosTest)
152
148
}
153
149
154
150
val jsMain by getting
155
151
}
156
152
}
157
153
154
+ if (project.property(" firebase-app.skipIosTests" ) == " true" ) {
155
+ tasks.forEach {
156
+ if (it.name.contains(" ios" ) && it.name.contains(" test" )) { it.enabled = false }
157
+ }
158
+ }
159
+
158
160
signing {
159
161
val signingKey: String? by project
160
162
val signingPassword: String? by project
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ kotlin {
47
47
}
48
48
49
49
val supportIosTarget = project.property(" skipIosTarget" ) != " true"
50
- val runIosTests = project.property(" firebase-common.skipIosTests" ) != " true"
51
50
52
51
if (supportIosTarget) {
53
52
ios()
@@ -102,11 +101,9 @@ kotlin {
102
101
val iosSimulatorArm64Main by getting
103
102
iosSimulatorArm64Main.dependsOn(iosMain)
104
103
105
- if (runIosTests) {
106
- val iosTest by sourceSets.getting
107
- val iosSimulatorArm64Test by sourceSets.getting
108
- iosSimulatorArm64Test.dependsOn(iosTest)
109
- }
104
+ val iosTest by sourceSets.getting
105
+ val iosSimulatorArm64Test by sourceSets.getting
106
+ iosSimulatorArm64Test.dependsOn(iosTest)
110
107
}
111
108
112
109
val jsMain by getting {
@@ -117,6 +114,12 @@ kotlin {
117
114
}
118
115
}
119
116
117
+ if (project.property(" firebase-common.skipIosTests" ) == " true" ) {
118
+ tasks.forEach {
119
+ if (it.name.contains(" ios" ) && it.name.contains(" test" )) { it.enabled = false }
120
+ }
121
+ }
122
+
120
123
signing {
121
124
val signingKey: String? by project
122
125
val signingPassword: String? by project
Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ kotlin {
70
70
}
71
71
72
72
val supportIosTarget = project.property(" skipIosTarget" ) != " true"
73
- val runIosTests = project.property(" firebase-config.skipIosTests" ) != " true"
74
-
75
73
if (supportIosTarget) {
76
74
fun nativeTargetConfig (): KotlinNativeTarget .() -> Unit = {
77
75
val nativeFrameworkPaths = listOf (
@@ -153,17 +151,21 @@ kotlin {
153
151
val iosSimulatorArm64Main by getting
154
152
iosSimulatorArm64Main.dependsOn(iosMain)
155
153
156
- if (runIosTests) {
157
- val iosTest by sourceSets.getting
158
- val iosSimulatorArm64Test by sourceSets.getting
159
- iosSimulatorArm64Test.dependsOn(iosTest)
160
- }
154
+ val iosTest by sourceSets.getting
155
+ val iosSimulatorArm64Test by sourceSets.getting
156
+ iosSimulatorArm64Test.dependsOn(iosTest)
161
157
}
162
158
163
159
val jsMain by getting
164
160
}
165
161
}
166
162
163
+ if (project.property(" firebase-config.skipIosTests" ) == " true" ) {
164
+ tasks.forEach {
165
+ if (it.name.contains(" ios" ) && it.name.contains(" test" )) { it.enabled = false }
166
+ }
167
+ }
168
+
167
169
signing {
168
170
val signingKey: String? by project
169
171
val signingPassword: String? by project
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ kotlin {
57
57
}
58
58
59
59
val supportIosTarget = project.property(" skipIosTarget" ) != " true"
60
- val runIosTests = project.property(" firebase-database.skipIosTests" ) != " true"
61
-
62
60
if (supportIosTarget) {
63
61
fun nativeTargetConfig (): KotlinNativeTarget .() -> Unit = {
64
62
val nativeFrameworkPaths = listOf (
@@ -153,17 +151,21 @@ kotlin {
153
151
val iosSimulatorArm64Main by getting
154
152
iosSimulatorArm64Main.dependsOn(iosMain)
155
153
156
- if (runIosTests) {
157
- val iosTest by sourceSets.getting
158
- val iosSimulatorArm64Test by sourceSets.getting
159
- iosSimulatorArm64Test.dependsOn(iosTest)
160
- }
154
+ val iosTest by sourceSets.getting
155
+ val iosSimulatorArm64Test by sourceSets.getting
156
+ iosSimulatorArm64Test.dependsOn(iosTest)
161
157
}
162
158
163
159
val jsMain by getting
164
160
}
165
161
}
166
162
163
+ if (project.property(" firebase-skipIosTests.skipIosTests" ) == " true" ) {
164
+ tasks.forEach {
165
+ if (it.name.contains(" ios" ) && it.name.contains(" test" )) { it.enabled = false }
166
+ }
167
+ }
168
+
167
169
signing {
168
170
val signingKey: String? by project
169
171
val signingPassword: String? by project
Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ kotlin {
60
60
}
61
61
62
62
val supportIosTarget = project.property(" skipIosTarget" ) != " true"
63
- val runIosTests = project.property(" firebase-firestore.skipIosTests" ) != " true"
64
-
65
63
if (supportIosTarget) {
66
64
fun nativeTargetConfig (): KotlinNativeTarget .() -> Unit = {
67
65
val nativeFrameworkPaths = listOf (
@@ -159,16 +157,21 @@ kotlin {
159
157
val iosSimulatorArm64Main by getting
160
158
iosSimulatorArm64Main.dependsOn(iosMain)
161
159
162
- if (runIosTests) {
163
- val iosTest by sourceSets.getting
164
- val iosSimulatorArm64Test by sourceSets.getting
165
- iosSimulatorArm64Test.dependsOn(iosTest)
166
- }
160
+ val iosTest by sourceSets.getting
161
+ val iosSimulatorArm64Test by sourceSets.getting
162
+ iosSimulatorArm64Test.dependsOn(iosTest)
167
163
}
168
164
169
165
val jsMain by getting
170
166
}
171
167
}
168
+
169
+ if (project.property(" firebase-firestore.skipIosTests" ) == " true" ) {
170
+ tasks.forEach {
171
+ if (it.name.contains(" ios" ) && it.name.contains(" test" )) { it.enabled = false }
172
+ }
173
+ }
174
+
172
175
signing {
173
176
val signingKey: String? by project
174
177
val signingPassword: String? by project
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ kotlin {
52
52
}
53
53
54
54
val supportIosTarget = project.property(" skipIosTarget" ) != " true"
55
- val runIosTests = project.property(" firebase-functions.skipIosTests" ) != " true"
56
-
57
55
if (supportIosTarget) {
58
56
fun nativeTargetConfig (): KotlinNativeTarget .() -> Unit = {
59
57
val nativeFrameworkPaths = listOf (
@@ -147,17 +145,21 @@ kotlin {
147
145
val iosSimulatorArm64Main by getting
148
146
iosSimulatorArm64Main.dependsOn(iosMain)
149
147
150
- if (runIosTests) {
151
- val iosTest by sourceSets.getting
152
- val iosSimulatorArm64Test by sourceSets.getting
153
- iosSimulatorArm64Test.dependsOn(iosTest)
154
- }
148
+ val iosTest by sourceSets.getting
149
+ val iosSimulatorArm64Test by sourceSets.getting
150
+ iosSimulatorArm64Test.dependsOn(iosTest)
155
151
}
156
152
157
153
val jsMain by getting
158
154
}
159
155
}
160
156
157
+ if (project.property(" firebase-functions.skipIosTests" ) == " true" ) {
158
+ tasks.forEach {
159
+ if (it.name.contains(" ios" ) && it.name.contains(" test" )) { it.enabled = false }
160
+ }
161
+ }
162
+
161
163
signing {
162
164
val signingKey: String? by project
163
165
val signingPassword: String? by project
You can’t perform that action at this time.
0 commit comments