@@ -185,10 +185,6 @@ void main() {
185
185
reason:
186
186
"Plugin should be created in: '${producerPlugin .absolute .path }'" );
187
187
188
- final podFile =
189
- File ("${consumerPlugin .absolutePath }/ios/Podfile" .normalize);
190
- expect (podFile.existsSync (), true , reason: "Podfile should exist" );
191
-
192
188
/// Add Klutter as dev_dependency.
193
189
await addKlutterAsDevDependency (
194
190
root: consumerPlugin.absolutePath,
@@ -235,23 +231,29 @@ void main() {
235
231
reason: "klutter-plugins file should be created" );
236
232
237
233
/// Run only iOS init, then Android is skipped
234
+ if (! Platform .isWindows) {
235
+ final podFile =
236
+ File ("${consumerPlugin .absolutePath }/ios/Podfile" .normalize);
237
+ expect (podFile.existsSync (), true , reason: "Podfile should exist: ${podFile .absolutePath }" );
238
+
239
+ // Delete the exclusion which is added by iOS init
240
+ podFile.writeAsStringSync (podFile.readAsStringSync ().replaceAll (
241
+ "bc.build_settings['ARCHS[sdk=iphonesimulator*]'] = `uname -m`" , "" ));
242
+
243
+ // Delete the klutter-plugins file which is added by Android init
244
+ registry.deleteSync ();
245
+ expect (registry.existsSync (), false );
246
+
247
+ await sut.execute (
248
+ pathToRoot: consumerPlugin.absolutePath,
249
+ script: sut.ScriptName .consumer,
250
+ arguments: ["init=ios" ],
251
+ );
252
+
253
+ expect (registry.existsSync (), false ,
254
+ reason: "Android init should not have been executed" );
255
+ }
238
256
239
- // Delete the exclusion which is added by iOS init
240
- podFile.writeAsStringSync (podFile.readAsStringSync ().replaceAll (
241
- "bc.build_settings['ARCHS[sdk=iphonesimulator*]'] = `uname -m`" , "" ));
242
-
243
- // Delete the klutter-plugins file which is added by Android init
244
- registry.deleteSync ();
245
- expect (registry.existsSync (), false );
246
-
247
- await sut.execute (
248
- pathToRoot: consumerPlugin.absolutePath,
249
- script: sut.ScriptName .consumer,
250
- arguments: ["init=ios" ],
251
- );
252
-
253
- expect (registry.existsSync (), false ,
254
- reason: "Android init should not have been executed" );
255
257
});
256
258
257
259
tearDownAll (() => pathToRoot.deleteSync (recursive: true ));
0 commit comments