Revert flutter/flutter#19592 (#19861)

It was causing problems rolling Flutter into Fuchsia
This commit is contained in:
Todd Volkert
2018-07-27 08:44:39 -07:00
committed by GitHub
parent 8b05629658
commit 00aac68e2d
575 changed files with 41035 additions and 41036 deletions

View File

@@ -520,7 +520,7 @@ class ArchivePublisher {
jsonData = _addRelease(jsonData);
const JsonEncoder encoder = JsonEncoder.withIndent(' ');
const JsonEncoder encoder = const JsonEncoder.withIndent(' ');
metadataFile.writeAsStringSync(encoder.convert(jsonData));
await _cloudCopy(metadataFile.absolute.path, metadataGsPath);
}

View File

@@ -28,7 +28,7 @@ final String reset = hasColor ? '\x1B[0m' : '';
const String arrow = '⏩';
const String clock = '🕐';
const Map<String, ShardRunner> _kShards = <String, ShardRunner>{
const Map<String, ShardRunner> _kShards = const <String, ShardRunner>{
'analyze': _analyzeRepo,
'tests': _runTests,
'tool_tests': _runToolTests,
@@ -37,8 +37,8 @@ const Map<String, ShardRunner> _kShards = <String, ShardRunner>{
// 'build_and_deploy_gallery': handled by travis_script.sh
};
const Duration _kLongTimeout = Duration(minutes: 45);
const Duration _kShortTimeout = Duration(minutes: 5);
const Duration _kLongTimeout = const Duration(minutes: 45);
const Duration _kShortTimeout = const Duration(minutes: 5);
/// When you call this, you can pass additional arguments to pass custom
/// arguments to flutter test. For example, you might want to call this

View File

@@ -313,7 +313,7 @@ void main() {
new DateTime.now().difference(DateTime.parse(releases[0]['release_date'])),
lessThan(const Duration(minutes: 1)),
);
const JsonEncoder encoder = JsonEncoder.withIndent(' ');
const JsonEncoder encoder = const JsonEncoder.withIndent(' ');
expect(contents, equals(encoder.convert(jsonData)));
});
});