mirror of
https://github.com/flutter/packages.git
synced 2025-08-24 19:42:17 +08:00
[tool] Update Dart SDK version (#4402)
Since the tool only needs to support back to Flutter 3.3 (the oldest version we still run CI with), this updates the tool to the corresponding minimum Dart version. This allows the use of `super` parameters, so `dart fix --apply` was run to convert them all (and remove all the includes that were only needed for setting default values). Also opportunistically cleans up a bunch of unnecessary, very old `dart:async` includes. (Other than those removals, the changes here are all `dart fix`-generated.)
This commit is contained in:
@ -2,13 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:platform/platform.dart';
|
||||
|
||||
import 'common/core.dart';
|
||||
import 'common/package_looping_command.dart';
|
||||
import 'common/plugin_utils.dart';
|
||||
import 'common/process_runner.dart';
|
||||
import 'common/repository_package.dart';
|
||||
import 'common/xcode.dart';
|
||||
|
||||
@ -16,11 +12,10 @@ import 'common/xcode.dart';
|
||||
class XcodeAnalyzeCommand extends PackageLoopingCommand {
|
||||
/// Creates an instance of the test command.
|
||||
XcodeAnalyzeCommand(
|
||||
Directory packagesDir, {
|
||||
ProcessRunner processRunner = const ProcessRunner(),
|
||||
Platform platform = const LocalPlatform(),
|
||||
}) : _xcode = Xcode(processRunner: processRunner, log: true),
|
||||
super(packagesDir, processRunner: processRunner, platform: platform) {
|
||||
super.packagesDir, {
|
||||
super.processRunner,
|
||||
super.platform,
|
||||
}) : _xcode = Xcode(processRunner: processRunner, log: true) {
|
||||
argParser.addFlag(platformIOS, help: 'Analyze iOS');
|
||||
argParser.addFlag(platformMacOS, help: 'Analyze macOS');
|
||||
argParser.addOption(_minIOSVersionArg,
|
||||
|
Reference in New Issue
Block a user