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
fa0782b6
Unverified
Commit
fa0782b6
authored
Aug 23, 2021
by
Jonah Williams
Committed by
GitHub
Aug 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reassign jonahwilliams todos (#88707)
parent
adb25e18
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
38 additions
and
42 deletions
+38
-42
allowlist.dart
dev/bots/allowlist.dart
+1
-1
animation_controller.dart
packages/flutter/lib/src/animation/animation_controller.dart
+1
-1
editable.dart
packages/flutter/lib/src/rendering/editable.dart
+1
-1
binding.dart
packages/flutter/lib/src/semantics/binding.dart
+1
-1
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+0
-1
macos_assemble.sh
packages/flutter_tools/bin/macos_assemble.sh
+1
-1
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+2
-2
build_info.dart
packages/flutter_tools/lib/src/build_info.dart
+2
-2
build_system.dart
...ages/flutter_tools/lib/src/build_system/build_system.dart
+1
-1
ios.dart
packages/flutter_tools/lib/src/build_system/targets/ios.dart
+3
-3
web.dart
packages/flutter_tools/lib/src/build_system/targets/web.dart
+1
-1
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+1
-1
test.dart
packages/flutter_tools/lib/src/commands/test.dart
+0
-1
compile.dart
packages/flutter_tools/lib/src/compile.dart
+2
-2
pub.dart
packages/flutter_tools/lib/src/dart/pub.dart
+1
-1
flutter_cache.dart
packages/flutter_tools/lib/src/flutter_cache.dart
+1
-1
application_package.dart
...es/flutter_tools/lib/src/fuchsia/application_package.dart
+2
-2
fuchsia_build.dart
packages/flutter_tools/lib/src/fuchsia/fuchsia_build.dart
+1
-1
fuchsia_kernel_compiler.dart
...lutter_tools/lib/src/fuchsia/fuchsia_kernel_compiler.dart
+1
-1
fuchsia_sdk.dart
packages/flutter_tools/lib/src/fuchsia/fuchsia_sdk.dart
+1
-1
devfs_web.dart
packages/flutter_tools/lib/src/isolated/devfs_web.dart
+1
-1
build_macos.dart
packages/flutter_tools/lib/src/macos/build_macos.dart
+1
-1
platform_plugins.dart
packages/flutter_tools/lib/src/platform_plugins.dart
+1
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+2
-2
run_hot.dart
packages/flutter_tools/lib/src/run_hot.dart
+1
-1
local_engine.dart
packages/flutter_tools/lib/src/runner/local_engine.dart
+1
-1
web_test_compiler.dart
packages/flutter_tools/lib/src/test/web_test_compiler.dart
+1
-1
android_device_start_test.dart
...test/general.shard/android/android_device_start_test.dart
+0
-2
gradle_test.dart
...flutter_tools/test/general.shard/android/gradle_test.dart
+1
-1
cache_test.dart
packages/flutter_tools/test/general.shard/cache_test.dart
+2
-2
ios_device_start_nonprebuilt_test.dart
.../general.shard/ios/ios_device_start_nonprebuilt_test.dart
+1
-1
project_test.dart
packages/flutter_tools/test/general.shard/project_test.dart
+1
-1
overall_experience_test.dart
...tools/test/integration.shard/overall_experience_test.dart
+1
-1
No files found.
dev/bots/allowlist.dart
View file @
fa0782b6
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
/// the SDK pins to an exact version.
/// the SDK pins to an exact version.
///
///
/// Before adding a new Dart Team owned dependency to this set, please clear with natebosch@
/// Before adding a new Dart Team owned dependency to this set, please clear with natebosch@
/// or jakemac53@. For other packages please contact hixie@ or
jonahwilliams
@ .
/// or jakemac53@. For other packages please contact hixie@ or
zanderso
@ .
const
Set
<
String
>
kCorePackageAllowList
=
<
String
>{
const
Set
<
String
>
kCorePackageAllowList
=
<
String
>{
'characters'
,
'characters'
,
'clock'
,
'clock'
,
...
...
packages/flutter/lib/src/animation/animation_controller.dart
View file @
fa0782b6
...
@@ -693,7 +693,7 @@ class AnimationController extends Animation<double>
...
@@ -693,7 +693,7 @@ class AnimationController extends Animation<double>
if
(
SemanticsBinding
.
instance
!.
disableAnimations
)
{
if
(
SemanticsBinding
.
instance
!.
disableAnimations
)
{
switch
(
behavior
)
{
switch
(
behavior
)
{
case
AnimationBehavior
.
normal
:
case
AnimationBehavior
.
normal
:
// TODO(
jonahwilliams
): determine a better process for setting velocity.
// TODO(
zanderso
): determine a better process for setting velocity.
// the value below was arbitrarily chosen because it worked for the drawer widget.
// the value below was arbitrarily chosen because it worked for the drawer widget.
scale
=
200.0
;
scale
=
200.0
;
break
;
break
;
...
...
packages/flutter/lib/src/rendering/editable.dart
View file @
fa0782b6
...
@@ -2983,7 +2983,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
...
@@ -2983,7 +2983,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
//
//
// Includes newline characters from ASCII and separators from the
// Includes newline characters from ASCII and separators from the
// [unicode separator category](https://www.compart.com/en/unicode/category/Zs)
// [unicode separator category](https://www.compart.com/en/unicode/category/Zs)
// TODO(
jonahwilliams
): replace when we expose this ICU information.
// TODO(
zanderso
): replace when we expose this ICU information.
bool
_onlyWhitespace
(
TextRange
range
)
{
bool
_onlyWhitespace
(
TextRange
range
)
{
for
(
int
i
=
range
.
start
;
i
<
range
.
end
;
i
++)
{
for
(
int
i
=
range
.
start
;
i
<
range
.
end
;
i
++)
{
final
int
codeUnit
=
text
!.
codeUnitAt
(
i
)!;
final
int
codeUnit
=
text
!.
codeUnitAt
(
i
)!;
...
...
packages/flutter/lib/src/semantics/binding.dart
View file @
fa0782b6
...
@@ -11,7 +11,7 @@ import 'debug.dart';
...
@@ -11,7 +11,7 @@ import 'debug.dart';
export
'dart:ui'
show
AccessibilityFeatures
;
export
'dart:ui'
show
AccessibilityFeatures
;
/// The glue between the semantics layer and the Flutter engine.
/// The glue between the semantics layer and the Flutter engine.
// TODO(
jonahwilliams
): move the remaining semantic related bindings here.
// TODO(
zanderso
): move the remaining semantic related bindings here.
mixin
SemanticsBinding
on
BindingBase
{
mixin
SemanticsBinding
on
BindingBase
{
/// The current [SemanticsBinding], if one has been created.
/// The current [SemanticsBinding], if one has been created.
static
SemanticsBinding
?
get
instance
=>
_instance
;
static
SemanticsBinding
?
get
instance
=>
_instance
;
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
fa0782b6
...
@@ -1842,7 +1842,6 @@ class _MatchesSemanticsData extends Matcher {
...
@@ -1842,7 +1842,6 @@ class _MatchesSemanticsData extends Matcher {
@override
@override
bool
matches
(
dynamic
node
,
Map
<
dynamic
,
dynamic
>
matchState
)
{
bool
matches
(
dynamic
node
,
Map
<
dynamic
,
dynamic
>
matchState
)
{
// TODO(jonahwilliams): remove dynamic once we have removed getSemanticsData.
if
(
node
==
null
)
if
(
node
==
null
)
return
failWithDescription
(
matchState
,
'No SemanticsData provided. '
return
failWithDescription
(
matchState
,
'No SemanticsData provided. '
'Maybe you forgot to enable semantics?'
);
'Maybe you forgot to enable semantics?'
);
...
...
packages/flutter_tools/bin/macos_assemble.sh
View file @
fa0782b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE file.
# TODO(
jonahwilliams
): refactor this and xcode_backend.sh into one script
# TODO(
zanderso
): refactor this and xcode_backend.sh into one script
# once iOS is using 'assemble'.
# once iOS is using 'assemble'.
RunCommand
()
{
RunCommand
()
{
if
[[
-n
"
$VERBOSE_SCRIPT_LOGGING
"
]]
;
then
if
[[
-n
"
$VERBOSE_SCRIPT_LOGGING
"
]]
;
then
...
...
packages/flutter_tools/lib/src/artifacts.dart
View file @
fa0782b6
...
@@ -565,7 +565,7 @@ class CachedArtifacts implements Artifacts {
...
@@ -565,7 +565,7 @@ class CachedArtifacts implements Artifacts {
case
Artifact
.
windowsDesktopPath
:
case
Artifact
.
windowsDesktopPath
:
case
Artifact
.
flutterMacOSPodspec
:
case
Artifact
.
flutterMacOSPodspec
:
case
Artifact
.
linuxHeaders
:
case
Artifact
.
linuxHeaders
:
// TODO(
jonahwilliams
): remove once debug desktop artifacts are uploaded
// TODO(
zanderso
): remove once debug desktop artifacts are uploaded
// under a separate directory from the host artifacts.
// under a separate directory from the host artifacts.
// https://github.com/flutter/flutter/issues/38935
// https://github.com/flutter/flutter/issues/38935
String
platformDirName
=
_enginePlatformDirectoryName
(
platform
);
String
platformDirName
=
_enginePlatformDirectoryName
(
platform
);
...
@@ -610,7 +610,7 @@ class CachedArtifacts implements Artifacts {
...
@@ -610,7 +610,7 @@ class CachedArtifacts implements Artifacts {
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
windows_x64
:
case
TargetPlatform
.
windows_x64
:
// TODO(
jonahwilliams
): remove once debug desktop artifacts are uploaded
// TODO(
zanderso
): remove once debug desktop artifacts are uploaded
// under a separate directory from the host artifacts.
// under a separate directory from the host artifacts.
// https://github.com/flutter/flutter/issues/38935
// https://github.com/flutter/flutter/issues/38935
if
(
mode
==
BuildMode
.
debug
||
mode
==
null
)
{
if
(
mode
==
BuildMode
.
debug
||
mode
==
null
)
{
...
...
packages/flutter_tools/lib/src/build_info.dart
View file @
fa0782b6
...
@@ -36,7 +36,7 @@ class BuildInfo {
...
@@ -36,7 +36,7 @@ class BuildInfo {
List
<
String
>?
dartExperiments
,
List
<
String
>?
dartExperiments
,
required
this
.
treeShakeIcons
,
required
this
.
treeShakeIcons
,
this
.
performanceMeasurementFile
,
this
.
performanceMeasurementFile
,
this
.
packagesPath
=
'.packages'
,
// TODO(
jonahwilliams
): make this required and remove the default.
this
.
packagesPath
=
'.packages'
,
// TODO(
zanderso
): make this required and remove the default.
this
.
nullSafetyMode
=
NullSafetyMode
.
sound
,
this
.
nullSafetyMode
=
NullSafetyMode
.
sound
,
this
.
codeSizeDirectory
,
this
.
codeSizeDirectory
,
this
.
androidGradleDaemon
=
true
,
this
.
androidGradleDaemon
=
true
,
...
@@ -534,7 +534,7 @@ enum DarwinArch {
...
@@ -534,7 +534,7 @@ enum DarwinArch {
x86_64
,
x86_64
,
}
}
// TODO(
jonahwilliams
): replace all android TargetPlatform usage with AndroidArch.
// TODO(
zanderso
): replace all android TargetPlatform usage with AndroidArch.
enum
AndroidArch
{
enum
AndroidArch
{
armeabi_v7a
,
armeabi_v7a
,
arm64_v8a
,
arm64_v8a
,
...
...
packages/flutter_tools/lib/src/build_system/build_system.dart
View file @
fa0782b6
...
@@ -860,7 +860,7 @@ class _BuildInstance {
...
@@ -860,7 +860,7 @@ class _BuildInstance {
ErrorHandlingFileSystem
.
deleteIfExists
(
previousFile
);
ErrorHandlingFileSystem
.
deleteIfExists
(
previousFile
);
}
}
}
on
Exception
catch
(
exception
,
stackTrace
)
{
}
on
Exception
catch
(
exception
,
stackTrace
)
{
// TODO(
jonahwilliams
): throw specific exception for expected errors to mark
// TODO(
zanderso
): throw specific exception for expected errors to mark
// as non-fatal. All others should be fatal.
// as non-fatal. All others should be fatal.
node
.
target
.
clearStamp
(
environment
);
node
.
target
.
clearStamp
(
environment
);
succeeded
=
false
;
succeeded
=
false
;
...
...
packages/flutter_tools/lib/src/build_system/targets/ios.dart
View file @
fa0782b6
...
@@ -140,7 +140,7 @@ class AotAssemblyRelease extends AotAssemblyBase {
...
@@ -140,7 +140,7 @@ class AotAssemblyRelease extends AotAssemblyBase {
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
hostArtifact
(
HostArtifact
.
engineDartBinary
),
Source
.
hostArtifact
(
HostArtifact
.
engineDartBinary
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
// TODO(
jonahwilliams
): cannot reference gen_snapshot with artifacts since
// TODO(
zanderso
): 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
// split into gen_snapshot_arm64 and gen_snapshot_armv7.
// split into gen_snapshot_arm64 and gen_snapshot_armv7.
// Source.artifact(Artifact.genSnapshot,
// Source.artifact(Artifact.genSnapshot,
...
@@ -175,7 +175,7 @@ class AotAssemblyProfile extends AotAssemblyBase {
...
@@ -175,7 +175,7 @@ class AotAssemblyProfile extends AotAssemblyBase {
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
pattern
(
'{BUILD_DIR}/app.dill'
),
Source
.
hostArtifact
(
HostArtifact
.
engineDartBinary
),
Source
.
hostArtifact
(
HostArtifact
.
engineDartBinary
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
Source
.
artifact
(
Artifact
.
skyEnginePath
),
// TODO(
jonahwilliams
): cannot reference gen_snapshot with artifacts since
// TODO(
zanderso
): 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
// split into gen_snapshot_arm64 and gen_snapshot_armv7.
// split into gen_snapshot_arm64 and gen_snapshot_armv7.
// Source.artifact(Artifact.genSnapshot,
// Source.artifact(Artifact.genSnapshot,
...
@@ -502,7 +502,7 @@ abstract class IosAssetBundle extends Target {
...
@@ -502,7 +502,7 @@ abstract class IosAssetBundle extends Target {
);
);
// Copy the plist from either the project or module.
// Copy the plist from either the project or module.
// TODO(
jonahwilliams
): add plist to inputs
// TODO(
zanderso
): add plist to inputs
final
FlutterProject
flutterProject
=
FlutterProject
.
fromDirectory
(
environment
.
projectDir
);
final
FlutterProject
flutterProject
=
FlutterProject
.
fromDirectory
(
environment
.
projectDir
);
flutterProject
.
ios
.
appFrameworkInfoPlist
flutterProject
.
ios
.
appFrameworkInfoPlist
.
copySync
(
environment
.
outputDir
.
copySync
(
environment
.
outputDir
...
...
packages/flutter_tools/lib/src/build_system/targets/web.dart
View file @
fa0782b6
...
@@ -100,7 +100,7 @@ class WebEntrypointTarget extends Target {
...
@@ -100,7 +100,7 @@ class WebEntrypointTarget extends Target {
final
String
targetFile
=
environment
.
defines
[
kTargetFile
];
final
String
targetFile
=
environment
.
defines
[
kTargetFile
];
final
bool
hasPlugins
=
environment
.
defines
[
kHasWebPlugins
]
==
'true'
;
final
bool
hasPlugins
=
environment
.
defines
[
kHasWebPlugins
]
==
'true'
;
final
Uri
importUri
=
environment
.
fileSystem
.
file
(
targetFile
).
absolute
.
uri
;
final
Uri
importUri
=
environment
.
fileSystem
.
file
(
targetFile
).
absolute
.
uri
;
// TODO(
jonahwilliams
): support configuration of this file.
// TODO(
zanderso
): support configuration of this file.
const
String
packageFile
=
'.packages'
;
const
String
packageFile
=
'.packages'
;
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
environment
.
fileSystem
.
file
(
packageFile
),
environment
.
fileSystem
.
file
(
packageFile
),
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
fa0782b6
...
@@ -324,7 +324,7 @@ class RunCommand extends RunCommandBase {
...
@@ -324,7 +324,7 @@ class RunCommand extends RunCommandBase {
'results out to "refresh_benchmark.json", and exit. This flag is '
'results out to "refresh_benchmark.json", and exit. This flag is '
'intended for use in generating automated flutter benchmarks.'
,
'intended for use in generating automated flutter benchmarks.'
,
)
)
// TODO(
jonahwilliams
): Off by default with investigating whether this
// TODO(
zanderso
): Off by default with investigating whether this
// is slower for certain use cases.
// is slower for certain use cases.
// See: https://github.com/flutter/flutter/issues/49499
// See: https://github.com/flutter/flutter/issues/49499
..
addFlag
(
'fast-start'
,
..
addFlag
(
'fast-start'
,
...
...
packages/flutter_tools/lib/src/commands/test.dart
View file @
fa0782b6
...
@@ -373,7 +373,6 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
...
@@ -373,7 +373,6 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
collector
=
CoverageCollector
(
collector
=
CoverageCollector
(
verbose:
!
machine
,
verbose:
!
machine
,
libraryPredicate:
(
String
libraryName
)
=>
libraryName
.
contains
(
projectName
),
libraryPredicate:
(
String
libraryName
)
=>
libraryName
.
contains
(
projectName
),
// TODO(jonahwilliams): file bug for incorrect URI handling on windows
packagesPath:
globals
.
fs
.
file
(
buildInfo
.
packagesPath
)
packagesPath:
globals
.
fs
.
file
(
buildInfo
.
packagesPath
)
.
parent
.
parent
.
childFile
(
'.packages'
).
path
.
parent
.
parent
.
childFile
(
'.packages'
).
path
);
);
...
...
packages/flutter_tools/lib/src/compile.dart
View file @
fa0782b6
...
@@ -450,7 +450,7 @@ abstract class ResidentCompiler {
...
@@ -450,7 +450,7 @@ abstract class ResidentCompiler {
String
librariesSpec
,
String
librariesSpec
,
})
=
DefaultResidentCompiler
;
})
=
DefaultResidentCompiler
;
// TODO(
jonahwilliams
): find a better way to configure additional file system
// TODO(
zanderso
): find a better way to configure additional file system
// roots from the runner.
// roots from the runner.
// See: https://github.com/flutter/flutter/issues/50494
// See: https://github.com/flutter/flutter/issues/50494
void
addFileSystemRoot
(
String
root
);
void
addFileSystemRoot
(
String
root
);
...
@@ -708,7 +708,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
...
@@ -708,7 +708,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
if
(
testCompilation
)
if
(
testCompilation
)
'--no-print-incremental-dependencies'
,
'--no-print-incremental-dependencies'
,
'--target=
$targetModel
'
,
'--target=
$targetModel
'
,
// TODO(
jonahwilliams
): remove once this becomes the default behavior
// TODO(
zanderso
): remove once this becomes the default behavior
// in the frontend_server.
// in the frontend_server.
// https://github.com/flutter/flutter/issues/52693
// https://github.com/flutter/flutter/issues/52693
'--debugger-module-names'
,
'--debugger-module-names'
,
...
...
packages/flutter_tools/lib/src/dart/pub.dart
View file @
fa0782b6
...
@@ -412,7 +412,7 @@ class _DefaultPub implements Pub {
...
@@ -412,7 +412,7 @@ class _DefaultPub implements Pub {
/// The command used for running pub.
/// The command used for running pub.
List
<
String
>
_pubCommand
(
List
<
String
>
arguments
)
{
List
<
String
>
_pubCommand
(
List
<
String
>
arguments
)
{
// TODO(
jonahwilliams
): refactor to use artifacts.
// TODO(
zanderso
): refactor to use artifacts.
final
String
sdkPath
=
_fileSystem
.
path
.
joinAll
(<
String
>[
final
String
sdkPath
=
_fileSystem
.
path
.
joinAll
(<
String
>[
Cache
.
flutterRoot
!,
Cache
.
flutterRoot
!,
'bin'
,
'bin'
,
...
...
packages/flutter_tools/lib/src/flutter_cache.dart
View file @
fa0782b6
...
@@ -843,7 +843,7 @@ class IosUsbArtifacts extends CachedArtifact {
...
@@ -843,7 +843,7 @@ class IosUsbArtifacts extends CachedArtifact {
Uri
get
archiveUri
=>
Uri
.
parse
(
'
${cache.storageBaseUrl}
/flutter_infra_release/ios-usb-dependencies
${cache.useUnsignedMacBinaries ? '/unsigned' : ''}
/
$name
/
$version
/
$name
.zip'
);
Uri
get
archiveUri
=>
Uri
.
parse
(
'
${cache.storageBaseUrl}
/flutter_infra_release/ios-usb-dependencies
${cache.useUnsignedMacBinaries ? '/unsigned' : ''}
/
$name
/
$version
/
$name
.zip'
);
}
}
// TODO(
jonahwilliams
): upload debug desktop artifacts to host-debug and
// TODO(
zanderso
): upload debug desktop artifacts to host-debug and
// remove from existing host folder.
// remove from existing host folder.
// https://github.com/flutter/flutter/issues/38935
// https://github.com/flutter/flutter/issues/38935
const
List
<
List
<
String
>>
_windowsDesktopBinaryDirs
=
<
List
<
String
>>[
const
List
<
List
<
String
>>
_windowsDesktopBinaryDirs
=
<
List
<
String
>>[
...
...
packages/flutter_tools/lib/src/fuchsia/application_package.dart
View file @
fa0782b6
...
@@ -48,7 +48,7 @@ class PrebuiltFuchsiaApp extends FuchsiaApp {
...
@@ -48,7 +48,7 @@ class PrebuiltFuchsiaApp extends FuchsiaApp {
PrebuiltFuchsiaApp
({
PrebuiltFuchsiaApp
({
required
String
farArchive
,
required
String
farArchive
,
})
:
_farArchive
=
farArchive
,
})
:
_farArchive
=
farArchive
,
// TODO(z
ra
): Extract the archive and extract the id from meta/package.
// TODO(z
anderso
): Extract the archive and extract the id from meta/package.
super
(
projectBundleId:
farArchive
);
super
(
projectBundleId:
farArchive
);
final
String
_farArchive
;
final
String
_farArchive
;
...
@@ -68,7 +68,7 @@ class BuildableFuchsiaApp extends FuchsiaApp {
...
@@ -68,7 +68,7 @@ class BuildableFuchsiaApp extends FuchsiaApp {
@override
@override
File
farArchive
(
BuildMode
buildMode
)
{
File
farArchive
(
BuildMode
buildMode
)
{
// TODO(z
ra
): Distinguish among build modes.
// TODO(z
anderso
): Distinguish among build modes.
final
String
outDir
=
getFuchsiaBuildDirectory
();
final
String
outDir
=
getFuchsiaBuildDirectory
();
final
String
pkgDir
=
globals
.
fs
.
path
.
join
(
outDir
,
'pkg'
);
final
String
pkgDir
=
globals
.
fs
.
path
.
join
(
outDir
,
'pkg'
);
final
String
appName
=
project
.
project
.
manifest
.
appName
;
final
String
appName
=
project
.
project
.
manifest
.
appName
;
...
...
packages/flutter_tools/lib/src/fuchsia/fuchsia_build.dart
View file @
fa0782b6
...
@@ -173,7 +173,7 @@ void _rewriteCmx(BuildMode mode, String runnerPackageSource, File src, File dst)
...
@@ -173,7 +173,7 @@ void _rewriteCmx(BuildMode mode, String runnerPackageSource, File src, File dst)
dst
.
writeAsStringSync
(
json
.
encode
(
cmx
));
dst
.
writeAsStringSync
(
json
.
encode
(
cmx
));
}
}
// TODO(z
ra
): Allow supplying a signing key.
// TODO(z
anderso
): Allow supplying a signing key.
Future
<
void
>
_buildPackage
(
Future
<
void
>
_buildPackage
(
FuchsiaProject
fuchsiaProject
,
FuchsiaProject
fuchsiaProject
,
String
target
,
// lib/main.dart
String
target
,
// lib/main.dart
...
...
packages/flutter_tools/lib/src/fuchsia/fuchsia_kernel_compiler.dart
View file @
fa0782b6
...
@@ -25,7 +25,7 @@ class FuchsiaKernelCompiler {
...
@@ -25,7 +25,7 @@ class FuchsiaKernelCompiler {
@required
String
target
,
// E.g., lib/main.dart
@required
String
target
,
// E.g., lib/main.dart
BuildInfo
buildInfo
=
BuildInfo
.
debug
,
BuildInfo
buildInfo
=
BuildInfo
.
debug
,
})
async
{
})
async
{
// TODO(z
ra
): Use filesystem root and scheme information from buildInfo.
// TODO(z
anderso
): Use filesystem root and scheme information from buildInfo.
const
String
multiRootScheme
=
'main-root'
;
const
String
multiRootScheme
=
'main-root'
;
final
String
packagesFile
=
fuchsiaProject
.
project
.
packagesFile
.
path
;
final
String
packagesFile
=
fuchsiaProject
.
project
.
packagesFile
.
path
;
final
String
outDir
=
getFuchsiaBuildDirectory
();
final
String
outDir
=
getFuchsiaBuildDirectory
();
...
...
packages/flutter_tools/lib/src/fuchsia/fuchsia_sdk.dart
View file @
fa0782b6
...
@@ -144,7 +144,7 @@ class FuchsiaArtifacts {
...
@@ -144,7 +144,7 @@ class FuchsiaArtifacts {
}
}
// If FUCHSIA_BUILD_DIR is defined, then look for the ssh_config dir
// If FUCHSIA_BUILD_DIR is defined, then look for the ssh_config dir
// relative to it. Next, if FUCHSIA_SSH_CONFIG is defined, then use it.
// relative to it. Next, if FUCHSIA_SSH_CONFIG is defined, then use it.
// TODO(z
ra
): Consider passing the ssh config path in with a flag.
// TODO(z
anderso
): Consider passing the ssh config path in with a flag.
File
sshConfig
;
File
sshConfig
;
if
(
globals
.
platform
.
environment
.
containsKey
(
_kFuchsiaBuildDir
))
{
if
(
globals
.
platform
.
environment
.
containsKey
(
_kFuchsiaBuildDir
))
{
sshConfig
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
sshConfig
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
...
...
packages/flutter_tools/lib/src/isolated/devfs_web.dart
View file @
fa0782b6
...
@@ -824,7 +824,7 @@ class WebDevFS implements DevFS {
...
@@ -824,7 +824,7 @@ class WebDevFS implements DevFS {
nativeNullAssertions:
nativeNullAssertions
,
nativeNullAssertions:
nativeNullAssertions
,
),
),
);
);
// TODO(
jonahwilliams
): refactor the asset code in this and the regular devfs to
// TODO(
zanderso
): refactor the asset code in this and the regular devfs to
// be shared.
// be shared.
if
(
bundle
!=
null
)
{
if
(
bundle
!=
null
)
{
await
writeBundle
(
await
writeBundle
(
...
...
packages/flutter_tools/lib/src/macos/build_macos.dart
View file @
fa0782b6
...
@@ -21,7 +21,7 @@ import 'migrations/remove_macos_framework_link_and_embedding_migration.dart';
...
@@ -21,7 +21,7 @@ import 'migrations/remove_macos_framework_link_and_embedding_migration.dart';
final
RegExp
_anyOutput
=
RegExp
(
'.*'
);
final
RegExp
_anyOutput
=
RegExp
(
'.*'
);
/// Builds the macOS project through xcodebuild.
/// Builds the macOS project through xcodebuild.
// TODO(
jonahwilliams
): refactor to share code with the existing iOS code.
// TODO(
zanderso
): refactor to share code with the existing iOS code.
Future
<
void
>
buildMacOS
({
Future
<
void
>
buildMacOS
({
required
FlutterProject
flutterProject
,
required
FlutterProject
flutterProject
,
required
BuildInfo
buildInfo
,
required
BuildInfo
buildInfo
,
...
...
packages/flutter_tools/lib/src/platform_plugins.dart
View file @
fa0782b6
...
@@ -182,7 +182,7 @@ class IOSPlugin extends PluginPlatform {
...
@@ -182,7 +182,7 @@ class IOSPlugin extends PluginPlatform {
});
});
factory
IOSPlugin
.
fromYaml
(
String
name
,
YamlMap
yaml
)
{
factory
IOSPlugin
.
fromYaml
(
String
name
,
YamlMap
yaml
)
{
assert
(
validate
(
yaml
));
// TODO(
jonahwilliams
): https://github.com/flutter/flutter/issues/67241
assert
(
validate
(
yaml
));
// TODO(
zanderso
): https://github.com/flutter/flutter/issues/67241
return
IOSPlugin
(
return
IOSPlugin
(
name:
name
,
name:
name
,
classPrefix:
''
,
classPrefix:
''
,
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
fa0782b6
...
@@ -96,7 +96,7 @@ class FlutterDevice {
...
@@ -96,7 +96,7 @@ class FlutterDevice {
// a warning message and dump some debug information which can be
// a warning message and dump some debug information which can be
// 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(
zanderso
): consistently provide these flags across platforms.
HostArtifact
platformDillArtifact
;
HostArtifact
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
)
{
...
@@ -335,7 +335,7 @@ class FlutterDevice {
...
@@ -335,7 +335,7 @@ class FlutterDevice {
Future
<
void
>
exitApps
({
Future
<
void
>
exitApps
({
@visibleForTesting
Duration
timeoutDelay
=
const
Duration
(
seconds:
10
),
@visibleForTesting
Duration
timeoutDelay
=
const
Duration
(
seconds:
10
),
})
async
{
})
async
{
// TODO(
jonahwilliams
): https://github.com/flutter/flutter/issues/83127
// TODO(
zanderso
): https://github.com/flutter/flutter/issues/83127
// When updating `flutter attach` to support running without a device,
// When updating `flutter attach` to support running without a device,
// this will need to be changed to fall back to io exit.
// this will need to be changed to fall back to io exit.
return
device
.
stopApp
(
package
,
userIdentifier:
userIdentifier
);
return
device
.
stopApp
(
package
,
userIdentifier:
userIdentifier
);
...
...
packages/flutter_tools/lib/src/run_hot.dart
View file @
fa0782b6
...
@@ -1453,7 +1453,7 @@ class ProjectFileInvalidator {
...
@@ -1453,7 +1453,7 @@ class ProjectFileInvalidator {
packageConfig
=
await
_createPackageConfig
(
packagesPath
);
packageConfig
=
await
_createPackageConfig
(
packagesPath
);
// The frontend_server might be monitoring the package_config.json file,
// The frontend_server might be monitoring the package_config.json file,
// Pub should always produce both files.
// Pub should always produce both files.
// TODO(
jonahwilliams
): remove after https://github.com/flutter/flutter/issues/55249
// TODO(
zanderso
): remove after https://github.com/flutter/flutter/issues/55249
if
(
_fileSystem
.
path
.
basename
(
packagesPath
)
==
'.packages'
)
{
if
(
_fileSystem
.
path
.
basename
(
packagesPath
)
==
'.packages'
)
{
final
File
packageConfigFile
=
_fileSystem
.
file
(
packagesPath
)
final
File
packageConfigFile
=
_fileSystem
.
file
(
packagesPath
)
.
parent
.
childDirectory
(
'.dart_tool'
)
.
parent
.
childDirectory
(
'.dart_tool'
)
...
...
packages/flutter_tools/lib/src/runner/local_engine.dart
View file @
fa0782b6
...
@@ -105,7 +105,7 @@ class LocalEngineLocator {
...
@@ -105,7 +105,7 @@ class LocalEngineLocator {
Future
<
String
?>
_findEngineSourceByPackageConfig
(
String
?
packagePath
)
async
{
Future
<
String
?>
_findEngineSourceByPackageConfig
(
String
?
packagePath
)
async
{
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
_fileSystem
.
file
(
_fileSystem
.
file
(
// TODO(
jonahwilliams
): update to package_config
// TODO(
zanderso
): update to package_config
packagePath
??
_fileSystem
.
path
.
join
(
'.packages'
),
packagePath
??
_fileSystem
.
path
.
join
(
'.packages'
),
),
),
logger:
_logger
,
logger:
_logger
,
...
...
packages/flutter_tools/lib/src/test/web_test_compiler.dart
View file @
fa0782b6
...
@@ -51,7 +51,7 @@ class WebTestCompiler {
...
@@ -51,7 +51,7 @@ class WebTestCompiler {
})
async
{
})
async
{
LanguageVersion
languageVersion
=
LanguageVersion
(
2
,
8
);
LanguageVersion
languageVersion
=
LanguageVersion
(
2
,
8
);
HostArtifact
platformDillArtifact
=
HostArtifact
.
webPlatformSoundKernelDill
;
HostArtifact
platformDillArtifact
=
HostArtifact
.
webPlatformSoundKernelDill
;
// TODO(
jonahwilliams
): to support autodetect this would need to partition the source code into a
// TODO(
zanderso
): 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
);
final
List
<
String
>
extraFrontEndOptions
=
List
<
String
>.
of
(
buildInfo
.
extraFrontEndOptions
);
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
unsound
||
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
autodetect
)
{
if
(
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
unsound
||
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
autodetect
)
{
...
...
packages/flutter_tools/test/general.shard/android/android_device_start_test.dart
View file @
fa0782b6
...
@@ -191,8 +191,6 @@ void main() {
...
@@ -191,8 +191,6 @@ void main() {
processManager
.
addCommand
(
const
FakeCommand
(
processManager
.
addCommand
(
const
FakeCommand
(
command:
<
String
>[
'adb'
,
'-s'
,
'1234'
,
'shell'
,
'pm'
,
'list'
,
'packages'
,
'--user'
,
'10'
,
'FlutterApp'
],
command:
<
String
>[
'adb'
,
'-s'
,
'1234'
,
'shell'
,
'pm'
,
'list'
,
'packages'
,
'--user'
,
'10'
,
'FlutterApp'
],
));
));
// TODO(jonahwilliams): investigate why this doesn't work.
// This doesn't work with the current Android log reader implementation.
processManager
.
addCommand
(
const
FakeCommand
(
processManager
.
addCommand
(
const
FakeCommand
(
command:
<
String
>[
command:
<
String
>[
'adb'
,
'adb'
,
...
...
packages/flutter_tools/test/general.shard/android/gradle_test.dart
View file @
fa0782b6
...
@@ -703,7 +703,7 @@ flutter:
...
@@ -703,7 +703,7 @@ flutter:
legacySettingsDotGradleFiles
.
readAsStringSync
().
split
(
';EOF'
).
map
<
String
>((
String
body
)
=>
body
.
trim
()),
legacySettingsDotGradleFiles
.
readAsStringSync
().
split
(
';EOF'
).
map
<
String
>((
String
body
)
=>
body
.
trim
()),
contains
(
templateSettingsDotGradle
.
readAsStringSync
().
trim
()),
contains
(
templateSettingsDotGradle
.
readAsStringSync
().
trim
()),
);
);
// TODO(
jonahwilliams
): This is an integration test and should be moved to the integration shard.
// TODO(
zanderso
): This is an integration test and should be moved to the integration shard.
},
skip:
true
);
// https://github.com/flutter/flutter/issues/87922
},
skip:
true
);
// https://github.com/flutter/flutter/issues/87922
}
}
...
...
packages/flutter_tools/test/general.shard/cache_test.dart
View file @
fa0782b6
...
@@ -94,7 +94,7 @@ void main() {
...
@@ -94,7 +94,7 @@ void main() {
}
finally
{
}
finally
{
Cache
.
flutterRoot
=
oldRoot
;
Cache
.
flutterRoot
=
oldRoot
;
}
}
// TODO(
jonahwilliams
): implement support for lock so this can be tested with the memory file system.
// TODO(
zanderso
): implement support for lock so this can be tested with the memory file system.
},
skip:
true
);
// https://github.com/flutter/flutter/issues/87923
},
skip:
true
);
// https://github.com/flutter/flutter/issues/87923
testWithoutContext
(
'throws tool exit when lockfile open fails'
,
()
async
{
testWithoutContext
(
'throws tool exit when lockfile open fails'
,
()
async
{
...
@@ -104,7 +104,7 @@ void main() {
...
@@ -104,7 +104,7 @@ void main() {
.
createSync
(
recursive:
true
);
.
createSync
(
recursive:
true
);
expect
(()
async
=>
cache
.
lock
(),
throwsToolExit
());
expect
(()
async
=>
cache
.
lock
(),
throwsToolExit
());
// TODO(
jonahwilliams
): implement support for lock so this can be tested with the memory file system.
// TODO(
zanderso
): implement support for lock so this can be tested with the memory file system.
},
skip:
true
);
// https://github.com/flutter/flutter/issues/87923
},
skip:
true
);
// https://github.com/flutter/flutter/issues/87923
testWithoutContext
(
'should not throw when FLUTTER_ALREADY_LOCKED is set'
,
()
{
testWithoutContext
(
'should not throw when FLUTTER_ALREADY_LOCKED is set'
,
()
{
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_start_nonprebuilt_test.dart
View file @
fa0782b6
...
@@ -214,7 +214,7 @@ void main() {
...
@@ -214,7 +214,7 @@ void main() {
Platform:
()
=>
macPlatform
,
Platform:
()
=>
macPlatform
,
XcodeProjectInterpreter:
()
=>
fakeXcodeProjectInterpreter
,
XcodeProjectInterpreter:
()
=>
fakeXcodeProjectInterpreter
,
Xcode:
()
=>
xcode
,
Xcode:
()
=>
xcode
,
},
skip:
true
);
// TODO(
jonahwilliams
): clean up with https://github.com/flutter/flutter/issues/60675
},
skip:
true
);
// TODO(
zanderso
): clean up with https://github.com/flutter/flutter/issues/60675
});
});
}
}
...
...
packages/flutter_tools/test/general.shard/project_test.dart
View file @
fa0782b6
...
@@ -26,7 +26,7 @@ import '../src/context.dart';
...
@@ -26,7 +26,7 @@ import '../src/context.dart';
import
'../src/fakes.dart'
;
import
'../src/fakes.dart'
;
void
main
(
)
{
void
main
(
)
{
// TODO(
jonahwilliams
): remove once FlutterProject is fully refactored.
// TODO(
zanderso
): remove once FlutterProject is fully refactored.
// this is safe since no tests have expectations on the test logger.
// this is safe since no tests have expectations on the test logger.
final
BufferLogger
logger
=
BufferLogger
.
test
();
final
BufferLogger
logger
=
BufferLogger
.
test
();
...
...
packages/flutter_tools/test/integration.shard/overall_experience_test.dart
View file @
fa0782b6
...
@@ -622,5 +622,5 @@ void main() {
...
@@ -622,5 +622,5 @@ void main() {
''
,
''
,
'Application finished.'
,
'Application finished.'
,
]);
]);
},
skip:
Platform
.
isWindows
);
// TODO(
jonahwilliams
): Re-enable when this test is reliable on device lab, https://github.com/flutter/flutter/issues/81556
},
skip:
Platform
.
isWindows
);
// TODO(
zanderso
): Re-enable when this test is reliable on device lab, https://github.com/flutter/flutter/issues/81556
}
}
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