make FlutterProject synchronous (#31757)
diff --git a/packages/flutter_tools/test/ios/cocoapods_test.dart b/packages/flutter_tools/test/ios/cocoapods_test.dart
index 9bb1963..9baa6db 100644
--- a/packages/flutter_tools/test/ios/cocoapods_test.dart
+++ b/packages/flutter_tools/test/ios/cocoapods_test.dart
@@ -57,7 +57,7 @@
fs = MemoryFileSystem();
mockProcessManager = MockProcessManager();
mockXcodeProjectInterpreter = MockXcodeProjectInterpreter();
- projectUnderTest = await FlutterProject.fromDirectory(fs.directory('project'));
+ projectUnderTest = FlutterProject.fromDirectory(fs.directory('project'));
projectUnderTest.ios.xcodeProject.createSync(recursive: true);
cocoaPodsUnderTest = CocoaPods();
pretendPodVersionIs('1.5.0');
@@ -156,7 +156,7 @@
'SWIFT_VERSION': '4.0',
});
- final FlutterProject project = await FlutterProject.fromPath('project');
+ final FlutterProject project = FlutterProject.fromPath('project');
cocoaPodsUnderTest.setupPodfile(project.ios);
expect(projectUnderTest.ios.podfile.readAsStringSync(), 'Swift podfile template');
@@ -168,7 +168,7 @@
testUsingContext('does not recreate Podfile when already present', () async {
projectUnderTest.ios.podfile..createSync()..writeAsStringSync('Existing Podfile');
- final FlutterProject project = await FlutterProject.fromPath('project');
+ final FlutterProject project = FlutterProject.fromPath('project');
cocoaPodsUnderTest.setupPodfile(project.ios);
expect(projectUnderTest.ios.podfile.readAsStringSync(), 'Existing Podfile');
@@ -179,7 +179,7 @@
testUsingContext('does not create Podfile when we cannot interpret Xcode projects', () async {
when(mockXcodeProjectInterpreter.isInstalled).thenReturn(false);
- final FlutterProject project = await FlutterProject.fromPath('project');
+ final FlutterProject project = FlutterProject.fromPath('project');
cocoaPodsUnderTest.setupPodfile(project.ios);
expect(projectUnderTest.ios.podfile.existsSync(), false);
@@ -197,7 +197,7 @@
..createSync(recursive: true)
..writeAsStringSync('Existing release config');
- final FlutterProject project = await FlutterProject.fromPath('project');
+ final FlutterProject project = FlutterProject.fromPath('project');
cocoaPodsUnderTest.setupPodfile(project.ios);
final String debugContents = projectUnderTest.ios.xcodeConfigFor('Debug').readAsStringSync();
@@ -225,7 +225,7 @@
..createSync(recursive: true)
..writeAsStringSync('Existing release config');
- final FlutterProject project = await FlutterProject.fromPath('project');
+ final FlutterProject project = FlutterProject.fromPath('project');
await injectPlugins(project);
final String debugContents = projectUnderTest.ios.xcodeConfigFor('Debug').readAsStringSync();