Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
eb9a2f0c
Unverified
Commit
eb9a2f0c
authored
Apr 07, 2021
by
Jenn Magder
Committed by
GitHub
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move cache from globals to globals_null_migrated (#79900)
parent
c5718049
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
28 additions
and
20 deletions
+28
-20
fuchsia_attach.dart
packages/flutter_tools/bin/fuchsia_attach.dart
+1
-1
application_package.dart
...es/flutter_tools/lib/src/android/application_package.dart
+1
-1
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+1
-1
build_aar.dart
packages/flutter_tools/lib/src/commands/build_aar.dart
+1
-1
build_apk.dart
packages/flutter_tools/lib/src/commands/build_apk.dart
+1
-1
build_appbundle.dart
packages/flutter_tools/lib/src/commands/build_appbundle.dart
+1
-1
flutter_application_package.dart
...es/flutter_tools/lib/src/flutter_application_package.dart
+1
-1
globals.dart
packages/flutter_tools/lib/src/globals.dart
+0
-2
globals_null_migrated.dart
packages/flutter_tools/lib/src/globals_null_migrated.dart
+2
-0
application_package.dart
packages/flutter_tools/lib/src/ios/application_package.dart
+1
-1
font_config_manager.dart
packages/flutter_tools/lib/src/test/font_config_manager.dart
+1
-1
integration_test_device.dart
...s/flutter_tools/lib/src/test/integration_test_device.dart
+1
-1
version.dart
packages/flutter_tools/lib/src/version.dart
+1
-1
analyze_once_test.dart
...ools/test/commands.shard/permeable/analyze_once_test.dart
+11
-3
web_test.dart
...ols/test/general.shard/build_system/targets/web_test.dart
+1
-1
channel_test.dart
packages/flutter_tools/test/general.shard/channel_test.dart
+1
-1
custom_device_test.dart
...test/general.shard/custom_devices/custom_device_test.dart
+1
-1
flutter_command_test.dart
...tools/test/general.shard/runner/flutter_command_test.dart
+1
-1
No files found.
packages/flutter_tools/bin/fuchsia_attach.dart
View file @
eb9a2f0c
...
...
@@ -19,7 +19,7 @@ import 'package:flutter_tools/src/features.dart';
import
'package:flutter_tools/src/fuchsia/fuchsia_device.dart'
;
import
'package:flutter_tools/src/fuchsia/fuchsia_sdk.dart'
;
import
'package:flutter_tools/src/fuchsia/fuchsia_workflow.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/runner/flutter_command.dart'
;
...
...
packages/flutter_tools/lib/src/android/application_package.dart
View file @
eb9a2f0c
...
...
@@ -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'
;
...
...
packages/flutter_tools/lib/src/artifacts.dart
View file @
eb9a2f0c
...
...
@@ -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.
...
...
packages/flutter_tools/lib/src/commands/build_aar.dart
View file @
eb9a2f0c
...
...
@@ -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
;
...
...
packages/flutter_tools/lib/src/commands/build_apk.dart
View file @
eb9a2f0c
...
...
@@ -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
;
...
...
packages/flutter_tools/lib/src/commands/build_appbundle.dart
View file @
eb9a2f0c
...
...
@@ -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
;
...
...
packages/flutter_tools/lib/src/flutter_application_package.dart
View file @
eb9a2f0c
...
...
@@ -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'
;
...
...
packages/flutter_tools/lib/src/globals.dart
View file @
eb9a2f0c
...
...
@@ -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
;
...
...
packages/flutter_tools/lib/src/globals_null_migrated.dart
View file @
eb9a2f0c
...
...
@@ -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
>()!;
...
...
packages/flutter_tools/lib/src/ios/application_package.dart
View file @
eb9a2f0c
...
...
@@ -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'
;
...
...
packages/flutter_tools/lib/src/test/font_config_manager.dart
View file @
eb9a2f0c
...
...
@@ -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
{
...
...
packages/flutter_tools/lib/src/test/integration_test_device.dart
View file @
eb9a2f0c
...
...
@@ -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'
;
...
...
packages/flutter_tools/lib/src/version.dart
View file @
eb9a2f0c
...
...
@@ -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'
;
...
...
packages/flutter_tools/test/commands.shard/permeable/analyze_once_test.dart
View file @
eb9a2f0c
...
...
@@ -5,8 +5,10 @@
// @dart = 2.8
import
'package:flutter_tools/src/base/error_handling_io.dart'
;
import
'package:flutter_tools/src/base/os.dart'
;
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/flutter_cache.dart'
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
import
'package:flutter_tools/src/artifacts.dart'
;
import
'package:flutter_tools/src/base/common.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
...
...
@@ -114,11 +116,17 @@ void main() {
fileSystem
=
globals
.
localFileSystem
;
logger
=
BufferLogger
.
test
();
analyzerSeparator
=
platform
.
isWindows
?
'-'
:
'•'
;
final
OperatingSystemUtils
operatingSystemUtils
=
FakeOperatingSystemUtils
();
artifacts
=
CachedArtifacts
(
cache:
globals
.
cache
,
cache:
FlutterCache
(
fileSystem:
fileSystem
,
logger:
logger
,
platform:
platform
,
osUtils:
operatingSystemUtils
,
),
fileSystem:
fileSystem
,
platform:
platform
,
operatingSystemUtils:
FakeOperatingSystemUtils
()
,
operatingSystemUtils:
operatingSystemUtils
,
);
Cache
.
flutterRoot
=
Cache
.
defaultFlutterRoot
(
fileSystem:
fileSystem
,
...
...
packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart
View file @
eb9a2f0c
...
...
@@ -13,7 +13,7 @@ import 'package:flutter_tools/src/build_system/build_system.dart';
import
'package:flutter_tools/src/build_system/depfile.dart'
;
import
'package:flutter_tools/src/build_system/targets/common.dart'
;
import
'package:flutter_tools/src/build_system/targets/web.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/context.dart'
;
...
...
packages/flutter_tools/test/general.shard/channel_test.dart
View file @
eb9a2f0c
...
...
@@ -8,7 +8,7 @@ import 'package:args/command_runner.dart';
import
'package:file/memory.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/cache.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/commands/channel.dart'
;
import
'package:flutter_tools/src/version.dart'
;
...
...
packages/flutter_tools/test/general.shard/custom_devices/custom_device_test.dart
View file @
eb9a2f0c
...
...
@@ -16,7 +16,7 @@ import 'package:flutter_tools/src/custom_devices/custom_device_config.dart';
import
'package:flutter_tools/src/custom_devices/custom_devices_config.dart'
;
import
'package:flutter_tools/src/device.dart'
;
import
'package:flutter_tools/src/linux/application_package.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/globals
_null_migrated
.dart'
as
globals
;
import
'package:file/memory.dart'
;
import
'package:file/file.dart'
;
...
...
packages/flutter_tools/test/general.shard/runner/flutter_command_test.dart
View file @
eb9a2f0c
...
...
@@ -19,7 +19,7 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/dart/pub.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/runner/flutter_command.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/globals
_null_migrated
.dart'
as
globals
;
import
'package:mockito/mockito.dart'
;
import
'../../src/common.dart'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment