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
b30d97a6
Unverified
Commit
b30d97a6
authored
Apr 23, 2021
by
Jonah Williams
Committed by
GitHub
Apr 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] split host artifacts out of Artifacts (#80876)
parent
0f899f2b
Changes
37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
454 additions
and
321 deletions
+454
-321
executable.dart
packages/flutter_tools/lib/executable.dart
+1
-1
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+268
-175
source.dart
packages/flutter_tools/lib/src/build_system/source.dart
+46
-0
android.dart
...s/flutter_tools/lib/src/build_system/targets/android.dart
+1
-1
common.dart
...es/flutter_tools/lib/src/build_system/targets/common.dart
+3
-3
icon_tree_shaker.dart
..._tools/lib/src/build_system/targets/icon_tree_shaker.dart
+1
-1
ios.dart
packages/flutter_tools/lib/src/build_system/targets/ios.dart
+2
-2
web.dart
packages/flutter_tools/lib/src/build_system/targets/web.dart
+7
-7
analyze_base.dart
packages/flutter_tools/lib/src/commands/analyze_base.dart
+1
-1
drive.dart
packages/flutter_tools/lib/src/commands/drive.dart
+1
-1
format.dart
packages/flutter_tools/lib/src/commands/format.dart
+2
-2
compile.dart
packages/flutter_tools/lib/src/compile.dart
+2
-2
context_runner.dart
packages/flutter_tools/lib/src/context_runner.dart
+4
-6
fuchsia_kernel_compiler.dart
...lutter_tools/lib/src/fuchsia/fuchsia_kernel_compiler.dart
+1
-1
ios_deploy.dart
packages/flutter_tools/lib/src/ios/ios_deploy.dart
+1
-2
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+2
-2
devfs_web.dart
packages/flutter_tools/lib/src/isolated/devfs_web.dart
+6
-6
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+7
-7
flutter_web_platform.dart
...ages/flutter_tools/lib/src/test/flutter_web_platform.dart
+4
-4
web_test_compiler.dart
packages/flutter_tools/lib/src/test/web_test_compiler.dart
+7
-8
compile.dart
packages/flutter_tools/lib/src/web/compile.dart
+20
-20
analyze_continuously_test.dart
...st/commands.shard/hermetic/analyze_continuously_test.dart
+9
-9
create_test.dart
...tter_tools/test/commands.shard/permeable/create_test.dart
+5
-5
artifacts_test.dart
...ages/flutter_tools/test/general.shard/artifacts_test.dart
+11
-11
common_test.dart
.../test/general.shard/build_system/targets/common_test.dart
+7
-7
icon_tree_shaker_test.dart
...ral.shard/build_system/targets/icon_tree_shaker_test.dart
+1
-1
compile_batch_test.dart
.../flutter_tools/test/general.shard/compile_batch_test.dart
+7
-7
compile_incremental_test.dart
...er_tools/test/general.shard/compile_incremental_test.dart
+1
-1
ios_deploy_test.dart
...flutter_tools/test/general.shard/ios/ios_deploy_test.dart
+1
-2
ios_device_install_test.dart
...tools/test/general.shard/ios/ios_device_install_test.dart
+1
-1
ios_device_logger_test.dart
..._tools/test/general.shard/ios/ios_device_logger_test.dart
+1
-2
ios_device_start_nonprebuilt_test.dart
.../general.shard/ios/ios_device_start_nonprebuilt_test.dart
+1
-1
ios_device_start_prebuilt_test.dart
...est/general.shard/ios/ios_device_start_prebuilt_test.dart
+4
-4
mac_test.dart
packages/flutter_tools/test/general.shard/ios/mac_test.dart
+3
-3
resident_runner_test.dart
...lutter_tools/test/general.shard/resident_runner_test.dart
+6
-6
devfs_web_test.dart
.../flutter_tools/test/general.shard/web/devfs_web_test.dart
+8
-8
generated_plugin_registrant_test.dart
...t/integration.shard/generated_plugin_registrant_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/executable.dart
View file @
b30d97a6
...
@@ -107,7 +107,7 @@ Future<void> main(List<String> args) async {
...
@@ -107,7 +107,7 @@ Future<void> main(List<String> args) async {
// devtools source code.
// devtools source code.
DevtoolsLauncher:
()
=>
DevtoolsServerLauncher
(
DevtoolsLauncher:
()
=>
DevtoolsServerLauncher
(
processManager:
globals
.
processManager
,
processManager:
globals
.
processManager
,
pubExecutable:
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
pubExecutable
)
,
pubExecutable:
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
pubExecutable
).
path
,
logger:
globals
.
logger
,
logger:
globals
.
logger
,
platform:
globals
.
platform
,
platform:
globals
.
platform
,
persistentToolState:
globals
.
persistentToolState
,
persistentToolState:
globals
.
persistentToolState
,
...
...
packages/flutter_tools/lib/src/artifacts.dart
View file @
b30d97a6
This diff is collapsed.
Click to expand it.
packages/flutter_tools/lib/src/build_system/source.dart
View file @
b30d97a6
...
@@ -193,6 +193,34 @@ class SourceVisitor implements ResolvedFiles {
...
@@ -193,6 +193,34 @@ class SourceVisitor implements ResolvedFiles {
}
}
sources
.
add
(
environment
.
fileSystem
.
file
(
path
));
sources
.
add
(
environment
.
fileSystem
.
file
(
path
));
}
}
/// Visit a [Source] which is defined by an [HostArtifact] from the flutter cache.
///
/// If the [Artifact] points to a directory then all child files are included.
/// To increase the performance of builds that use a known revision of Flutter,
/// these are updated to point towards the engine.version file instead of
/// the artifact itself.
void
visitHostArtifact
(
HostArtifact
artifact
)
{
// This is not a local engine.
if
(
environment
.
engineVersion
!=
null
)
{
sources
.
add
(
environment
.
flutterRootDir
.
childDirectory
(
'bin'
)
.
childDirectory
(
'internal'
)
.
childFile
(
'engine.version'
),
);
return
;
}
final
FileSystemEntity
entity
=
environment
.
artifacts
.
getHostArtifact
(
artifact
);
if
(
entity
is
Directory
)
{
sources
.
addAll
(<
File
>[
for
(
FileSystemEntity
entity
in
entity
.
listSync
(
recursive:
true
))
if
(
entity
is
File
)
entity
,
]);
return
;
}
sources
.
add
(
entity
as
File
);
}
}
}
/// A description of an input or output of a [Target].
/// A description of an input or output of a [Target].
...
@@ -200,11 +228,17 @@ abstract class Source {
...
@@ -200,11 +228,17 @@ abstract class Source {
/// This source is a file URL which contains some references to magic
/// This source is a file URL which contains some references to magic
/// environment variables.
/// environment variables.
const
factory
Source
.
pattern
(
String
pattern
,
{
bool
optional
})
=
_PatternSource
;
const
factory
Source
.
pattern
(
String
pattern
,
{
bool
optional
})
=
_PatternSource
;
/// The source is provided by an [Artifact].
/// The source is provided by an [Artifact].
///
///
/// If [artifact] points to a directory then all child files are included.
/// If [artifact] points to a directory then all child files are included.
const
factory
Source
.
artifact
(
Artifact
artifact
,
{
TargetPlatform
platform
,
BuildMode
mode
})
=
_ArtifactSource
;
const
factory
Source
.
artifact
(
Artifact
artifact
,
{
TargetPlatform
platform
,
BuildMode
mode
})
=
_ArtifactSource
;
/// The source is provided by an [HostArtifact].
///
/// If [artifact] points to a directory then all child files are included.
const
factory
Source
.
hostArtifact
(
HostArtifact
artifact
)
=
_HostArtifactSource
;
/// Visit the particular source type.
/// Visit the particular source type.
void
accept
(
SourceVisitor
visitor
);
void
accept
(
SourceVisitor
visitor
);
...
@@ -244,3 +278,15 @@ class _ArtifactSource implements Source {
...
@@ -244,3 +278,15 @@ class _ArtifactSource implements Source {
@override
@override
bool
get
implicit
=>
false
;
bool
get
implicit
=>
false
;
}
}
class
_HostArtifactSource
implements
Source
{
const
_HostArtifactSource
(
this
.
artifact
);
final
HostArtifact
artifact
;
@override
void
accept
(
SourceVisitor
visitor
)
=>
visitor
.
visitHostArtifact
(
artifact
);
@override
bool
get
implicit
=>
false
;
}
packages/flutter_tools/lib/src/build_system/targets/android.dart
View file @
b30d97a6
...
@@ -181,7 +181,7 @@ class AndroidAot extends AotElfBase {
...
@@ -181,7 +181,7 @@ class AndroidAot extends AotElfBase {
List
<
Source
>
get
inputs
=>
<
Source
>[
List
<
Source
>
get
inputs
=>
<
Source
>[
const
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/android.dart'
),
const
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/android.dart'
),
const
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
const
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
const
Source
.
artifact
(
Artifact
.
engineDartBinary
),
const
Source
.
hostArtifact
(
Host
Artifact
.
engineDartBinary
),
const
Source
.
artifact
(
Artifact
.
skyEnginePath
),
const
Source
.
artifact
(
Artifact
.
skyEnginePath
),
Source
.
artifact
(
Artifact
.
genSnapshot
,
Source
.
artifact
(
Artifact
.
genSnapshot
,
mode:
buildMode
,
mode:
buildMode
,
...
...
packages/flutter_tools/lib/src/build_system/targets/common.dart
View file @
b30d97a6
...
@@ -194,7 +194,7 @@ class KernelSnapshot extends Target {
...
@@ -194,7 +194,7 @@ class KernelSnapshot extends Target {
Source
.
pattern
(
'{PROJECT_DIR}/.dart_tool/package_config_subset'
),
Source
.
pattern
(
'{PROJECT_DIR}/.dart_tool/package_config_subset'
),
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/common.dart'
),
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/common.dart'
),
Source
.
artifact
(
Artifact
.
platformKernelDill
),
Source
.
artifact
(
Artifact
.
platformKernelDill
),
Source
.
artifact
(
Artifact
.
engineDartBinary
),
Source
.
hostArtifact
(
Host
Artifact
.
engineDartBinary
),
Source
.
artifact
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
Source
.
artifact
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
];
];
...
@@ -362,7 +362,7 @@ class AotElfProfile extends AotElfBase {
...
@@ -362,7 +362,7 @@ class AotElfProfile extends AotElfBase {
List
<
Source
>
get
inputs
=>
<
Source
>[
List
<
Source
>
get
inputs
=>
<
Source
>[
const
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/common.dart'
),
const
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/common.dart'
),
const
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
const
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
const
Source
.
artifact
(
Artifact
.
engineDartBinary
),
const
Source
.
hostArtifact
(
Host
Artifact
.
engineDartBinary
),
const
Source
.
artifact
(
Artifact
.
skyEnginePath
),
const
Source
.
artifact
(
Artifact
.
skyEnginePath
),
Source
.
artifact
(
Artifact
.
genSnapshot
,
Source
.
artifact
(
Artifact
.
genSnapshot
,
platform:
targetPlatform
,
platform:
targetPlatform
,
...
@@ -394,7 +394,7 @@ class AotElfRelease extends AotElfBase {
...
@@ -394,7 +394,7 @@ class AotElfRelease extends AotElfBase {
List
<
Source
>
get
inputs
=>
<
Source
>[
List
<
Source
>
get
inputs
=>
<
Source
>[
const
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/common.dart'
),
const
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/common.dart'
),
const
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
const
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
const
Source
.
artifact
(
Artifact
.
engineDartBinary
),
const
Source
.
hostArtifact
(
Host
Artifact
.
engineDartBinary
),
const
Source
.
artifact
(
Artifact
.
skyEnginePath
),
const
Source
.
artifact
(
Artifact
.
skyEnginePath
),
Source
.
artifact
(
Artifact
.
genSnapshot
,
Source
.
artifact
(
Artifact
.
genSnapshot
,
platform:
targetPlatform
,
platform:
targetPlatform
,
...
...
packages/flutter_tools/lib/src/build_system/targets/icon_tree_shaker.dart
View file @
b30d97a6
...
@@ -113,7 +113,7 @@ class IconTreeShaker {
...
@@ -113,7 +113,7 @@ class IconTreeShaker {
_artifacts
.
getArtifactPath
(
Artifact
.
constFinder
),
_artifacts
.
getArtifactPath
(
Artifact
.
constFinder
),
);
);
final
File
dart
=
_fs
.
file
(
final
File
dart
=
_fs
.
file
(
_artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
),
_artifacts
.
get
HostArtifact
(
Host
Artifact
.
engineDartBinary
),
);
);
final
Map
<
String
,
List
<
int
>>
iconData
=
await
_findConstants
(
final
Map
<
String
,
List
<
int
>>
iconData
=
await
_findConstants
(
...
...
packages/flutter_tools/lib/src/build_system/targets/ios.dart
View file @
b30d97a6
...
@@ -139,7 +139,7 @@ class AotAssemblyRelease extends AotAssemblyBase {
...
@@ -139,7 +139,7 @@ class AotAssemblyRelease extends AotAssemblyBase {
List
<
Source
>
get
inputs
=>
const
<
Source
>[
List
<
Source
>
get
inputs
=>
const
<
Source
>[
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/ios.dart'
),
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/ios.dart'
),
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
artifact
(
Artifact
.
engineDartBinary
),
Source
.
hostArtifact
(
Host
Artifact
.
engineDartBinary
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
// TODO(jonahwilliams): cannot reference gen_snapshot with artifacts since
// TODO(jonahwilliams): cannot reference gen_snapshot with artifacts since
// it resolves to a file (ios/gen_snapshot) that never exists. This was
// it resolves to a file (ios/gen_snapshot) that never exists. This was
...
@@ -174,7 +174,7 @@ class AotAssemblyProfile extends AotAssemblyBase {
...
@@ -174,7 +174,7 @@ class AotAssemblyProfile extends AotAssemblyBase {
List
<
Source
>
get
inputs
=>
const
<
Source
>[
List
<
Source
>
get
inputs
=>
const
<
Source
>[
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/ios.dart'
),
Source
.
pattern
(
'{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/ios.dart'
),
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
artifact
(
Artifact
.
engineDartBinary
),
Source
.
hostArtifact
(
Host
Artifact
.
engineDartBinary
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
// TODO(jonahwilliams): cannot reference gen_snapshot with artifacts since
// TODO(jonahwilliams): cannot reference gen_snapshot with artifacts since
// it resolves to a file (ios/gen_snapshot) that never exists. This was
// it resolves to a file (ios/gen_snapshot) that never exists. This was
...
...
packages/flutter_tools/lib/src/build_system/targets/web.dart
View file @
b30d97a6
...
@@ -178,9 +178,9 @@ class Dart2JSTarget extends Target {
...
@@ -178,9 +178,9 @@ class Dart2JSTarget extends Target {
@override
@override
List
<
Source
>
get
inputs
=>
const
<
Source
>[
List
<
Source
>
get
inputs
=>
const
<
Source
>[
Source
.
artifact
(
Artifact
.
flutterWebSdk
),
Source
.
hostArtifact
(
Host
Artifact
.
flutterWebSdk
),
Source
.
artifact
(
Artifact
.
dart2jsSnapshot
),
Source
.
hostArtifact
(
Host
Artifact
.
dart2jsSnapshot
),
Source
.
artifact
(
Artifact
.
engineDartBinary
),
Source
.
hostArtifact
(
Host
Artifact
.
engineDartBinary
),
Source
.
pattern
(
'{BUILD_DIR}/main.dart'
),
Source
.
pattern
(
'{BUILD_DIR}/main.dart'
),
Source
.
pattern
(
'{PROJECT_DIR}/.dart_tool/package_config_subset'
),
Source
.
pattern
(
'{PROJECT_DIR}/.dart_tool/package_config_subset'
),
];
];
...
@@ -198,12 +198,12 @@ class Dart2JSTarget extends Target {
...
@@ -198,12 +198,12 @@ class Dart2JSTarget extends Target {
final
BuildMode
buildMode
=
getBuildModeForName
(
environment
.
defines
[
kBuildMode
]);
final
BuildMode
buildMode
=
getBuildModeForName
(
environment
.
defines
[
kBuildMode
]);
final
bool
sourceMapsEnabled
=
environment
.
defines
[
kSourceMapsEnabled
]
==
'true'
;
final
bool
sourceMapsEnabled
=
environment
.
defines
[
kSourceMapsEnabled
]
==
'true'
;
final
bool
nativeNullAssertions
=
environment
.
defines
[
kNativeNullAssertions
]
==
'true'
;
final
bool
nativeNullAssertions
=
environment
.
defines
[
kNativeNullAssertions
]
==
'true'
;
final
String
librariesSpec
=
(
globals
.
artifacts
.
getHostArtifact
(
HostArtifact
.
flutterWebSdk
)
as
Directory
).
childFile
(
'libraries.json'
).
path
;
final
List
<
String
>
sharedCommandOptions
=
<
String
>[
final
List
<
String
>
sharedCommandOptions
=
<
String
>[
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
dart2jsSnapshot
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
dart2jsSnapshot
).
path
,
'--libraries-spec=
$
{globals.fs.path.join(globals.artifacts.getArtifactPath(Artifact.flutterWebSdk), 'libraries.json')}
'
,
'--libraries-spec=
$
librariesSpec
'
,
...?
decodeCommaSeparated
(
environment
.
defines
,
kExtraFrontEndOptions
),
...?
decodeCommaSeparated
(
environment
.
defines
,
kExtraFrontEndOptions
),
if
(
nativeNullAssertions
)
if
(
nativeNullAssertions
)
'--native-null-assertions'
,
'--native-null-assertions'
,
...
...
packages/flutter_tools/lib/src/commands/analyze_base.dart
View file @
b30d97a6
...
@@ -81,7 +81,7 @@ abstract class AnalyzeBase {
...
@@ -81,7 +81,7 @@ abstract class AnalyzeBase {
}
}
bool
get
isFlutterRepo
=>
argResults
[
'flutter-repo'
]
as
bool
;
bool
get
isFlutterRepo
=>
argResults
[
'flutter-repo'
]
as
bool
;
String
get
sdkPath
=>
argResults
[
'dart-sdk'
]
as
String
??
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
;
String
get
sdkPath
=>
argResults
[
'dart-sdk'
]
as
String
??
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
;
bool
get
isBenchmarking
=>
argResults
[
'benchmark'
]
as
bool
;
bool
get
isBenchmarking
=>
argResults
[
'benchmark'
]
as
bool
;
String
get
protocolTrafficLog
=>
argResults
[
'protocol-traffic-log'
]
as
String
;
String
get
protocolTrafficLog
=>
argResults
[
'protocol-traffic-log'
]
as
String
;
...
...
packages/flutter_tools/lib/src/commands/drive.dart
View file @
b30d97a6
...
@@ -214,7 +214,7 @@ class DriveCommand extends RunCommandBase {
...
@@ -214,7 +214,7 @@ class DriveCommand extends RunCommandBase {
applicationPackageFactory:
ApplicationPackageFactory
.
instance
,
applicationPackageFactory:
ApplicationPackageFactory
.
instance
,
logger:
_logger
,
logger:
_logger
,
processUtils:
globals
.
processUtils
,
processUtils:
globals
.
processUtils
,
dartSdkPath:
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
dartSdkPath:
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
);
);
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
_fileSystem
.
file
(
'.packages'
),
_fileSystem
.
file
(
'.packages'
),
...
...
packages/flutter_tools/lib/src/commands/format.dart
View file @
b30d97a6
...
@@ -61,8 +61,8 @@ class FormatCommand extends FlutterCommand {
...
@@ -61,8 +61,8 @@ class FormatCommand extends FlutterCommand {
);
);
}
}
final
String
dartSdk
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
;
final
String
dartSdk
=
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
;
final
String
dartBinary
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
;
final
String
dartBinary
=
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
;
final
List
<
String
>
command
=
<
String
>[
final
List
<
String
>
command
=
<
String
>[
dartBinary
,
dartBinary
,
globals
.
fs
.
path
.
join
(
dartSdk
,
'bin'
,
'snapshots'
,
'dartfmt.dart.snapshot'
),
globals
.
fs
.
path
.
join
(
dartSdk
,
'bin'
,
'snapshots'
,
'dartfmt.dart.snapshot'
),
...
...
packages/flutter_tools/lib/src/compile.dart
View file @
b30d97a6
...
@@ -242,7 +242,7 @@ class KernelCompiler {
...
@@ -242,7 +242,7 @@ class KernelCompiler {
if
(!
sdkRoot
.
endsWith
(
'/'
))
{
if
(!
sdkRoot
.
endsWith
(
'/'
))
{
sdkRoot
=
'
$sdkRoot
/'
;
sdkRoot
=
'
$sdkRoot
/'
;
}
}
final
String
engineDartPath
=
_artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
;
final
String
engineDartPath
=
_artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
;
if
(!
_processManager
.
canRun
(
engineDartPath
))
{
if
(!
_processManager
.
canRun
(
engineDartPath
))
{
throwToolExit
(
'Unable to find Dart binary at
$engineDartPath
'
);
throwToolExit
(
'Unable to find Dart binary at
$engineDartPath
'
);
}
}
...
@@ -666,7 +666,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
...
@@ -666,7 +666,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
Artifact
.
frontendServerSnapshotForEngineDartSdk
Artifact
.
frontendServerSnapshotForEngineDartSdk
);
);
final
List
<
String
>
command
=
<
String
>[
final
List
<
String
>
command
=
<
String
>[
_artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
_artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
frontendServer
,
frontendServer
,
'--sdk-root'
,
'--sdk-root'
,
...
...
packages/flutter_tools/lib/src/context_runner.dart
View file @
b30d97a6
...
@@ -27,7 +27,6 @@ import 'base/process.dart';
...
@@ -27,7 +27,6 @@ import 'base/process.dart';
import
'base/terminal.dart'
;
import
'base/terminal.dart'
;
import
'base/time.dart'
;
import
'base/time.dart'
;
import
'base/user_messages.dart'
;
import
'base/user_messages.dart'
;
import
'build_info.dart'
;
import
'build_system/build_system.dart'
;
import
'build_system/build_system.dart'
;
import
'cache.dart'
;
import
'cache.dart'
;
import
'custom_devices/custom_devices_config.dart'
;
import
'custom_devices/custom_devices_config.dart'
;
...
@@ -210,7 +209,7 @@ Future<T> runInContext<T>(
...
@@ -210,7 +209,7 @@ Future<T> runInContext<T>(
),
),
DevtoolsLauncher:
()
=>
DevtoolsServerLauncher
(
DevtoolsLauncher:
()
=>
DevtoolsServerLauncher
(
processManager:
globals
.
processManager
,
processManager:
globals
.
processManager
,
pubExecutable:
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
pubExecutable
)
,
pubExecutable:
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
pubExecutable
).
path
,
logger:
globals
.
logger
,
logger:
globals
.
logger
,
platform:
globals
.
platform
,
platform:
globals
.
platform
,
persistentToolState:
globals
.
persistentToolState
,
persistentToolState:
globals
.
persistentToolState
,
...
@@ -355,10 +354,9 @@ Future<T> runInContext<T>(
...
@@ -355,10 +354,9 @@ Future<T> runInContext<T>(
platform:
globals
.
platform
,
platform:
globals
.
platform
,
xcode:
globals
.
xcode
,
xcode:
globals
.
xcode
,
iproxy:
IProxy
(
iproxy:
IProxy
(
iproxyPath:
globals
.
artifacts
.
getArtifactPath
(
iproxyPath:
globals
.
artifacts
.
getHostArtifact
(
Artifact
.
iproxy
,
HostArtifact
.
iproxy
,
platform:
TargetPlatform
.
ios
,
).
path
,
),
logger:
globals
.
logger
,
logger:
globals
.
logger
,
processManager:
globals
.
processManager
,
processManager:
globals
.
processManager
,
dyLdLibEntry:
globals
.
cache
.
dyLdLibEntry
,
dyLdLibEntry:
globals
.
cache
.
dyLdLibEntry
,
...
...
packages/flutter_tools/lib/src/fuchsia/fuchsia_kernel_compiler.dart
View file @
b30d97a6
...
@@ -65,7 +65,7 @@ class FuchsiaKernelCompiler {
...
@@ -65,7 +65,7 @@ class FuchsiaKernelCompiler {
];
];
final
List
<
String
>
command
=
<
String
>[
final
List
<
String
>
command
=
<
String
>[
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
kernelCompiler
,
kernelCompiler
,
...
flags
,
...
flags
,
...
...
packages/flutter_tools/lib/src/ios/ios_deploy.dart
View file @
b30d97a6
...
@@ -16,7 +16,6 @@ import '../base/io.dart';
...
@@ -16,7 +16,6 @@ import '../base/io.dart';
import
'../base/logger.dart'
;
import
'../base/logger.dart'
;
import
'../base/platform.dart'
;
import
'../base/platform.dart'
;
import
'../base/process.dart'
;
import
'../base/process.dart'
;
import
'../build_info.dart'
;
import
'../cache.dart'
;
import
'../cache.dart'
;
import
'../convert.dart'
;
import
'../convert.dart'
;
import
'code_signing.dart'
;
import
'code_signing.dart'
;
...
@@ -39,7 +38,7 @@ class IOSDeploy {
...
@@ -39,7 +38,7 @@ class IOSDeploy {
_cache
=
cache
,
_cache
=
cache
,
_processUtils
=
ProcessUtils
(
processManager:
processManager
,
logger:
logger
),
_processUtils
=
ProcessUtils
(
processManager:
processManager
,
logger:
logger
),
_logger
=
logger
,
_logger
=
logger
,
_binaryPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
iosDeploy
,
platform:
TargetPlatform
.
ios
)
;
_binaryPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
iosDeploy
).
path
;
final
Cache
_cache
;
final
Cache
_cache
;
final
String
_binaryPath
;
final
String
_binaryPath
;
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
b30d97a6
...
@@ -39,8 +39,8 @@ class IMobileDevice {
...
@@ -39,8 +39,8 @@ class IMobileDevice {
@required
Cache
cache
,
@required
Cache
cache
,
@required
ProcessManager
processManager
,
@required
ProcessManager
processManager
,
@required
Logger
logger
,
@required
Logger
logger
,
})
:
_idevicesyslogPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
idevicesyslog
,
platform:
TargetPlatform
.
ios
)
,
})
:
_idevicesyslogPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
idevicesyslog
).
path
,
_idevicescreenshotPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
idevicescreenshot
,
platform:
TargetPlatform
.
ios
)
,
_idevicescreenshotPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
idevicescreenshot
).
path
,
_dyLdLibEntry
=
cache
.
dyLdLibEntry
,
_dyLdLibEntry
=
cache
.
dyLdLibEntry
,
_processUtils
=
ProcessUtils
(
logger:
logger
,
processManager:
processManager
),
_processUtils
=
ProcessUtils
(
logger:
logger
,
processManager:
processManager
),
_processManager
=
processManager
;
_processManager
=
processManager
;
...
...
packages/flutter_tools/lib/src/isolated/devfs_web.dart
View file @
b30d97a6
...
@@ -537,7 +537,7 @@ class WebAssetServer implements AssetReader {
...
@@ -537,7 +537,7 @@ class WebAssetServer implements AssetReader {
// Otherwise it must be a Dart SDK source or a Flutter Web SDK source.
// Otherwise it must be a Dart SDK source or a Flutter Web SDK source.
final
Directory
dartSdkParent
=
globals
.
fs
final
Directory
dartSdkParent
=
globals
.
fs
.
directory
(
.
directory
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
))
globals
.
artifacts
.
get
HostArtifact
(
Host
Artifact
.
engineDartSdkPath
))
.
parent
;
.
parent
;
final
File
dartSdkFile
=
globals
.
fs
.
file
(
dartSdkParent
.
uri
.
resolve
(
path
));
final
File
dartSdkFile
=
globals
.
fs
.
file
(
dartSdkParent
.
uri
.
resolve
(
path
));
if
(
dartSdkFile
.
existsSync
())
{
if
(
dartSdkFile
.
existsSync
())
{
...
@@ -545,19 +545,19 @@ class WebAssetServer implements AssetReader {
...
@@ -545,19 +545,19 @@ class WebAssetServer implements AssetReader {
}
}
final
Directory
flutterWebSdk
=
globals
.
fs
final
Directory
flutterWebSdk
=
globals
.
fs
.
directory
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebSdk
));
.
directory
(
globals
.
artifacts
.
get
HostArtifact
(
Host
Artifact
.
flutterWebSdk
));
final
File
webSdkFile
=
globals
.
fs
.
file
(
flutterWebSdk
.
uri
.
resolve
(
path
));
final
File
webSdkFile
=
globals
.
fs
.
file
(
flutterWebSdk
.
uri
.
resolve
(
path
));
return
webSdkFile
;
return
webSdkFile
;
}
}
File
get
_resolveDartSdkJsFile
=>
File
get
_resolveDartSdkJsFile
=>
globals
.
fs
.
file
(
globals
.
artifacts
.
get
ArtifactPath
(
globals
.
fs
.
file
(
globals
.
artifacts
.
get
HostArtifact
(
kDartSdkJsArtifactMap
[
webRenderer
][
_nullSafetyMode
]
kDartSdkJsArtifactMap
[
webRenderer
][
_nullSafetyMode
]
));
));
File
get
_resolveDartSdkJsMapFile
=>
File
get
_resolveDartSdkJsMapFile
=>
globals
.
fs
.
file
(
globals
.
artifacts
.
get
ArtifactPath
(
globals
.
fs
.
file
(
globals
.
artifacts
.
get
HostArtifact
(
kDartSdkJsMapArtifactMap
[
webRenderer
][
_nullSafetyMode
]
kDartSdkJsMapArtifactMap
[
webRenderer
][
_nullSafetyMode
]
));
));
...
@@ -869,7 +869,7 @@ class WebDevFS implements DevFS {
...
@@ -869,7 +869,7 @@ class WebDevFS implements DevFS {
@visibleForTesting
@visibleForTesting
final
File
requireJS
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
final
File
requireJS
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
'lib'
,
'lib'
,
'dev_compiler'
,
'dev_compiler'
,
'kernel'
,
'kernel'
,
...
@@ -879,7 +879,7 @@ class WebDevFS implements DevFS {
...
@@ -879,7 +879,7 @@ class WebDevFS implements DevFS {
@visibleForTesting
@visibleForTesting
final
File
stackTraceMapper
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
final
File
stackTraceMapper
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
'lib'
,
'lib'
,
'dev_compiler'
,
'dev_compiler'
,
'web'
,
'web'
,
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
b30d97a6
...
@@ -100,15 +100,15 @@ class FlutterDevice {
...
@@ -100,15 +100,15 @@ class FlutterDevice {
// used to file a bug, but the compiler will still start up correctly.
// used to file a bug, but the compiler will still start up correctly.
if
(
targetPlatform
==
TargetPlatform
.
web_javascript
)
{
if
(
targetPlatform
==
TargetPlatform
.
web_javascript
)
{
// TODO(jonahwilliams): consistently provide these flags across platforms.
// TODO(jonahwilliams): consistently provide these flags across platforms.
Artifact
platformDillArtifact
;
Host
Artifact
platformDillArtifact
;
final
List
<
String
>
extraFrontEndOptions
=
List
<
String
>.
of
(
buildInfo
.
extraFrontEndOptions
??
<
String
>[]);
final
List
<
String
>
extraFrontEndOptions
=
List
<
String
>.
of
(
buildInfo
.
extraFrontEndOptions
??
<
String
>[]);
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
unsound
)
{
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
unsound
)
{
platformDillArtifact
=
Artifact
.
webPlatformKernelDill
;
platformDillArtifact
=
Host
Artifact
.
webPlatformKernelDill
;
if
(!
extraFrontEndOptions
.
contains
(
'--no-sound-null-safety'
))
{
if
(!
extraFrontEndOptions
.
contains
(
'--no-sound-null-safety'
))
{
extraFrontEndOptions
.
add
(
'--no-sound-null-safety'
);
extraFrontEndOptions
.
add
(
'--no-sound-null-safety'
);
}
}
}
else
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
sound
)
{
}
else
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
sound
)
{
platformDillArtifact
=
Artifact
.
webPlatformSoundKernelDill
;
platformDillArtifact
=
Host
Artifact
.
webPlatformSoundKernelDill
;
if
(!
extraFrontEndOptions
.
contains
(
'--sound-null-safety'
))
{
if
(!
extraFrontEndOptions
.
contains
(
'--sound-null-safety'
))
{
extraFrontEndOptions
.
add
(
'--sound-null-safety'
);
extraFrontEndOptions
.
add
(
'--sound-null-safety'
);
}
}
...
@@ -117,7 +117,7 @@ class FlutterDevice {
...
@@ -117,7 +117,7 @@ class FlutterDevice {
}
}
generator
=
ResidentCompiler
(
generator
=
ResidentCompiler
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebSdk
,
mode:
buildInfo
.
mode
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
flutterWebSdk
).
path
,
buildMode:
buildInfo
.
mode
,
buildMode:
buildInfo
.
mode
,
trackWidgetCreation:
buildInfo
.
trackWidgetCreation
,
trackWidgetCreation:
buildInfo
.
trackWidgetCreation
,
fileSystemRoots:
fileSystemRoots
??
<
String
>[],
fileSystemRoots:
fileSystemRoots
??
<
String
>[],
...
@@ -132,11 +132,11 @@ class FlutterDevice {
...
@@ -132,11 +132,11 @@ class FlutterDevice {
targetModel:
TargetModel
.
dartdevc
,
targetModel:
TargetModel
.
dartdevc
,
extraFrontEndOptions:
extraFrontEndOptions
,
extraFrontEndOptions:
extraFrontEndOptions
,
platformDill:
globals
.
fs
.
file
(
globals
.
artifacts
platformDill:
globals
.
fs
.
file
(
globals
.
artifacts
.
get
ArtifactPath
(
platformDillArtifact
,
mode:
buildInfo
.
mode
))
.
get
HostArtifact
(
platformDillArtifact
))
.
absolute
.
uri
.
toString
(),
.
absolute
.
uri
.
toString
(),
dartDefines:
buildInfo
.
dartDefines
,
dartDefines:
buildInfo
.
dartDefines
,
librariesSpec:
globals
.
fs
.
file
(
globals
.
artifacts
librariesSpec:
globals
.
fs
.
file
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebLibrariesJson
)).
uri
.
toString
(),
.
get
HostArtifact
(
Host
Artifact
.
flutterWebLibrariesJson
)).
uri
.
toString
(),
packagesPath:
buildInfo
.
packagesPath
,
packagesPath:
buildInfo
.
packagesPath
,
artifacts:
globals
.
artifacts
,
artifacts:
globals
.
artifacts
,
processManager:
globals
.
processManager
,
processManager:
globals
.
processManager
,
...
@@ -869,7 +869,7 @@ abstract class ResidentHandlers {
...
@@ -869,7 +869,7 @@ abstract class ResidentHandlers {
return
true
;
return
true
;
}
}
/// Toggle the operating system brightness (light or dar
t
).
/// Toggle the operating system brightness (light or dar
k
).
Future
<
bool
>
debugToggleBrightness
()
async
{
Future
<
bool
>
debugToggleBrightness
()
async
{
if
(!
supportsServiceProtocol
)
{
if
(!
supportsServiceProtocol
)
{
return
false
;
return
false
;
...
...
packages/flutter_tools/lib/src/test/flutter_web_platform.dart
View file @
b30d97a6
...
@@ -173,7 +173,7 @@ class FlutterWebPlatform extends PlatformPlugin {
...
@@ -173,7 +173,7 @@ class FlutterWebPlatform extends PlatformPlugin {
/// The require js binary.
/// The require js binary.
File
get
_requireJs
=>
_fileSystem
.
file
(
_fileSystem
.
path
.
join
(
File
get
_requireJs
=>
_fileSystem
.
file
(
_fileSystem
.
path
.
join
(
_artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
_artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
'lib'
,
'lib'
,
'dev_compiler'
,
'dev_compiler'
,
'kernel'
,
'kernel'
,
...
@@ -183,7 +183,7 @@ class FlutterWebPlatform extends PlatformPlugin {
...
@@ -183,7 +183,7 @@ class FlutterWebPlatform extends PlatformPlugin {
/// The ddc to dart stack trace mapper.
/// The ddc to dart stack trace mapper.
File
get
_stackTraceMapper
=>
_fileSystem
.
file
(
_fileSystem
.
path
.
join
(
File
get
_stackTraceMapper
=>
_fileSystem
.
file
(
_fileSystem
.
path
.
join
(
_artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
_artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
'lib'
,
'lib'
,
'dev_compiler'
,
'dev_compiler'
,
'web'
,
'web'
,
...
@@ -191,10 +191,10 @@ class FlutterWebPlatform extends PlatformPlugin {
...
@@ -191,10 +191,10 @@ class FlutterWebPlatform extends PlatformPlugin {
));
));
File
get
_dartSdk
=>
_fileSystem
.
file
(
File
get
_dartSdk
=>
_fileSystem
.
file
(
_artifacts
.
get
ArtifactPath
(
kDartSdkJsArtifactMap
[
_rendererMode
][
_nullSafetyMode
]));
_artifacts
.
get
HostArtifact
(
kDartSdkJsArtifactMap
[
_rendererMode
][
_nullSafetyMode
]));
File
get
_dartSdkSourcemaps
=>
_fileSystem
.
file
(
File
get
_dartSdkSourcemaps
=>
_fileSystem
.
file
(
_artifacts
.
get
ArtifactPath
(
kDartSdkJsMapArtifactMap
[
_rendererMode
][
_nullSafetyMode
]));
_artifacts
.
get
HostArtifact
(
kDartSdkJsMapArtifactMap
[
_rendererMode
][
_nullSafetyMode
]));
/// The precompiled test javascript.
/// The precompiled test javascript.
File
get
_testDartJs
=>
_fileSystem
.
file
(
_fileSystem
.
path
.
join
(
File
get
_testDartJs
=>
_fileSystem
.
file
(
_fileSystem
.
path
.
join
(
...
...
packages/flutter_tools/lib/src/test/web_test_compiler.dart
View file @
b30d97a6
...
@@ -53,17 +53,17 @@ class WebTestCompiler {
...
@@ -53,17 +53,17 @@ class WebTestCompiler {
@required
BuildInfo
buildInfo
,
@required
BuildInfo
buildInfo
,
})
async
{
})
async
{
LanguageVersion
languageVersion
=
LanguageVersion
(
2
,
8
);
LanguageVersion
languageVersion
=
LanguageVersion
(
2
,
8
);
Artifact
platformDillArtifact
;
Host
Artifact
platformDillArtifact
;
// TODO(jonahwilliams): to support autodetect this would need to partition the source code into a
// TODO(jonahwilliams): to support autodetect this would need to partition the source code into a
// a sound and unsound set and perform separate compilations.
// a sound and unsound set and perform separate compilations.
final
List
<
String
>
extraFrontEndOptions
=
List
<
String
>.
of
(
buildInfo
.
extraFrontEndOptions
??
<
String
>[]);
final
List
<
String
>
extraFrontEndOptions
=
List
<
String
>.
of
(
buildInfo
.
extraFrontEndOptions
??
<
String
>[]);
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
unsound
||
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
autodetect
)
{
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
unsound
||
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
autodetect
)
{
platformDillArtifact
=
Artifact
.
webPlatformKernelDill
;
platformDillArtifact
=
Host
Artifact
.
webPlatformKernelDill
;
if
(!
extraFrontEndOptions
.
contains
(
'--no-sound-null-safety'
))
{
if
(!
extraFrontEndOptions
.
contains
(
'--no-sound-null-safety'
))
{
extraFrontEndOptions
.
add
(
'--no-sound-null-safety'
);
extraFrontEndOptions
.
add
(
'--no-sound-null-safety'
);
}
}
}
else
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
sound
)
{
}
else
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
sound
)
{
platformDillArtifact
=
Artifact
.
webPlatformSoundKernelDill
;
platformDillArtifact
=
Host
Artifact
.
webPlatformSoundKernelDill
;
languageVersion
=
currentLanguageVersion
(
_fileSystem
,
Cache
.
flutterRoot
);
languageVersion
=
currentLanguageVersion
(
_fileSystem
,
Cache
.
flutterRoot
);
if
(!
extraFrontEndOptions
.
contains
(
'--sound-null-safety'
))
{
if
(!
extraFrontEndOptions
.
contains
(
'--sound-null-safety'
))
{
extraFrontEndOptions
.
add
(
'--sound-null-safety'
);
extraFrontEndOptions
.
add
(
'--sound-null-safety'
);
...
@@ -107,7 +107,7 @@ class WebTestCompiler {
...
@@ -107,7 +107,7 @@ class WebTestCompiler {
config:
_config
,
config:
_config
,
);
);
final
ResidentCompiler
residentCompiler
=
ResidentCompiler
(
final
ResidentCompiler
residentCompiler
=
ResidentCompiler
(
_artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebSdk
,
mode:
buildInfo
.
mode
)
,
_artifacts
.
get
HostArtifact
(
HostArtifact
.
flutterWebSdk
).
path
,
buildMode:
buildInfo
.
mode
,
buildMode:
buildInfo
.
mode
,
trackWidgetCreation:
buildInfo
.
trackWidgetCreation
,
trackWidgetCreation:
buildInfo
.
trackWidgetCreation
,
fileSystemRoots:
<
String
>[
fileSystemRoots:
<
String
>[
...
@@ -120,12 +120,11 @@ class WebTestCompiler {
...
@@ -120,12 +120,11 @@ class WebTestCompiler {
initializeFromDill:
cachedKernelPath
,
initializeFromDill:
cachedKernelPath
,
targetModel:
TargetModel
.
dartdevc
,
targetModel:
TargetModel
.
dartdevc
,
extraFrontEndOptions:
extraFrontEndOptions
,
extraFrontEndOptions:
extraFrontEndOptions
,
platformDill:
_
fileSystem
.
file
(
_
artifacts
platformDill:
_artifacts
.
get
ArtifactPath
(
platformDillArtifact
,
mode:
buildInfo
.
mode
)
)
.
get
HostArtifact
(
platformDillArtifact
)
.
absolute
.
uri
.
toString
(),
.
absolute
.
uri
.
toString
(),
dartDefines:
buildInfo
.
dartDefines
,
dartDefines:
buildInfo
.
dartDefines
,
librariesSpec:
_fileSystem
.
file
(
_artifacts
librariesSpec:
_artifacts
.
getHostArtifact
(
HostArtifact
.
flutterWebLibrariesJson
).
uri
.
toString
(),
.
getArtifactPath
(
Artifact
.
flutterWebLibrariesJson
)).
uri
.
toString
(),
packagesPath:
buildInfo
.
packagesPath
,
packagesPath:
buildInfo
.
packagesPath
,
artifacts:
_artifacts
,
artifacts:
_artifacts
,
processManager:
_processManager
,
processManager:
_processManager
,
...
...
packages/flutter_tools/lib/src/web/compile.dart
View file @
b30d97a6
...
@@ -101,33 +101,33 @@ enum WebRendererMode {
...
@@ -101,33 +101,33 @@ enum WebRendererMode {
}
}
/// The correct precompiled artifact to use for each build and render mode.
/// The correct precompiled artifact to use for each build and render mode.
const
Map
<
WebRendererMode
,
Map
<
NullSafetyMode
,
Artifact
>>
kDartSdkJsArtifactMap
=
<
WebRendererMode
,
Map
<
NullSafetyMode
,
Artifact
>>{
const
Map
<
WebRendererMode
,
Map
<
NullSafetyMode
,
HostArtifact
>>
kDartSdkJsArtifactMap
=
<
WebRendererMode
,
Map
<
NullSafetyMode
,
Host
Artifact
>>{
WebRendererMode
.
autoDetect
:
<
NullSafetyMode
,
Artifact
>
{
WebRendererMode
.
autoDetect
:
<
NullSafetyMode
,
Host
Artifact
>
{
NullSafetyMode
.
sound
:
Artifact
.
webPrecompiledCanvaskitAndHtmlSoundSdk
,
NullSafetyMode
.
sound
:
Host
Artifact
.
webPrecompiledCanvaskitAndHtmlSoundSdk
,
NullSafetyMode
.
unsound
:
Artifact
.
webPrecompiledCanvaskitAndHtmlSdk
,
NullSafetyMode
.
unsound
:
Host
Artifact
.
webPrecompiledCanvaskitAndHtmlSdk
,
},
},
WebRendererMode
.
canvaskit
:
<
NullSafetyMode
,
Artifact
>
{
WebRendererMode
.
canvaskit
:
<
NullSafetyMode
,
Host
Artifact
>
{
NullSafetyMode
.
sound
:
Artifact
.
webPrecompiledCanvaskitSoundSdk
,
NullSafetyMode
.
sound
:
Host
Artifact
.
webPrecompiledCanvaskitSoundSdk
,
NullSafetyMode
.
unsound
:
Artifact
.
webPrecompiledCanvaskitSdk
,
NullSafetyMode
.
unsound
:
Host
Artifact
.
webPrecompiledCanvaskitSdk
,
},
},
WebRendererMode
.
html
:
<
NullSafetyMode
,
Artifact
>
{
WebRendererMode
.
html
:
<
NullSafetyMode
,
Host
Artifact
>
{
NullSafetyMode
.
sound
:
Artifact
.
webPrecompiledSoundSdk
,
NullSafetyMode
.
sound
:
Host
Artifact
.
webPrecompiledSoundSdk
,
NullSafetyMode
.
unsound
:
Artifact
.
webPrecompiledSdk
,
NullSafetyMode
.
unsound
:
Host
Artifact
.
webPrecompiledSdk
,
},
},
};
};
/// The correct source map artifact to use for each build and render mode.
/// The correct source map artifact to use for each build and render mode.
const
Map
<
WebRendererMode
,
Map
<
NullSafetyMode
,
Artifact
>>
kDartSdkJsMapArtifactMap
=
<
WebRendererMode
,
Map
<
NullSafetyMode
,
Artifact
>>{
const
Map
<
WebRendererMode
,
Map
<
NullSafetyMode
,
HostArtifact
>>
kDartSdkJsMapArtifactMap
=
<
WebRendererMode
,
Map
<
NullSafetyMode
,
Host
Artifact
>>{
WebRendererMode
.
autoDetect
:
<
NullSafetyMode
,
Artifact
>
{
WebRendererMode
.
autoDetect
:
<
NullSafetyMode
,
Host
Artifact
>
{
NullSafetyMode
.
sound
:
Artifact
.
webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps
,
NullSafetyMode
.
sound
:
Host
Artifact
.
webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps
,
NullSafetyMode
.
unsound
:
Artifact
.
webPrecompiledCanvaskitAndHtmlSdkSourcemaps
,
NullSafetyMode
.
unsound
:
Host
Artifact
.
webPrecompiledCanvaskitAndHtmlSdkSourcemaps
,
},
},
WebRendererMode
.
canvaskit
:
<
NullSafetyMode
,
Artifact
>
{
WebRendererMode
.
canvaskit
:
<
NullSafetyMode
,
Host
Artifact
>
{
NullSafetyMode
.
sound
:
Artifact
.
webPrecompiledCanvaskitSoundSdkSourcemaps
,
NullSafetyMode
.
sound
:
Host
Artifact
.
webPrecompiledCanvaskitSoundSdkSourcemaps
,
NullSafetyMode
.
unsound
:
Artifact
.
webPrecompiledCanvaskitSdkSourcemaps
,
NullSafetyMode
.
unsound
:
Host
Artifact
.
webPrecompiledCanvaskitSdkSourcemaps
,
},
},
WebRendererMode
.
html
:
<
NullSafetyMode
,
Artifact
>
{
WebRendererMode
.
html
:
<
NullSafetyMode
,
Host
Artifact
>
{
NullSafetyMode
.
sound
:
Artifact
.
webPrecompiledSoundSdkSourcemaps
,
NullSafetyMode
.
sound
:
Host
Artifact
.
webPrecompiledSoundSdkSourcemaps
,
NullSafetyMode
.
unsound
:
Artifact
.
webPrecompiledSdkSourcemaps
,
NullSafetyMode
.
unsound
:
Host
Artifact
.
webPrecompiledSdkSourcemaps
,
},
},
};
};
packages/flutter_tools/test/commands.shard/hermetic/analyze_continuously_test.dart
View file @
b30d97a6
...
@@ -91,7 +91,7 @@ void main() {
...
@@ -91,7 +91,7 @@ void main() {
);
);
server
=
AnalysisServer
(
server
=
AnalysisServer
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
<
String
>[
tempDir
.
path
],
<
String
>[
tempDir
.
path
],
fileSystem:
fileSystem
,
fileSystem:
fileSystem
,
platform:
platform
,
platform:
platform
,
...
@@ -129,7 +129,7 @@ void main() {
...
@@ -129,7 +129,7 @@ void main() {
);
);
server
=
AnalysisServer
(
server
=
AnalysisServer
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
<
String
>[
tempDir
.
path
],
<
String
>[
tempDir
.
path
],
fileSystem:
fileSystem
,
fileSystem:
fileSystem
,
platform:
platform
,
platform:
platform
,
...
@@ -154,7 +154,7 @@ void main() {
...
@@ -154,7 +154,7 @@ void main() {
const
String
contents
=
"StringBuffer bar = StringBuffer('baz');"
;
const
String
contents
=
"StringBuffer bar = StringBuffer('baz');"
;
tempDir
.
childFile
(
'main.dart'
).
writeAsStringSync
(
contents
);
tempDir
.
childFile
(
'main.dart'
).
writeAsStringSync
(
contents
);
server
=
AnalysisServer
(
server
=
AnalysisServer
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
<
String
>[
tempDir
.
path
],
<
String
>[
tempDir
.
path
],
fileSystem:
fileSystem
,
fileSystem:
fileSystem
,
platform:
platform
,
platform:
platform
,
...
@@ -180,13 +180,13 @@ void main() {
...
@@ -180,13 +180,13 @@ void main() {
<
FakeCommand
>[
<
FakeCommand
>[
FakeCommand
(
FakeCommand
(
command:
const
<
String
>[
command:
const
<
String
>[
'Artifact.engineDartSdkPath/bin/dart'
,
'
Host
Artifact.engineDartSdkPath/bin/dart'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.engineDartSdkPath/bin/snapshots/analysis_server.dart.snapshot'
,
'
Host
Artifact.engineDartSdkPath/bin/snapshots/analysis_server.dart.snapshot'
,
'--disable-server-feature-completion'
,
'--disable-server-feature-completion'
,
'--disable-server-feature-search'
,
'--disable-server-feature-search'
,
'--sdk'
,
'--sdk'
,
'Artifact.engineDartSdkPath'
,
'
Host
Artifact.engineDartSdkPath'
,
],
],
completer:
completer
,
completer:
completer
,
stdin:
IOSink
(
stdin
.
sink
),
stdin:
IOSink
(
stdin
.
sink
),
...
@@ -218,13 +218,13 @@ void main() {
...
@@ -218,13 +218,13 @@ void main() {
<
FakeCommand
>[
<
FakeCommand
>[
FakeCommand
(
FakeCommand
(
command:
const
<
String
>[
command:
const
<
String
>[
'Artifact.engineDartSdkPath/bin/dart'
,
'
Host
Artifact.engineDartSdkPath/bin/dart'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.engineDartSdkPath/bin/snapshots/analysis_server.dart.snapshot'
,
'
Host
Artifact.engineDartSdkPath/bin/snapshots/analysis_server.dart.snapshot'
,
'--disable-server-feature-completion'
,
'--disable-server-feature-completion'
,
'--disable-server-feature-search'
,
'--disable-server-feature-search'
,
'--sdk'
,
'--sdk'
,
'Artifact.engineDartSdkPath'
,
'
Host
Artifact.engineDartSdkPath'
,
],
],
completer:
completer
,
completer:
completer
,
stdin:
IOSink
(
stdin
.
sink
),
stdin:
IOSink
(
stdin
.
sink
),
...
...
packages/flutter_tools/test/commands.shard/permeable/create_test.dart
View file @
b30d97a6
...
@@ -1069,7 +1069,7 @@ void main() {
...
@@ -1069,7 +1069,7 @@ void main() {
final
Process
process
=
await
Process
.
start
(
final
Process
process
=
await
Process
.
start
(
globals
.
fs
.
path
.
join
(
globals
.
fs
.
path
.
join
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
'bin'
,
'bin'
,
globals
.
platform
.
isWindows
?
'dartfmt.bat'
:
'dartfmt'
,
globals
.
platform
.
isWindows
?
'dartfmt.bat'
:
'dartfmt'
,
),
),
...
@@ -1171,7 +1171,7 @@ void main() {
...
@@ -1171,7 +1171,7 @@ void main() {
final
Process
process
=
await
Process
.
start
(
final
Process
process
=
await
Process
.
start
(
globals
.
fs
.
path
.
join
(
globals
.
fs
.
path
.
join
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
'bin'
,
'bin'
,
globals
.
platform
.
isWindows
?
'dartfmt.bat'
:
'dartfmt'
,
globals
.
platform
.
isWindows
?
'dartfmt.bat'
:
'dartfmt'
,
),
),
...
@@ -2563,7 +2563,7 @@ Future<void> _analyzeProject(String workingDir) async {
...
@@ -2563,7 +2563,7 @@ Future<void> _analyzeProject(String workingDir) async {
];
];
final
ProcessResult
exec
=
await
Process
.
run
(
final
ProcessResult
exec
=
await
Process
.
run
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
args
,
args
,
workingDirectory:
workingDir
,
workingDirectory:
workingDir
,
);
);
...
@@ -2586,7 +2586,7 @@ Future<void> _runFlutterTest(Directory workingDir, { String target }) async {
...
@@ -2586,7 +2586,7 @@ Future<void> _runFlutterTest(Directory workingDir, { String target }) async {
// While flutter test does get packages, it doesn't write version
// While flutter test does get packages, it doesn't write version
// files anymore.
// files anymore.
await
Process
.
run
(
await
Process
.
run
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
<
String
>[
<
String
>[
flutterToolsSnapshotPath
,
flutterToolsSnapshotPath
,
'packages'
,
'packages'
,
...
@@ -2603,7 +2603,7 @@ Future<void> _runFlutterTest(Directory workingDir, { String target }) async {
...
@@ -2603,7 +2603,7 @@ Future<void> _runFlutterTest(Directory workingDir, { String target }) async {
];
];
final
ProcessResult
exec
=
await
Process
.
run
(
final
ProcessResult
exec
=
await
Process
.
run
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
args
,
args
,
workingDirectory:
workingDir
.
path
,
workingDirectory:
workingDir
.
path
,
);
);
...
...
packages/flutter_tools/test/general.shard/artifacts_test.dart
View file @
b30d97a6
...
@@ -135,35 +135,35 @@ void main() {
...
@@ -135,35 +135,35 @@ void main() {
testWithoutContext
(
'precompiled web artifact paths are correct'
,
()
{
testWithoutContext
(
'precompiled web artifact paths are correct'
,
()
{
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSdk
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSdk
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd/dart_sdk.js'
,
'root/bin/cache/flutter_web_sdk/kernel/amd/dart_sdk.js'
,
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSdkSourcemaps
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSdkSourcemaps
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd/dart_sdk.js.map'
,
'root/bin/cache/flutter_web_sdk/kernel/amd/dart_sdk.js.map'
,
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSdk
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSdk
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit/dart_sdk.js'
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit/dart_sdk.js'
,
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSdkSourcemaps
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSdkSourcemaps
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit/dart_sdk.js.map'
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit/dart_sdk.js.map'
,
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSoundSdk
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSoundSdk
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd-sound/dart_sdk.js'
,
'root/bin/cache/flutter_web_sdk/kernel/amd-sound/dart_sdk.js'
,
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSoundSdkSourcemaps
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSoundSdkSourcemaps
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd-sound/dart_sdk.js.map'
,
'root/bin/cache/flutter_web_sdk/kernel/amd-sound/dart_sdk.js.map'
,
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSoundSdk
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSoundSdk
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit-sound/dart_sdk.js'
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit-sound/dart_sdk.js'
,
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSoundSdkSourcemaps
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSoundSdkSourcemaps
).
path
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit-sound/dart_sdk.js.map'
,
'root/bin/cache/flutter_web_sdk/kernel/amd-canvaskit-sound/dart_sdk.js.map'
,
);
);
});
});
...
@@ -293,7 +293,7 @@ void main() {
...
@@ -293,7 +293,7 @@ void main() {
fileSystem
.
path
.
join
(
'/out'
,
'android_debug_unopt'
,
'flutter_tester'
),
fileSystem
.
path
.
join
(
'/out'
,
'android_debug_unopt'
,
'flutter_tester'
),
);
);
expect
(
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartSdkPath
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartSdkPath
).
path
,
fileSystem
.
path
.
join
(
'/out'
,
'host_debug_unopt'
,
'dart-sdk'
),
fileSystem
.
path
.
join
(
'/out'
,
'host_debug_unopt'
,
'dart-sdk'
),
);
);
});
});
...
@@ -324,7 +324,7 @@ void main() {
...
@@ -324,7 +324,7 @@ void main() {
operatingSystemUtils:
FakeOperatingSystemUtils
(),
operatingSystemUtils:
FakeOperatingSystemUtils
(),
);
);
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
contains
(
'.exe'
));
expect
(
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
contains
(
'.exe'
));
});
});
testWithoutContext
(
'Looks up windows UWP artifacts in host engine'
,
()
async
{
testWithoutContext
(
'Looks up windows UWP artifacts in host engine'
,
()
async
{
...
@@ -342,7 +342,7 @@ void main() {
...
@@ -342,7 +342,7 @@ void main() {
});
});
testWithoutContext
(
'Looks up dart on linux platforms'
,
()
async
{
testWithoutContext
(
'Looks up dart on linux platforms'
,
()
async
{
expect
(
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
isNot
(
contains
(
'.exe'
)));
expect
(
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
isNot
(
contains
(
'.exe'
)));
});
});
});
});
}
}
packages/flutter_tools/test/general.shard/build_system/targets/common_test.dart
View file @
b30d97a6
...
@@ -80,7 +80,7 @@ void main() {
...
@@ -80,7 +80,7 @@ void main() {
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
processManager
.
addCommands
(<
FakeCommand
>[
processManager
.
addCommands
(<
FakeCommand
>[
FakeCommand
(
command:
<
String
>[
FakeCommand
(
command:
<
String
>[
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
'--sdk-root'
,
'--sdk-root'
,
...
@@ -116,7 +116,7 @@ void main() {
...
@@ -116,7 +116,7 @@ void main() {
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
processManager
.
addCommands
(<
FakeCommand
>[
processManager
.
addCommands
(<
FakeCommand
>[
FakeCommand
(
command:
<
String
>[
FakeCommand
(
command:
<
String
>[
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
'--sdk-root'
,
'--sdk-root'
,
...
@@ -152,7 +152,7 @@ void main() {
...
@@ -152,7 +152,7 @@ void main() {
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
processManager
.
addCommands
(<
FakeCommand
>[
processManager
.
addCommands
(<
FakeCommand
>[
FakeCommand
(
command:
<
String
>[
FakeCommand
(
command:
<
String
>[
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
'--sdk-root'
,
'--sdk-root'
,
...
@@ -189,7 +189,7 @@ void main() {
...
@@ -189,7 +189,7 @@ void main() {
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
processManager
.
addCommands
(<
FakeCommand
>[
processManager
.
addCommands
(<
FakeCommand
>[
FakeCommand
(
command:
<
String
>[
FakeCommand
(
command:
<
String
>[
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
'--sdk-root'
,
'--sdk-root'
,
...
@@ -228,7 +228,7 @@ void main() {
...
@@ -228,7 +228,7 @@ void main() {
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
processManager
.
addCommands
(<
FakeCommand
>[
processManager
.
addCommands
(<
FakeCommand
>[
FakeCommand
(
command:
<
String
>[
FakeCommand
(
command:
<
String
>[
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
'--sdk-root'
,
'--sdk-root'
,
...
@@ -265,7 +265,7 @@ void main() {
...
@@ -265,7 +265,7 @@ void main() {
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
final
String
build
=
androidEnvironment
.
buildDir
.
path
;
processManager
.
addCommands
(<
FakeCommand
>[
processManager
.
addCommands
(<
FakeCommand
>[
FakeCommand
(
command:
<
String
>[
FakeCommand
(
command:
<
String
>[
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
'--sdk-root'
,
'--sdk-root'
,
...
@@ -314,7 +314,7 @@ void main() {
...
@@ -314,7 +314,7 @@ void main() {
final
String
build
=
testEnvironment
.
buildDir
.
path
;
final
String
build
=
testEnvironment
.
buildDir
.
path
;
processManager
.
addCommands
(<
FakeCommand
>[
processManager
.
addCommands
(<
FakeCommand
>[
FakeCommand
(
command:
<
String
>[
FakeCommand
(
command:
<
String
>[
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
),
'--sdk-root'
,
'--sdk-root'
,
...
...
packages/flutter_tools/test/general.shard/build_system/targets/icon_tree_shaker_test.dart
View file @
b30d97a6
...
@@ -96,7 +96,7 @@ void main() {
...
@@ -96,7 +96,7 @@ void main() {
outputPreferences:
OutputPreferences
.
test
(
showColor:
false
),
outputPreferences:
OutputPreferences
.
test
(
showColor:
false
),
);
);
dartPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
;
dartPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
;
constFinderPath
=
artifacts
.
getArtifactPath
(
Artifact
.
constFinder
);
constFinderPath
=
artifacts
.
getArtifactPath
(
Artifact
.
constFinder
);
fontSubsetPath
=
artifacts
.
getArtifactPath
(
Artifact
.
fontSubset
);
fontSubsetPath
=
artifacts
.
getArtifactPath
(
Artifact
.
fontSubset
);
...
...
packages/flutter_tools/test/general.shard/compile_batch_test.dart
View file @
b30d97a6
...
@@ -54,7 +54,7 @@ void main() {
...
@@ -54,7 +54,7 @@ void main() {
logger:
logger
,
logger:
logger
,
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
FakeCommand
(
command:
const
<
String
>[
FakeCommand
(
command:
const
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
@@ -99,7 +99,7 @@ void main() {
...
@@ -99,7 +99,7 @@ void main() {
logger:
logger
,
logger:
logger
,
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
FakeCommand
(
command:
const
<
String
>[
FakeCommand
(
command:
const
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
@@ -144,7 +144,7 @@ void main() {
...
@@ -144,7 +144,7 @@ void main() {
logger:
logger
,
logger:
logger
,
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
FakeCommand
(
command:
const
<
String
>[
FakeCommand
(
command:
const
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
@@ -189,7 +189,7 @@ void main() {
...
@@ -189,7 +189,7 @@ void main() {
logger:
logger
,
logger:
logger
,
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
FakeCommand
(
command:
const
<
String
>[
FakeCommand
(
command:
const
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
@@ -236,7 +236,7 @@ void main() {
...
@@ -236,7 +236,7 @@ void main() {
logger:
logger
,
logger:
logger
,
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
FakeCommand
(
command:
const
<
String
>[
FakeCommand
(
command:
const
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
@@ -283,7 +283,7 @@ void main() {
...
@@ -283,7 +283,7 @@ void main() {
logger:
logger
,
logger:
logger
,
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
FakeCommand
(
command:
const
<
String
>[
FakeCommand
(
command:
const
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
@@ -334,7 +334,7 @@ void main() {
...
@@ -334,7 +334,7 @@ void main() {
logger:
logger
,
logger:
logger
,
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
processManager:
FakeProcessManager
.
list
(<
FakeCommand
>[
FakeCommand
(
command:
const
<
String
>[
FakeCommand
(
command:
const
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
...
packages/flutter_tools/test/general.shard/compile_incremental_test.dart
View file @
b30d97a6
...
@@ -30,7 +30,7 @@ void main() {
...
@@ -30,7 +30,7 @@ void main() {
FakeProcessManager
fakeProcessManager
;
FakeProcessManager
fakeProcessManager
;
const
List
<
String
>
frontendServerCommand
=
<
String
>[
const
List
<
String
>
frontendServerCommand
=
<
String
>[
'Artifact.engineDartBinary'
,
'
Host
Artifact.engineDartBinary'
,
'--disable-dart-dev'
,
'--disable-dart-dev'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'Artifact.frontendServerSnapshotForEngineDartSdk'
,
'--sdk-root'
,
'--sdk-root'
,
...
...
packages/flutter_tools/test/general.shard/ios/ios_deploy_test.dart
View file @
b30d97a6
...
@@ -13,7 +13,6 @@ import 'package:flutter_tools/src/artifacts.dart';
...
@@ -13,7 +13,6 @@ import 'package:flutter_tools/src/artifacts.dart';
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/logger.dart'
;
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/cache.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/ios/devices.dart'
;
import
'package:flutter_tools/src/ios/devices.dart'
;
import
'package:flutter_tools/src/ios/ios_deploy.dart'
;
import
'package:flutter_tools/src/ios/ios_deploy.dart'
;
...
@@ -29,7 +28,7 @@ void main () {
...
@@ -29,7 +28,7 @@ void main () {
setUp
(()
{
setUp
(()
{
artifacts
=
Artifacts
.
test
();
artifacts
=
Artifacts
.
test
();
iosDeployPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
iosDeploy
,
platform:
TargetPlatform
.
ios
)
;
iosDeployPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
iosDeploy
).
path
;
fileSystem
=
MemoryFileSystem
.
test
();
fileSystem
=
MemoryFileSystem
.
test
();
});
});
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_install_test.dart
View file @
b30d97a6
...
@@ -33,7 +33,7 @@ void main() {
...
@@ -33,7 +33,7 @@ void main() {
setUp
(()
{
setUp
(()
{
artifacts
=
Artifacts
.
test
();
artifacts
=
Artifacts
.
test
();
iosDeployPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
iosDeploy
,
platform:
TargetPlatform
.
ios
)
;
iosDeployPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
iosDeploy
).
path
;
});
});
testWithoutContext
(
'IOSDevice.installApp calls ios-deploy correctly with USB'
,
()
async
{
testWithoutContext
(
'IOSDevice.installApp calls ios-deploy correctly with USB'
,
()
async
{
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_logger_test.dart
View file @
b30d97a6
...
@@ -8,7 +8,6 @@ import 'dart:async';
...
@@ -8,7 +8,6 @@ import 'dart:async';
import
'package:flutter_tools/src/artifacts.dart'
;
import
'package:flutter_tools/src/artifacts.dart'
;
import
'package:flutter_tools/src/base/logger.dart'
;
import
'package:flutter_tools/src/base/logger.dart'
;
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/convert.dart'
;
import
'package:flutter_tools/src/convert.dart'
;
import
'package:flutter_tools/src/device.dart'
;
import
'package:flutter_tools/src/device.dart'
;
...
@@ -35,7 +34,7 @@ void main() {
...
@@ -35,7 +34,7 @@ void main() {
fakeCache
=
Cache
.
test
(
processManager:
FakeProcessManager
.
any
());
fakeCache
=
Cache
.
test
(
processManager:
FakeProcessManager
.
any
());
artifacts
=
Artifacts
.
test
();
artifacts
=
Artifacts
.
test
();
logger
=
BufferLogger
.
test
();
logger
=
BufferLogger
.
test
();
ideviceSyslogPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
idevicesyslog
,
platform:
TargetPlatform
.
ios
)
;
ideviceSyslogPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
idevicesyslog
).
path
;
});
});
group
(
'syslog stream'
,
()
{
group
(
'syslog stream'
,
()
{
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_start_nonprebuilt_test.dart
View file @
b30d97a6
...
@@ -76,7 +76,7 @@ void main() {
...
@@ -76,7 +76,7 @@ void main() {
setUp
(()
{
setUp
(()
{
artifacts
=
Artifacts
.
test
();
artifacts
=
Artifacts
.
test
();
iosDeployPath
=
artifacts
.
get
ArtifactPath
(
Artifact
.
iosDeploy
,
platform:
TargetPlatform
.
ios
)
;
iosDeployPath
=
artifacts
.
get
HostArtifact
(
HostArtifact
.
iosDeploy
).
path
;
});
});
group
(
'IOSDevice.startApp succeeds in release mode'
,
()
{
group
(
'IOSDevice.startApp succeeds in release mode'
,
()
{
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart
View file @
b30d97a6
...
@@ -30,7 +30,7 @@ import '../../src/fakes.dart';
...
@@ -30,7 +30,7 @@ import '../../src/fakes.dart';
// The command used to actually launch the app with args in release/profile.
// The command used to actually launch the app with args in release/profile.
const
FakeCommand
kLaunchReleaseCommand
=
FakeCommand
(
const
FakeCommand
kLaunchReleaseCommand
=
FakeCommand
(
command:
<
String
>[
command:
<
String
>[
'
Artifact.iosDeploy.TargetPlatform.ios
'
,
'
HostArtifact.iosDeploy
'
,
'--id'
,
'--id'
,
'123'
,
'123'
,
'--bundle'
,
'--bundle'
,
...
@@ -49,7 +49,7 @@ const FakeCommand kLaunchReleaseCommand = FakeCommand(
...
@@ -49,7 +49,7 @@ const FakeCommand kLaunchReleaseCommand = FakeCommand(
// The command used to just launch the app with args in debug.
// The command used to just launch the app with args in debug.
const
FakeCommand
kLaunchDebugCommand
=
FakeCommand
(
command:
<
String
>[
const
FakeCommand
kLaunchDebugCommand
=
FakeCommand
(
command:
<
String
>[
'
Artifact.iosDeploy.TargetPlatform.ios
'
,
'
HostArtifact.iosDeploy
'
,
'--id'
,
'--id'
,
'123'
,
'123'
,
'--bundle'
,
'--bundle'
,
...
@@ -69,7 +69,7 @@ const FakeCommand kAttachDebuggerCommand = FakeCommand(command: <String>[
...
@@ -69,7 +69,7 @@ const FakeCommand kAttachDebuggerCommand = FakeCommand(command: <String>[
'-t'
,
'-t'
,
'0'
,
'0'
,
'/dev/null'
,
'/dev/null'
,
'
Artifact.iosDeploy.TargetPlatform.ios
'
,
'
HostArtifact.iosDeploy
'
,
'--id'
,
'--id'
,
'123'
,
'123'
,
'--bundle'
,
'--bundle'
,
...
@@ -214,7 +214,7 @@ void main() {
...
@@ -214,7 +214,7 @@ void main() {
'-t'
,
'-t'
,
'0'
,
'0'
,
'/dev/null'
,
'/dev/null'
,
'
Artifact.iosDeploy.TargetPlatform.ios
'
,
'
HostArtifact.iosDeploy
'
,
'--id'
,
'--id'
,
'123'
,
'123'
,
'--bundle'
,
'--bundle'
,
...
...
packages/flutter_tools/test/general.shard/ios/mac_test.dart
View file @
b30d97a6
...
@@ -56,7 +56,7 @@ void main() {
...
@@ -56,7 +56,7 @@ void main() {
// Let `idevicescreenshot` fail with exit code 1.
// Let `idevicescreenshot` fail with exit code 1.
fakeProcessManager
.
addCommand
(
FakeCommand
(
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
<
String
>[
command:
<
String
>[
'
Artifact.idevicescreenshot.TargetPlatform.ios
'
,
'
HostArtifact.idevicescreenshot
'
,
outputFile
.
path
,
outputFile
.
path
,
'--udid'
,
'--udid'
,
'1234'
,
'1234'
,
...
@@ -85,7 +85,7 @@ void main() {
...
@@ -85,7 +85,7 @@ void main() {
testWithoutContext
(
'idevicescreenshot captures and returns USB screenshot'
,
()
async
{
testWithoutContext
(
'idevicescreenshot captures and returns USB screenshot'
,
()
async
{
fakeProcessManager
.
addCommand
(
FakeCommand
(
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
<
String
>[
command:
<
String
>[
'
Artifact.idevicescreenshot.TargetPlatform.ios
'
,
outputFile
.
path
,
'--udid'
,
'1234'
,
'
HostArtifact.idevicescreenshot
'
,
outputFile
.
path
,
'--udid'
,
'1234'
,
],
],
environment:
const
<
String
,
String
>{
'DYLD_LIBRARY_PATH'
:
'/path/to/libraries'
},
environment:
const
<
String
,
String
>{
'DYLD_LIBRARY_PATH'
:
'/path/to/libraries'
},
));
));
...
@@ -108,7 +108,7 @@ void main() {
...
@@ -108,7 +108,7 @@ void main() {
testWithoutContext
(
'idevicescreenshot captures and returns network screenshot'
,
()
async
{
testWithoutContext
(
'idevicescreenshot captures and returns network screenshot'
,
()
async
{
fakeProcessManager
.
addCommand
(
FakeCommand
(
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
<
String
>[
command:
<
String
>[
'
Artifact.idevicescreenshot.TargetPlatform.ios
'
,
outputFile
.
path
,
'--udid'
,
'1234'
,
'--network'
,
'
HostArtifact.idevicescreenshot
'
,
outputFile
.
path
,
'--udid'
,
'1234'
,
'--network'
,
],
],
environment:
const
<
String
,
String
>{
'DYLD_LIBRARY_PATH'
:
'/path/to/libraries'
},
environment:
const
<
String
,
String
>{
'DYLD_LIBRARY_PATH'
:
'/path/to/libraries'
},
));
));
...
...
packages/flutter_tools/test/general.shard/resident_runner_test.dart
View file @
b30d97a6
...
@@ -2105,12 +2105,12 @@ void main() {
...
@@ -2105,12 +2105,12 @@ void main() {
expect
(
residentCompiler
.
initializeFromDill
,
expect
(
residentCompiler
.
initializeFromDill
,
globals
.
fs
.
path
.
join
(
getBuildDirectory
(),
'fbbe6a61fb7a1de317d381f8df4814e5.cache.dill'
));
globals
.
fs
.
path
.
join
(
getBuildDirectory
(),
'fbbe6a61fb7a1de317d381f8df4814e5.cache.dill'
));
expect
(
residentCompiler
.
librariesSpec
,
expect
(
residentCompiler
.
librariesSpec
,
globals
.
fs
.
file
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebLibrariesJson
))
globals
.
fs
.
file
(
globals
.
artifacts
.
get
HostArtifact
(
Host
Artifact
.
flutterWebLibrariesJson
))
.
uri
.
toString
());
.
uri
.
toString
());
expect
(
residentCompiler
.
targetModel
,
TargetModel
.
dartdevc
);
expect
(
residentCompiler
.
targetModel
,
TargetModel
.
dartdevc
);
expect
(
residentCompiler
.
sdkRoot
,
expect
(
residentCompiler
.
sdkRoot
,
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebSdk
,
mode:
BuildMode
.
debug
)
+
'/'
);
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
flutterWebSdk
).
path
+
'/'
);
expect
(
residentCompiler
.
platformDill
,
'file:///
Artifact.webPlatformKernelDill.debug
'
);
expect
(
residentCompiler
.
platformDill
,
'file:///
HostArtifact.webPlatformKernelDill
'
);
},
overrides:
<
Type
,
Generator
>{
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
Artifacts
.
test
(),
Artifacts:
()
=>
Artifacts
.
test
(),
FileSystem:
()
=>
MemoryFileSystem
.
test
(),
FileSystem:
()
=>
MemoryFileSystem
.
test
(),
...
@@ -2136,12 +2136,12 @@ void main() {
...
@@ -2136,12 +2136,12 @@ void main() {
expect
(
residentCompiler
.
initializeFromDill
,
expect
(
residentCompiler
.
initializeFromDill
,
globals
.
fs
.
path
.
join
(
getBuildDirectory
(),
'825b8f791aa86c5057fff6f064542c54.cache.dill'
));
globals
.
fs
.
path
.
join
(
getBuildDirectory
(),
'825b8f791aa86c5057fff6f064542c54.cache.dill'
));
expect
(
residentCompiler
.
librariesSpec
,
expect
(
residentCompiler
.
librariesSpec
,
globals
.
fs
.
file
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebLibrariesJson
))
globals
.
fs
.
file
(
globals
.
artifacts
.
get
HostArtifact
(
Host
Artifact
.
flutterWebLibrariesJson
))
.
uri
.
toString
());
.
uri
.
toString
());
expect
(
residentCompiler
.
targetModel
,
TargetModel
.
dartdevc
);
expect
(
residentCompiler
.
targetModel
,
TargetModel
.
dartdevc
);
expect
(
residentCompiler
.
sdkRoot
,
expect
(
residentCompiler
.
sdkRoot
,
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
flutterWebSdk
,
mode:
BuildMode
.
debug
)
+
'/'
);
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
flutterWebSdk
).
path
+
'/'
);
expect
(
residentCompiler
.
platformDill
,
'file:///
Artifact.webPlatformSoundKernelDill.debug
'
);
expect
(
residentCompiler
.
platformDill
,
'file:///
HostArtifact.webPlatformSoundKernelDill
'
);
},
overrides:
<
Type
,
Generator
>{
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
Artifacts
.
test
(),
Artifacts:
()
=>
Artifacts
.
test
(),
FileSystem:
()
=>
MemoryFileSystem
.
test
(),
FileSystem:
()
=>
MemoryFileSystem
.
test
(),
...
...
packages/flutter_tools/test/general.shard/web/devfs_web_test.dart
View file @
b30d97a6
...
@@ -639,13 +639,13 @@ void main() {
...
@@ -639,13 +639,13 @@ void main() {
final
Uri
uri
=
await
webDevFS
.
create
();
final
Uri
uri
=
await
webDevFS
.
create
();
webDevFS
.
webAssetServer
.
entrypointCacheDirectory
=
globals
.
fs
.
currentDirectory
;
webDevFS
.
webAssetServer
.
entrypointCacheDirectory
=
globals
.
fs
.
currentDirectory
;
final
String
webPrecompiledSdk
=
globals
.
artifacts
final
String
webPrecompiledSdk
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSdk
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSdk
).
path
;
final
String
webPrecompiledSdkSourcemaps
=
globals
.
artifacts
final
String
webPrecompiledSdkSourcemaps
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSdkSourcemaps
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSdkSourcemaps
).
path
;
final
String
webPrecompiledCanvaskitSdk
=
globals
.
artifacts
final
String
webPrecompiledCanvaskitSdk
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSdk
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSdk
).
path
;
final
String
webPrecompiledCanvaskitSdkSourcemaps
=
globals
.
artifacts
final
String
webPrecompiledCanvaskitSdkSourcemaps
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSdkSourcemaps
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSdkSourcemaps
).
path
;
globals
.
fs
.
currentDirectory
globals
.
fs
.
currentDirectory
.
childDirectory
(
'lib'
)
.
childDirectory
(
'lib'
)
.
childFile
(
'web_entrypoint.dart'
)
.
childFile
(
'web_entrypoint.dart'
)
...
@@ -762,13 +762,13 @@ void main() {
...
@@ -762,13 +762,13 @@ void main() {
..
createSync
(
recursive:
true
)
..
createSync
(
recursive:
true
)
..
writeAsStringSync
(
'GENERATED'
);
..
writeAsStringSync
(
'GENERATED'
);
final
String
webPrecompiledSdk
=
globals
.
artifacts
final
String
webPrecompiledSdk
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSoundSdk
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSoundSdk
).
path
;
final
String
webPrecompiledSdkSourcemaps
=
globals
.
artifacts
final
String
webPrecompiledSdkSourcemaps
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledSoundSdkSourcemaps
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledSoundSdkSourcemaps
).
path
;
final
String
webPrecompiledCanvaskitSdk
=
globals
.
artifacts
final
String
webPrecompiledCanvaskitSdk
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSoundSdk
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSoundSdk
).
path
;
final
String
webPrecompiledCanvaskitSdkSourcemaps
=
globals
.
artifacts
final
String
webPrecompiledCanvaskitSdkSourcemaps
=
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
webPrecompiledCanvaskitSoundSdkSourcemaps
)
;
.
get
HostArtifact
(
HostArtifact
.
webPrecompiledCanvaskitSoundSdkSourcemaps
).
path
;
globals
.
fs
.
file
(
webPrecompiledSdk
)
globals
.
fs
.
file
(
webPrecompiledSdk
)
..
createSync
(
recursive:
true
)
..
createSync
(
recursive:
true
)
..
writeAsStringSync
(
'HELLO'
);
..
writeAsStringSync
(
'HELLO'
);
...
...
packages/flutter_tools/test/integration.shard/generated_plugin_registrant_test.dart
View file @
b30d97a6
...
@@ -233,7 +233,7 @@ Future<void> _analyzeProject(Directory workingDir) async {
...
@@ -233,7 +233,7 @@ Future<void> _analyzeProject(Directory workingDir) async {
];
];
final
ProcessResult
exec
=
await
Process
.
run
(
final
ProcessResult
exec
=
await
Process
.
run
(
globals
.
artifacts
.
get
ArtifactPath
(
Artifact
.
engineDartBinary
)
,
globals
.
artifacts
.
get
HostArtifact
(
HostArtifact
.
engineDartBinary
).
path
,
args
,
args
,
workingDirectory:
workingDir
.
path
,
workingDirectory:
workingDir
.
path
,
);
);
...
...
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