[flutter_tool] Remove the synchronous -showBuildSettings (#40435)

This commit is contained in:
Zachary Anderson
2019-09-16 07:51:50 -07:00
committed by GitHub
parent ef1269546c
commit 8a33d2446d
18 changed files with 110 additions and 104 deletions

View File

@@ -333,12 +333,7 @@ class FakeXcodeProjectInterpreter implements XcodeProjectInterpreter {
int get minorVersion => 2;
@override
Map<String, String> getBuildSettings(String projectPath, String target) {
return <String, String>{};
}
@override
Future<Map<String, String>> getBuildSettingsAsync(
Future<Map<String, String>> getBuildSettings(
String projectPath,
String target, {
Duration timeout = const Duration(minutes: 1),

View File

@@ -26,7 +26,11 @@ import 'package:process/process.dart';
import 'common.dart';
final Generator kNoColorTerminalPlatform = () => FakePlatform.fromPlatform(const LocalPlatform())..stdoutSupportsAnsi = false;
final Generator kNoColorTerminalPlatform = () {
return FakePlatform.fromPlatform(
const LocalPlatform()
)..stdoutSupportsAnsi = false;
};
class MockApplicationPackageStore extends ApplicationPackageStore {
MockApplicationPackageStore() : super(
@@ -36,7 +40,7 @@ class MockApplicationPackageStore extends ApplicationPackageStore {
versionCode: 1,
launchActivity: 'io.flutter.android.mock.MockActivity',
),
iOS: BuildableIOSApp(MockIosProject())
iOS: BuildableIOSApp(MockIosProject(), MockIosProject.bundleId)
);
}
@@ -513,8 +517,10 @@ class MockPollingDeviceDiscovery extends PollingDeviceDiscovery {
}
class MockIosProject extends Mock implements IosProject {
static const String bundleId = 'com.example.test';
@override
String get productBundleIdentifier => 'com.example.test';
Future<String> get productBundleIdentifier async => bundleId;
@override
String get hostAppBundleName => 'Runner.app';