Unverified Commit 0d79013a authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Move globals.artifacts to globals_null_migrated, update imports (#83137)

parent 10416b30
...@@ -17,7 +17,7 @@ import 'package:flutter_tools/src/build_info.dart'; ...@@ -17,7 +17,7 @@ import 'package:flutter_tools/src/build_info.dart';
import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/context_runner.dart'; import 'package:flutter_tools/src/context_runner.dart';
import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/device.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/project.dart';
import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:flutter_tools/src/reporting/reporting.dart';
import 'package:flutter_tools/src/test/coverage_collector.dart'; import 'package:flutter_tools/src/test/coverage_collector.dart';
......
...@@ -17,7 +17,7 @@ import '../../build_info.dart'; ...@@ -17,7 +17,7 @@ import '../../build_info.dart';
import '../../cache.dart'; import '../../cache.dart';
import '../../dart/language_version.dart'; import '../../dart/language_version.dart';
import '../../dart/package_map.dart'; import '../../dart/package_map.dart';
import '../../globals.dart' as globals; import '../../globals_null_migrated.dart' as globals;
import '../../project.dart'; import '../../project.dart';
import '../build_system.dart'; import '../build_system.dart';
import '../depfile.dart'; import '../depfile.dart';
......
...@@ -22,7 +22,7 @@ import '../build_system/targets/web.dart'; ...@@ -22,7 +22,7 @@ import '../build_system/targets/web.dart';
import '../build_system/targets/windows.dart'; import '../build_system/targets/windows.dart';
import '../cache.dart'; import '../cache.dart';
import '../convert.dart'; import '../convert.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
import '../reporting/reporting.dart'; import '../reporting/reporting.dart';
import '../runner/flutter_command.dart'; import '../runner/flutter_command.dart';
......
...@@ -21,7 +21,7 @@ import '../compile.dart'; ...@@ -21,7 +21,7 @@ import '../compile.dart';
import '../device.dart'; import '../device.dart';
import '../device_port_forwarder.dart'; import '../device_port_forwarder.dart';
import '../fuchsia/fuchsia_device.dart'; import '../fuchsia/fuchsia_device.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../ios/devices.dart'; import '../ios/devices.dart';
import '../ios/simulators.dart'; import '../ios/simulators.dart';
import '../mdns_discovery.dart'; import '../mdns_discovery.dart';
......
...@@ -14,7 +14,7 @@ import '../base/process.dart'; ...@@ -14,7 +14,7 @@ import '../base/process.dart';
import '../base/utils.dart'; import '../base/utils.dart';
import '../build_info.dart'; import '../build_info.dart';
import '../convert.dart'; import '../convert.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../ios/application_package.dart'; import '../ios/application_package.dart';
import '../ios/mac.dart'; import '../ios/mac.dart';
import '../runner/flutter_command.dart'; import '../runner/flutter_command.dart';
......
...@@ -10,7 +10,7 @@ import '../base/common.dart'; ...@@ -10,7 +10,7 @@ import '../base/common.dart';
import '../build_info.dart'; import '../build_info.dart';
import '../build_system/targets/web.dart'; import '../build_system/targets/web.dart';
import '../features.dart'; import '../features.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
import '../runner/flutter_command.dart' import '../runner/flutter_command.dart'
show DevelopmentArtifact, FlutterCommandResult; show DevelopmentArtifact, FlutterCommandResult;
......
...@@ -20,7 +20,7 @@ import '../build_info.dart'; ...@@ -20,7 +20,7 @@ import '../build_info.dart';
import '../dart/package_map.dart'; import '../dart/package_map.dart';
import '../device.dart'; import '../device.dart';
import '../drive/drive_service.dart'; import '../drive/drive_service.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../resident_runner.dart'; import '../resident_runner.dart';
import '../runner/flutter_command.dart' show FlutterCommandResult, FlutterOptions; import '../runner/flutter_command.dart' show FlutterCommandResult, FlutterOptions;
import '../web/web_device.dart'; import '../web/web_device.dart';
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
import '../artifacts.dart'; import '../artifacts.dart';
import '../base/common.dart'; import '../base/common.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../runner/flutter_command.dart'; import '../runner/flutter_command.dart';
class FormatCommand extends FlutterCommand { class FormatCommand extends FlutterCommand {
......
...@@ -16,7 +16,7 @@ import '../build_info.dart'; ...@@ -16,7 +16,7 @@ import '../build_info.dart';
import '../bundle.dart'; import '../bundle.dart';
import '../convert.dart'; import '../convert.dart';
import '../devfs.dart'; import '../devfs.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
import 'fuchsia_pm.dart'; import 'fuchsia_pm.dart';
......
...@@ -10,7 +10,7 @@ import '../artifacts.dart'; ...@@ -10,7 +10,7 @@ import '../artifacts.dart';
import '../base/common.dart'; import '../base/common.dart';
import '../base/logger.dart'; import '../base/logger.dart';
import '../build_info.dart'; import '../build_info.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
/// This is a simple wrapper around the custom kernel compiler from the Fuchsia /// This is a simple wrapper around the custom kernel compiler from the Fuchsia
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
// @dart = 2.8 // @dart = 2.8
import 'android/gradle_utils.dart'; import 'android/gradle_utils.dart';
import 'artifacts.dart';
import 'base/context.dart'; import 'base/context.dart';
import 'build_system/build_system.dart'; import 'build_system/build_system.dart';
import 'device.dart'; import 'device.dart';
...@@ -22,7 +21,6 @@ import 'runner/local_engine.dart'; ...@@ -22,7 +21,6 @@ import 'runner/local_engine.dart';
export 'globals_null_migrated.dart'; export 'globals_null_migrated.dart';
Artifacts get artifacts => context.get<Artifacts>();
BuildSystem get buildSystem => context.get<BuildSystem>(); BuildSystem get buildSystem => context.get<BuildSystem>();
CrashReporter get crashReporter => context.get<CrashReporter>(); CrashReporter get crashReporter => context.get<CrashReporter>();
Doctor get doctor => context.get<Doctor>(); Doctor get doctor => context.get<Doctor>();
......
...@@ -6,6 +6,7 @@ import 'package:process/process.dart'; ...@@ -6,6 +6,7 @@ import 'package:process/process.dart';
import 'android/android_sdk.dart'; import 'android/android_sdk.dart';
import 'android/android_studio.dart'; import 'android/android_studio.dart';
import 'artifacts.dart';
import 'base/bot_detector.dart'; import 'base/bot_detector.dart';
import 'base/config.dart'; import 'base/config.dart';
import 'base/context.dart'; import 'base/context.dart';
...@@ -31,6 +32,7 @@ import 'persistent_tool_state.dart'; ...@@ -31,6 +32,7 @@ import 'persistent_tool_state.dart';
import 'reporting/reporting.dart'; import 'reporting/reporting.dart';
import 'version.dart'; import 'version.dart';
Artifacts? get artifacts => context.get<Artifacts>();
Cache get cache => context.get<Cache>()!; Cache get cache => context.get<Cache>()!;
Config get config => context.get<Config>()!; Config get config => context.get<Config>()!;
HttpClientFactory? get httpClientFactory => context.get<HttpClientFactory>(); HttpClientFactory? get httpClientFactory => context.get<HttpClientFactory>();
......
...@@ -10,7 +10,7 @@ import '../base/context.dart'; ...@@ -10,7 +10,7 @@ import '../base/context.dart';
import '../base/process.dart'; import '../base/process.dart';
import '../base/version.dart'; import '../base/version.dart';
import '../build_info.dart'; import '../build_info.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../macos/xcode.dart'; import '../macos/xcode.dart';
const bool kBitcodeEnabledDefault = false; const bool kBitcodeEnabledDefault = false;
......
...@@ -11,7 +11,7 @@ import '../base/file_system.dart'; ...@@ -11,7 +11,7 @@ import '../base/file_system.dart';
import '../build_info.dart'; import '../build_info.dart';
import '../cache.dart'; import '../cache.dart';
import '../flutter_manifest.dart'; import '../flutter_manifest.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
String flutterMacOSFrameworkDir(BuildMode mode, FileSystem fileSystem, String flutterMacOSFrameworkDir(BuildMode mode, FileSystem fileSystem,
......
...@@ -35,7 +35,7 @@ import '../compile.dart'; ...@@ -35,7 +35,7 @@ import '../compile.dart';
import '../convert.dart'; import '../convert.dart';
import '../dart/package_map.dart'; import '../dart/package_map.dart';
import '../devfs.dart'; import '../devfs.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
import '../vmservice.dart'; import '../vmservice.dart';
import '../web/bootstrap.dart'; import '../web/bootstrap.dart';
......
...@@ -16,7 +16,7 @@ import '../cache.dart'; ...@@ -16,7 +16,7 @@ import '../cache.dart';
import '../cmake.dart'; import '../cmake.dart';
import '../convert.dart'; import '../convert.dart';
import '../flutter_plugins.dart'; import '../flutter_plugins.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../migrations/cmake_custom_command_migration.dart'; import '../migrations/cmake_custom_command_migration.dart';
import '../project.dart'; import '../project.dart';
......
...@@ -11,7 +11,7 @@ import '../base/common.dart'; ...@@ -11,7 +11,7 @@ import '../base/common.dart';
import '../base/file_system.dart'; import '../base/file_system.dart';
import '../base/io.dart'; import '../base/io.dart';
import '../device.dart'; import '../device.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
import '../web/chrome.dart'; import '../web/chrome.dart';
import '../web/memory_fs.dart'; import '../web/memory_fs.dart';
......
...@@ -13,7 +13,7 @@ import '../base/file_system.dart'; ...@@ -13,7 +13,7 @@ import '../base/file_system.dart';
import '../build_info.dart'; import '../build_info.dart';
import '../bundle.dart'; import '../bundle.dart';
import '../compile.dart'; import '../compile.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../project.dart'; import '../project.dart';
/// A request to the [TestCompiler] for recompilation. /// A request to the [TestCompiler] for recompilation.
......
...@@ -16,7 +16,7 @@ import '../cache.dart'; ...@@ -16,7 +16,7 @@ import '../cache.dart';
import '../cmake.dart'; import '../cmake.dart';
import '../convert.dart'; import '../convert.dart';
import '../flutter_plugins.dart'; import '../flutter_plugins.dart';
import '../globals.dart' as globals; import '../globals_null_migrated.dart' as globals;
import '../migrations/cmake_custom_command_migration.dart'; import '../migrations/cmake_custom_command_migration.dart';
import '../project.dart'; import '../project.dart';
import 'install_manifest.dart'; import 'install_manifest.dart';
......
...@@ -18,7 +18,7 @@ import 'package:flutter_tools/src/cache.dart'; ...@@ -18,7 +18,7 @@ import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/commands/analyze.dart'; import 'package:flutter_tools/src/commands/analyze.dart';
import 'package:flutter_tools/src/dart/analysis.dart'; import 'package:flutter_tools/src/dart/analysis.dart';
import 'package:flutter_tools/src/dart/pub.dart'; import 'package:flutter_tools/src/dart/pub.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import 'package:process/process.dart'; import 'package:process/process.dart';
import '../../src/common.dart'; import '../../src/common.dart';
......
...@@ -21,7 +21,7 @@ import 'package:flutter_tools/src/commands/create.dart'; ...@@ -21,7 +21,7 @@ import 'package:flutter_tools/src/commands/create.dart';
import 'package:flutter_tools/src/commands/create_base.dart'; import 'package:flutter_tools/src/commands/create_base.dart';
import 'package:flutter_tools/src/dart/pub.dart'; import 'package:flutter_tools/src/dart/pub.dart';
import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/features.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/project.dart';
import 'package:flutter_tools/src/version.dart'; import 'package:flutter_tools/src/version.dart';
import 'package:process/process.dart'; import 'package:process/process.dart';
......
...@@ -13,7 +13,7 @@ import 'package:flutter_tools/src/base/logger.dart'; ...@@ -13,7 +13,7 @@ import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/platform.dart';
import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_info.dart';
import 'package:flutter_tools/src/build_system/build_system.dart'; import 'package:flutter_tools/src/build_system/build_system.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import '../../src/common.dart'; import '../../src/common.dart';
......
...@@ -10,7 +10,7 @@ import 'package:flutter_tools/src/base/platform.dart'; ...@@ -10,7 +10,7 @@ import 'package:flutter_tools/src/base/platform.dart';
import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_info.dart';
import 'package:flutter_tools/src/build_system/build_system.dart'; import 'package:flutter_tools/src/build_system/build_system.dart';
import 'package:flutter_tools/src/build_system/exceptions.dart'; import 'package:flutter_tools/src/build_system/exceptions.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import '../../src/common.dart'; import '../../src/common.dart';
import '../../src/fake_process_manager.dart'; import '../../src/fake_process_manager.dart';
......
...@@ -25,7 +25,7 @@ import 'package:flutter_tools/src/devfs.dart'; ...@@ -25,7 +25,7 @@ import 'package:flutter_tools/src/devfs.dart';
import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/device.dart';
import 'package:flutter_tools/src/device_port_forwarder.dart'; import 'package:flutter_tools/src/device_port_forwarder.dart';
import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/features.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:flutter_tools/src/reporting/reporting.dart';
import 'package:flutter_tools/src/resident_devtools_handler.dart'; import 'package:flutter_tools/src/resident_devtools_handler.dart';
import 'package:flutter_tools/src/resident_runner.dart'; import 'package:flutter_tools/src/resident_runner.dart';
......
...@@ -13,7 +13,7 @@ import 'package:flutter_tools/src/build_info.dart'; ...@@ -13,7 +13,7 @@ import 'package:flutter_tools/src/build_info.dart';
import 'package:flutter_tools/src/build_system/targets/web.dart'; import 'package:flutter_tools/src/build_system/targets/web.dart';
import 'package:flutter_tools/src/compile.dart'; import 'package:flutter_tools/src/compile.dart';
import 'package:flutter_tools/src/convert.dart'; import 'package:flutter_tools/src/convert.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import 'package:flutter_tools/src/isolated/devfs_web.dart'; import 'package:flutter_tools/src/isolated/devfs_web.dart';
import 'package:flutter_tools/src/web/compile.dart'; import 'package:flutter_tools/src/web/compile.dart';
import 'package:package_config/package_config.dart'; import 'package:package_config/package_config.dart';
......
...@@ -14,7 +14,7 @@ import 'package:flutter_tools/src/base/io.dart'; ...@@ -14,7 +14,7 @@ import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/commands/create.dart'; import 'package:flutter_tools/src/commands/create.dart';
import 'package:flutter_tools/src/dart/pub.dart'; import 'package:flutter_tools/src/dart/pub.dart';
import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/globals_null_migrated.dart' as globals;
import '../src/common.dart'; import '../src/common.dart';
import '../src/context.dart'; import '../src/context.dart';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment