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
654022ae
Unverified
Commit
654022ae
authored
Aug 18, 2020
by
Albert Viilik
Committed by
GitHub
Aug 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make deprecation notice link to website downloads (#63829)
parent
6b8ab804
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
flutter_command.dart
packages/flutter_tools/lib/src/runner/flutter_command.dart
+3
-1
version_test.dart
...tter_tools/test/commands.shard/hermetic/version_test.dart
+4
-1
No files found.
packages/flutter_tools/lib/src/runner/flutter_command.dart
View file @
654022ae
...
@@ -795,7 +795,9 @@ abstract class FlutterCommand extends Command<void> {
...
@@ -795,7 +795,9 @@ abstract class FlutterCommand extends Command<void> {
void
_printDeprecationWarning
()
{
void
_printDeprecationWarning
()
{
if
(
deprecated
)
{
if
(
deprecated
)
{
globals
.
printStatus
(
'
$warningMark
The "
$name
" command is deprecated and '
globals
.
printStatus
(
'
$warningMark
The "
$name
" command is deprecated and '
'will be removed in a future version of Flutter.'
);
'will be removed in a future version of Flutter. '
'See https://flutter.dev/docs/development/tools/sdk/releases '
'for previous releases of Flutter.'
);
globals
.
printStatus
(
''
);
globals
.
printStatus
(
''
);
}
}
}
}
...
...
packages/flutter_tools/test/commands.shard/hermetic/version_test.dart
View file @
654022ae
...
@@ -43,7 +43,10 @@ void main() {
...
@@ -43,7 +43,10 @@ void main() {
'--no-pub'
,
'--no-pub'
,
]);
]);
expect
(
testLogger
.
statusText
,
equals
(
expect
(
testLogger
.
statusText
,
equals
(
'[!] The "version" command is deprecated and will be removed in a future version of Flutter.
\n\n
'
'[!] The "version" command is deprecated '
'and will be removed in a future version of Flutter. '
'See https://flutter.dev/docs/development/tools/sdk/releases '
'for previous releases of Flutter.
\n\n
'
'v10.0.0
\r\n
v20.0.0
\r\n
30.0.0-dev.0.0
\r\n
31.0.0-0.0.pre
\n
'
'v10.0.0
\r\n
v20.0.0
\r\n
30.0.0-dev.0.0
\r\n
31.0.0-0.0.pre
\n
'
));
));
},
overrides:
<
Type
,
Generator
>{
},
overrides:
<
Type
,
Generator
>{
...
...
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