Revert "Revert "Roll engine to fed2ea458ed49088d33eddabc546ba56d600c717 (includes dart roll) again (#19277)" (#19295)" (#19322)
This reverts commit cc122f1672.
This commit is contained in:
committed by
GitHub
parent
e22f99743b
commit
7ebf2728dc
@@ -101,7 +101,7 @@ class BuildAotCommand extends BuildSubCommand {
|
||||
// Build AOT snapshot.
|
||||
if (platform == TargetPlatform.ios) {
|
||||
// Determine which iOS architectures to build for.
|
||||
final Iterable<IOSArch> buildArchs = argResults['ios-arch'].map(getIOSArchForName);
|
||||
final Iterable<IOSArch> buildArchs = argResults['ios-arch'].map<IOSArch>(getIOSArchForName);
|
||||
final Map<IOSArch, String> iosBuilds = <IOSArch, String>{};
|
||||
for (IOSArch arch in buildArchs)
|
||||
iosBuilds[arch] = fs.path.join(outputPath, getNameForIOSArch(arch));
|
||||
|
||||
@@ -102,7 +102,7 @@ class FlutterManifest {
|
||||
|
||||
/// Properties defining how to expose this Flutter project as a module
|
||||
/// for integration into an unspecified host app.
|
||||
Map<String, dynamic> get moduleDescriptor {
|
||||
YamlMap get moduleDescriptor {
|
||||
return _flutterDescriptor.containsKey('module')
|
||||
? _flutterDescriptor['module'] ?? const <String, dynamic>{}
|
||||
: null;
|
||||
|
||||
@@ -93,7 +93,8 @@ Future<Null> downloadStartupTrace(VMService observatory) async {
|
||||
);
|
||||
|
||||
int extractInstantEventTimestamp(String eventName) {
|
||||
final List<Map<String, dynamic>> events = timeline['traceEvents'];
|
||||
final List<Map<String, dynamic>> events =
|
||||
new List<Map<String, dynamic>>.from(timeline['traceEvents']);
|
||||
final Map<String, dynamic> event = events.firstWhere(
|
||||
(Map<String, dynamic> event) => event['name'] == eventName, orElse: () => null
|
||||
);
|
||||
|
||||
@@ -161,8 +161,10 @@ class VMService {
|
||||
if (expression is! String || expression.isEmpty)
|
||||
throw new rpc.RpcException.invalidParams(
|
||||
'Invalid \'expression\': $expression');
|
||||
final List<String> definitions = params['definitions'].asList;
|
||||
final List<String> typeDefinitions = params['typeDefinitions'].asList;
|
||||
final List<String> definitions =
|
||||
new List<String>.from(params['definitions'].asList);
|
||||
final List<String> typeDefinitions =
|
||||
new List<String>.from(params['typeDefinitions'].asList);
|
||||
final String libraryUri = params['libraryUri'].asString;
|
||||
final String klass = params['klass'].exists ? params['klass'].asString : null;
|
||||
final bool isStatic = params['isStatic'].asBoolOr(false);
|
||||
@@ -350,6 +352,7 @@ class VMService {
|
||||
// If the VM doesn't yet have a view, wait for one to show up.
|
||||
printTrace('Waiting for Flutter view');
|
||||
await new Future<Null>.delayed(new Duration(seconds: attemptSeconds));
|
||||
await getVM();
|
||||
await vm.refreshViews();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user