[macOS] Flavors project throws no flavor specified for creating a project. (#113979)

This commit is contained in:
Alex Wallen
2022-10-25 09:50:50 -10:00
committed by GitHub
parent b373be8891
commit 92d8b04bac
2 changed files with 21 additions and 3 deletions

View File

@@ -509,6 +509,17 @@ apply plugin: 'kotlin-android'
expect(await project.ios.productBundleIdentifier(null), 'io.flutter.someProject.suffix');
});
testWithMocks('Always pass parsing org on ios project with flavors', () async {
final FlutterProject project = await someProject();
addIosProjectFile(project.directory, projectFileContent: () {
return projectFileWithBundleId('io.flutter.someProject', qualifier: "'");
});
project.ios.xcodeProject.createSync();
xcodeProjectInterpreter.xcodeProjectInfo = XcodeProjectInfo(<String>[], <String>[], <String>['free', 'paid'], logger);
expect(await project.organizationNames, <String>[]);
});
testWithMocks('fails with no flavor and defined schemes', () async {
final FlutterProject project = await someProject();
project.ios.xcodeProject.createSync();