Remove Runner target check, prefer schemes (#56620)

This commit is contained in:
Jenn Magder
2020-05-11 11:56:44 -07:00
committed by GitHub
parent 0177d4293c
commit 9c87b32477
28 changed files with 475 additions and 160 deletions

View File

@@ -397,8 +397,8 @@ class FakeXcodeProjectInterpreter implements XcodeProjectInterpreter {
@override
Future<Map<String, String>> getBuildSettings(
String projectPath,
String target, {
String projectPath, {
String scheme,
Duration timeout = const Duration(minutes: 1),
}) async {
return <String, String>{};

View File

@@ -54,9 +54,10 @@ class MockApplicationPackageFactory extends Mock implements ApplicationPackageFa
@override
Future<ApplicationPackage> getPackageForPlatform(
TargetPlatform platform, {
BuildInfo buildInfo,
File applicationBinary,
}) async {
return _store.getPackageForPlatform(platform);
return _store.getPackageForPlatform(platform, buildInfo);
}
}
@@ -531,10 +532,10 @@ class MockIosProject extends Mock implements IosProject {
static const String appBundleName = 'My Super Awesome App.app';
@override
Future<String> get productBundleIdentifier async => bundleId;
Future<String> productBundleIdentifier(BuildInfo buildInfo) async => bundleId;
@override
Future<String> get hostAppBundleName async => appBundleName;
Future<String> hostAppBundleName(BuildInfo buildInfo) async => appBundleName;
}
class MockAndroidDevice extends Mock implements AndroidDevice {