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
2302daa3
Unverified
Commit
2302daa3
authored
Apr 11, 2022
by
Jesús S Guerrero
Committed by
GitHub
Apr 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create when offline style (#101589)
parent
63a6e900
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
flutter_command.dart
packages/flutter_tools/lib/src/runner/flutter_command.dart
+2
-3
create_usage_test.dart
...tools/test/commands.shard/hermetic/create_usage_test.dart
+2
-3
No files found.
packages/flutter_tools/lib/src/runner/flutter_command.dart
View file @
2302daa3
...
...
@@ -1301,11 +1301,10 @@ abstract class FlutterCommand extends Command<void> {
if
(
shouldUpdateCache
)
{
// First always update universal artifacts, as some of these (e.g.
// ios-deploy on macOS) are required to determine `requiredArtifacts`.
bool
offline
;
final
bool
offline
;
if
(
argParser
.
options
.
containsKey
(
'offline'
))
{
offline
=
boolArg
(
'offline'
);
}
else
{
}
else
{
offline
=
false
;
}
await
globals
.
cache
.
updateAll
(<
DevelopmentArtifact
>{
DevelopmentArtifact
.
universal
},
offline:
offline
);
...
...
packages/flutter_tools/test/commands.shard/hermetic/create_usage_test.dart
View file @
2302daa3
...
...
@@ -40,10 +40,9 @@ class FakePub extends Fake implements Pub {
bool
printProgress
=
true
,
})
async
{
fs
.
directory
(
directory
).
childFile
(
'.packages'
).
createSync
();
if
(
offline
==
true
){
if
(
offline
==
true
)
{
calledGetOffline
+=
1
;
}
else
{
}
else
{
calledOnline
+=
1
;
}
}
...
...
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