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
e5af60c8
Unverified
Commit
e5af60c8
authored
Nov 05, 2019
by
Jonah Williams
Committed by
GitHub
Nov 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove flutter.yaml migration code (#44146)
parent
372fe290
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
user_messages.dart
packages/flutter_tools/lib/src/base/user_messages.dart
+0
-14
flutter_command.dart
packages/flutter_tools/lib/src/runner/flutter_command.dart
+0
-4
No files found.
packages/flutter_tools/lib/src/base/user_messages.dart
View file @
e5af60c8
...
...
@@ -224,20 +224,6 @@ class UserMessages {
'Error: No pubspec.yaml file found.
\n
'
'This command should be run from the root of your Flutter project.
\n
'
'Do not run this command from the root of your git clone of Flutter.'
;
String
get
flutterMergeYamlFiles
=>
'Please merge your flutter.yaml into your pubspec.yaml.
\n\n
'
'We have changed from having separate flutter.yaml and pubspec.yaml
\n
'
'files to having just one pubspec.yaml file. Transitioning is simple:
\n
'
'add a line that just says "flutter:" to your pubspec.yaml file, and
\n
'
'move everything from your current flutter.yaml file into the
\n
'
'pubspec.yaml file, below that line, with everything indented by two
\n
'
'extra spaces compared to how it was in the flutter.yaml file. Then, if
\n
'
'you had a "name:" line, move that to the top of your "pubspec.yaml"
\n
'
'file (you may already have one there), so that there is only one
\n
'
'"name:" line. Finally, delete the flutter.yaml file.
\n\n
'
'For an example of what a new-style pubspec.yaml file might look like,
\n
'
'check out the Flutter Gallery pubspec.yaml:
\n
'
'https://github.com/flutter/flutter/blob/master/examples/flutter_gallery/pubspec.yaml
\n
'
;
String
flutterTargetFileMissing
(
String
path
)
=>
'Target file "
$path
" not found.'
;
String
get
flutterBasePatchFlagsExclusive
=>
'Error: Only one of --baseline, --patch is allowed.'
;
String
get
flutterBaselineRequiresTraceFile
=>
'Error: --baseline requires --compilation-trace-file to be specified.'
;
...
...
packages/flutter_tools/lib/src/runner/flutter_command.dart
View file @
e5af60c8
...
...
@@ -631,10 +631,6 @@ abstract class FlutterCommand extends Command<void> {
throw
ToolExit
(
userMessages
.
flutterNoPubspec
);
}
if
(
fs
.
isFileSync
(
'flutter.yaml'
))
{
throw
ToolExit
(
userMessages
.
flutterMergeYamlFiles
);
}
// Validate the current package map only if we will not be running "pub get" later.
if
(
parent
?.
name
!=
'pub'
&&
!(
_usesPubOption
&&
argResults
[
'pub'
]))
{
final
String
error
=
PackageMap
(
PackageMap
.
globalPackagesPath
).
checkValid
();
...
...
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