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
0d83e801
Unverified
Commit
0d83e801
authored
Mar 17, 2022
by
Christopher Fujino
Committed by
GitHub
Mar 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] Null safe update packages (#99357)
parent
c2409797
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
114 deletions
+112
-114
update_packages.dart
packages/flutter_tools/lib/src/commands/update_packages.dart
+110
-112
pub.dart
packages/flutter_tools/lib/src/dart/pub.dart
+2
-2
No files found.
packages/flutter_tools/lib/src/commands/update_packages.dart
View file @
0d83e801
This diff is collapsed.
Click to expand it.
packages/flutter_tools/lib/src/dart/pub.dart
View file @
0d83e801
...
...
@@ -31,7 +31,7 @@ const String _kPubCacheEnvironmentKey = 'PUB_CACHE';
/// (see https://github.com/dart-lang/pub/blob/master/lib/src/exit_codes.dart)
const
int
_kPubExitCodeUnavailable
=
69
;
typedef
MessageFilter
=
String
Function
(
String
message
);
typedef
MessageFilter
=
String
?
Function
(
String
message
);
/// Represents Flutter-specific data that is added to the `PUB_ENVIRONMENT`
/// environment variable and allows understanding the type of requests made to
...
...
@@ -311,7 +311,7 @@ class _DefaultPub implements Pub {
String
lastPubMessage
=
'no message'
;
bool
versionSolvingFailed
=
false
;
String
filterWrapper
(
String
line
)
{
String
?
filterWrapper
(
String
line
)
{
lastPubMessage
=
line
;
if
(
line
.
contains
(
'version solving failed'
))
{
versionSolvingFailed
=
true
;
...
...
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