2024-01-02 11:29:13 +00:00
|
|
|
diff --git a/packages/flutter_tools/lib/src/runner/flutter_command.dart b/packages/flutter_tools/lib/src/runner/flutter_command.dart
|
|
|
|
index b7e624b4e2..edfdde118b 100644
|
|
|
|
--- a/packages/flutter_tools/lib/src/runner/flutter_command.dart
|
|
|
|
+++ b/packages/flutter_tools/lib/src/runner/flutter_command.dart
|
|
|
|
@@ -1554,7 +1554,7 @@ Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
// Populate the cache. We call this before pub get below so that the
|
|
|
|
// sky_engine package is available in the flutter cache for pub to find.
|
|
|
|
- if (shouldUpdateCache) {
|
|
|
|
+ if (false) {
|
|
|
|
// First always update universal artifacts, as some of these (e.g.
|
|
|
|
// ios-deploy on macOS) are required to determine `requiredArtifacts`.
|
|
|
|
final bool offline;
|
2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
|
2023-10-09 19:29:22 +00:00
|
|
|
index 5d6d78639f..90a4dfa555 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
|
|
|
|
+++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
|
2023-10-09 19:29:22 +00:00
|
|
|
@@ -297,7 +297,6 @@ class FlutterCommandRunner extends CommandRunner<void> {
|
2020-11-03 02:18:15 +00:00
|
|
|
globals.flutterUsage.suppressAnalytics = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
- globals.flutterVersion.ensureVersionFile();
|
2023-10-09 19:29:22 +00:00
|
|
|
final bool machineFlag = topLevelResults[FlutterGlobalOptions.kMachineFlag] as bool? ?? false;
|
2021-06-28 23:13:55 +00:00
|
|
|
final bool ci = await globals.botDetector.isRunningOnBot;
|
|
|
|
final bool redirectedCompletion = !globals.stdio.hasTerminal &&
|
2023-10-09 19:29:22 +00:00
|
|
|
@@ -306,11 +305,6 @@ class FlutterCommandRunner extends CommandRunner<void> {
|
|
|
|
final bool versionCheckFlag = topLevelResults[FlutterGlobalOptions.kVersionCheckFlag] as bool? ?? false;
|
|
|
|
final bool explicitVersionCheckPassed = topLevelResults.wasParsed(FlutterGlobalOptions.kVersionCheckFlag) && versionCheckFlag;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
- if (topLevelResults.command?.name != 'upgrade' &&
|
|
|
|
- (explicitVersionCheckPassed || (versionCheckFlag && !isMachine))) {
|
2021-04-05 15:23:46 +00:00
|
|
|
- await globals.flutterVersion.checkFlutterVersionFreshness();
|
|
|
|
- }
|
2023-10-09 19:29:22 +00:00
|
|
|
-
|
2021-04-05 15:23:46 +00:00
|
|
|
// See if the user specified a specific device.
|
2023-10-09 19:29:22 +00:00
|
|
|
final String? specifiedDeviceId = topLevelResults[FlutterGlobalOptions.kDeviceIdOption] as String?;
|
|
|
|
if (specifiedDeviceId != null) {
|