Update dependencies with forced upgrade. (#15344)
* Update dependencies with forced upgrade. Now that https://github.com/flutter/flutter/issues/15261 is fixed, do the update with upgrade. * Update test package use following upgrade * Replace addOption(allowMultiple) with addMultiOption
This commit is contained in:
committed by
GitHub
parent
5d03a59379
commit
ded538a1bb
@@ -40,13 +40,11 @@ class BuildAotCommand extends BuildSubCommand {
|
||||
..addFlag('interpreter')
|
||||
..addFlag('quiet', defaultsTo: false)
|
||||
..addFlag('preview-dart-2', negatable: false, hide: !verboseHelp)
|
||||
..addOption(FlutterOptions.kExtraFrontEndOptions,
|
||||
allowMultiple: true,
|
||||
..addMultiOption(FlutterOptions.kExtraFrontEndOptions,
|
||||
splitCommas: true,
|
||||
hide: true,
|
||||
)
|
||||
..addOption(FlutterOptions.kExtraGenSnapshotOptions,
|
||||
allowMultiple: true,
|
||||
..addMultiOption(FlutterOptions.kExtraGenSnapshotOptions,
|
||||
splitCommas: true,
|
||||
hide: true,
|
||||
)
|
||||
|
||||
@@ -23,18 +23,16 @@ class TestCommand extends FlutterCommand {
|
||||
TestCommand({ bool verboseHelp: false }) {
|
||||
requiresPubspecYaml();
|
||||
usesPubOption();
|
||||
argParser.addOption(
|
||||
argParser.addMultiOption(
|
||||
'name',
|
||||
help: 'A regular expression matching substrings of the names of tests to run.',
|
||||
valueHelp: 'regexp',
|
||||
allowMultiple: true,
|
||||
splitCommas: false,
|
||||
);
|
||||
argParser.addOption(
|
||||
argParser.addMultiOption(
|
||||
'plain-name',
|
||||
help: 'A plain-text substring of the names of tests to run.',
|
||||
valueHelp: 'substring',
|
||||
allowMultiple: true,
|
||||
splitCommas: false,
|
||||
);
|
||||
argParser.addFlag(
|
||||
|
||||
@@ -8,7 +8,8 @@ import 'dart:convert';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:stream_channel/stream_channel.dart';
|
||||
|
||||
import 'package:test/src/backend/test_platform.dart'; // ignore: implementation_imports
|
||||
import 'package:test/src/backend/runtime.dart'; // ignore: implementation_imports
|
||||
import 'package:test/src/backend/suite_platform.dart'; // ignore: implementation_imports
|
||||
import 'package:test/src/runner/plugin/platform.dart'; // ignore: implementation_imports
|
||||
import 'package:test/src/runner/plugin/hack_register_platform.dart' as hack; // ignore: implementation_imports
|
||||
|
||||
@@ -68,7 +69,7 @@ void installHook({
|
||||
if (startPaused || observatoryPort != null)
|
||||
assert(enableObservatory);
|
||||
hack.registerPlatformPlugin(
|
||||
<TestPlatform>[TestPlatform.vm],
|
||||
<Runtime>[Runtime.vm],
|
||||
() => new _FlutterPlatform(
|
||||
shellPath: shellPath,
|
||||
watcher: watcher,
|
||||
@@ -192,7 +193,7 @@ class _FlutterPlatform extends PlatformPlugin {
|
||||
int _testCount = 0;
|
||||
|
||||
@override
|
||||
StreamChannel<dynamic> loadChannel(String testPath, TestPlatform platform) {
|
||||
StreamChannel<dynamic> loadChannel(String testPath, SuitePlatform platform) {
|
||||
if (_testCount > 0) {
|
||||
// Fail if there will be a port conflict.
|
||||
if (explicitObservatoryPort != null)
|
||||
|
||||
Reference in New Issue
Block a user