forked from firka/flutter
Move cache from globals to globals_null_migrated (#79900)
This commit is contained in:
@@ -18,7 +18,7 @@ import '../base/logger.dart';
|
||||
import '../base/process.dart';
|
||||
import '../base/user_messages.dart';
|
||||
import '../build_info.dart';
|
||||
import '../globals.dart' as globals;
|
||||
import '../globals_null_migrated.dart' as globals;
|
||||
import '../project.dart';
|
||||
import 'android_sdk.dart';
|
||||
import 'gradle.dart';
|
||||
|
||||
@@ -14,7 +14,7 @@ import 'base/platform.dart';
|
||||
import 'base/utils.dart';
|
||||
import 'build_info.dart';
|
||||
import 'cache.dart';
|
||||
import 'globals.dart' as globals;
|
||||
import 'globals_null_migrated.dart' as globals;
|
||||
|
||||
enum Artifact {
|
||||
/// The tool which compiles a dart kernel file into native code.
|
||||
|
||||
@@ -12,7 +12,7 @@ import '../base/common.dart';
|
||||
import '../base/os.dart';
|
||||
import '../build_info.dart';
|
||||
import '../cache.dart';
|
||||
import '../globals.dart' as globals;
|
||||
import '../globals_null_migrated.dart' as globals;
|
||||
import '../project.dart';
|
||||
import '../reporting/reporting.dart';
|
||||
import '../runner/flutter_command.dart' show FlutterCommandResult;
|
||||
|
||||
@@ -9,7 +9,7 @@ import '../android/build_validation.dart';
|
||||
import '../android/gradle_utils.dart';
|
||||
import '../build_info.dart';
|
||||
import '../cache.dart';
|
||||
import '../globals.dart' as globals;
|
||||
import '../globals_null_migrated.dart' as globals;
|
||||
import '../project.dart';
|
||||
import '../reporting/reporting.dart';
|
||||
import '../runner/flutter_command.dart' show FlutterCommandResult;
|
||||
|
||||
@@ -12,7 +12,7 @@ import '../base/deferred_component.dart';
|
||||
import '../base/file_system.dart';
|
||||
import '../build_info.dart';
|
||||
import '../cache.dart';
|
||||
import '../globals.dart' as globals;
|
||||
import '../globals_null_migrated.dart' as globals;
|
||||
import '../project.dart';
|
||||
import '../reporting/reporting.dart';
|
||||
import '../runner/flutter_command.dart' show FlutterCommandResult;
|
||||
|
||||
@@ -16,7 +16,7 @@ import 'base/process.dart';
|
||||
import 'base/user_messages.dart';
|
||||
import 'build_info.dart';
|
||||
import 'fuchsia/application_package.dart';
|
||||
import 'globals.dart' as globals;
|
||||
import 'globals_null_migrated.dart' as globals;
|
||||
import 'ios/application_package.dart';
|
||||
import 'linux/application_package.dart';
|
||||
import 'macos/application_package.dart';
|
||||
|
||||
@@ -11,7 +11,6 @@ import 'base/context.dart';
|
||||
import 'base/io.dart';
|
||||
import 'base/net.dart';
|
||||
import 'build_system/build_system.dart';
|
||||
import 'cache.dart';
|
||||
import 'device.dart';
|
||||
import 'doctor.dart';
|
||||
import 'fuchsia/fuchsia_sdk.dart';
|
||||
@@ -32,7 +31,6 @@ export 'globals_null_migrated.dart';
|
||||
|
||||
Artifacts get artifacts => context.get<Artifacts>();
|
||||
BuildSystem get buildSystem => context.get<BuildSystem>();
|
||||
Cache get cache => context.get<Cache>();
|
||||
CrashReporter get crashReporter => context.get<CrashReporter>();
|
||||
Doctor get doctor => context.get<Doctor>();
|
||||
PersistentToolState get persistentToolState => PersistentToolState.instance;
|
||||
|
||||
@@ -21,8 +21,10 @@ import 'base/template.dart';
|
||||
import 'base/terminal.dart';
|
||||
import 'base/time.dart';
|
||||
import 'base/user_messages.dart';
|
||||
import 'cache.dart';
|
||||
import 'ios/plist_parser.dart';
|
||||
|
||||
Cache get cache => context.get<Cache>()!;
|
||||
Config get config => context.get<Config>()!;
|
||||
HttpClientFactory get httpClientFactory => context.get<HttpClientFactory>()!;
|
||||
Logger get logger => context.get<Logger>()!;
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:meta/meta.dart';
|
||||
import '../application_package.dart';
|
||||
import '../base/file_system.dart';
|
||||
import '../build_info.dart';
|
||||
import '../globals.dart' as globals;
|
||||
import '../globals_null_migrated.dart' as globals;
|
||||
import '../project.dart';
|
||||
import 'plist_parser.dart';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import '../base/file_system.dart';
|
||||
import '../globals.dart' as globals;
|
||||
import '../globals_null_migrated.dart' as globals;
|
||||
|
||||
/// Manages a Font configuration that can be shared across multiple tests.
|
||||
class FontConfigManager {
|
||||
|
||||
@@ -14,7 +14,7 @@ import '../application_package.dart';
|
||||
import '../base/common.dart';
|
||||
import '../build_info.dart';
|
||||
import '../device.dart';
|
||||
import '../globals.dart' as globals;
|
||||
import '../globals_null_migrated.dart' as globals;
|
||||
import '../vmservice.dart';
|
||||
import 'test_device.dart';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import 'base/process.dart';
|
||||
import 'base/time.dart';
|
||||
import 'cache.dart';
|
||||
import 'convert.dart';
|
||||
import 'globals.dart' as globals;
|
||||
import 'globals_null_migrated.dart' as globals;
|
||||
|
||||
/// The flutter GitHub repository.
|
||||
String get _flutterGit => globals.platform.environment['FLUTTER_GIT_URL'] ?? 'https://github.com/flutter/flutter.git';
|
||||
|
||||
Reference in New Issue
Block a user