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
42ca92c7
Unverified
Commit
42ca92c7
authored
Nov 30, 2017
by
Alexander Aprelev
Committed by
GitHub
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide preview-dart-2 flag. Show only in verbose (#13270)
parent
f7b2d6e7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
build.dart
packages/flutter_tools/lib/src/commands/build.dart
+3
-3
build_aot.dart
packages/flutter_tools/lib/src/commands/build_aot.dart
+2
-2
build_apk.dart
packages/flutter_tools/lib/src/commands/build_apk.dart
+2
-2
build_flx.dart
packages/flutter_tools/lib/src/commands/build_flx.dart
+1
-1
build_ios.dart
packages/flutter_tools/lib/src/commands/build_ios.dart
+3
-2
No files found.
packages/flutter_tools/lib/src/commands/build.dart
View file @
42ca92c7
...
...
@@ -17,9 +17,9 @@ import 'build_ios.dart';
class
BuildCommand
extends
FlutterCommand
{
BuildCommand
({
bool
verboseHelp:
false
})
{
addSubcommand
(
new
BuildApkCommand
());
addSubcommand
(
new
BuildAotCommand
());
addSubcommand
(
new
BuildIOSCommand
());
addSubcommand
(
new
BuildApkCommand
(
verboseHelp:
verboseHelp
));
addSubcommand
(
new
BuildAotCommand
(
verboseHelp:
verboseHelp
));
addSubcommand
(
new
BuildIOSCommand
(
verboseHelp:
verboseHelp
));
addSubcommand
(
new
BuildFlxCommand
(
verboseHelp:
verboseHelp
));
}
...
...
packages/flutter_tools/lib/src/commands/build_aot.dart
View file @
42ca92c7
...
...
@@ -27,7 +27,7 @@ const List<String> kAotSnapshotFiles = const <String>[
];
class
BuildAotCommand
extends
BuildSubCommand
{
BuildAotCommand
()
{
BuildAotCommand
(
{
bool
verboseHelp:
false
}
)
{
usesTargetOption
();
addBuildModeFlags
();
usesPubOption
();
...
...
@@ -39,7 +39,7 @@ class BuildAotCommand extends BuildSubCommand {
)
..
addFlag
(
'interpreter'
)
..
addFlag
(
'quiet'
,
defaultsTo:
false
)
..
addFlag
(
'preview-dart-2'
,
negatable:
false
)
..
addFlag
(
'preview-dart-2'
,
negatable:
false
,
hide:
!
verboseHelp
)
..
addOption
(
FlutterOptions
.
kExtraFrontEndOptions
,
allowMultiple:
true
,
splitCommas:
true
,
...
...
packages/flutter_tools/lib/src/commands/build_apk.dart
View file @
42ca92c7
...
...
@@ -8,14 +8,14 @@ import '../android/apk.dart';
import
'build.dart'
;
class
BuildApkCommand
extends
BuildSubCommand
{
BuildApkCommand
()
{
BuildApkCommand
(
{
bool
verboseHelp:
false
}
)
{
usesTargetOption
();
addBuildModeFlags
();
usesFlavorOption
();
usesPubOption
();
argParser
..
addFlag
(
'preview-dart-2'
,
negatable:
false
)
..
addFlag
(
'preview-dart-2'
,
negatable:
false
,
hide:
!
verboseHelp
)
..
addFlag
(
'prefer-shared-library'
,
negatable:
false
,
help:
'Whether to prefer compiling to a *.so file (android only).'
);
}
...
...
packages/flutter_tools/lib/src/commands/build_flx.dart
View file @
42ca92c7
...
...
@@ -20,7 +20,7 @@ class BuildFlxCommand extends BuildSubCommand {
argParser
.
addOption
(
'output-file'
,
abbr:
'o'
,
defaultsTo:
defaultFlxOutputPath
);
argParser
.
addOption
(
'snapshot'
,
defaultsTo:
defaultSnapshotPath
);
argParser
.
addOption
(
'depfile'
,
defaultsTo:
defaultDepfilePath
);
argParser
.
addFlag
(
'preview-dart-2'
,
negatable:
false
);
argParser
.
addFlag
(
'preview-dart-2'
,
negatable:
false
,
hide:
!
verboseHelp
);
argParser
.
addOption
(
'working-dir'
,
defaultsTo:
getAssetBuildDirectory
());
argParser
.
addFlag
(
'report-licensed-packages'
,
help:
'Whether to report the names of all the packages that are included in the application
\'
s LICENSE file.'
,
defaultsTo:
false
);
usesPubOption
();
...
...
packages/flutter_tools/lib/src/commands/build_ios.dart
View file @
42ca92c7
...
...
@@ -13,7 +13,7 @@ import '../ios/mac.dart';
import
'build.dart'
;
class
BuildIOSCommand
extends
BuildSubCommand
{
BuildIOSCommand
()
{
BuildIOSCommand
(
{
bool
verboseHelp:
false
}
)
{
usesTargetOption
();
usesFlavorOption
();
usesPubOption
();
...
...
@@ -29,7 +29,8 @@ class BuildIOSCommand extends BuildSubCommand {
argParser
.
addFlag
(
'simulator'
,
help:
'Build for the iOS simulator instead of the device.'
);
argParser
.
addFlag
(
'codesign'
,
negatable:
true
,
defaultsTo:
true
,
help:
'Codesign the application bundle (only available on device builds).'
);
argParser
.
addFlag
(
'preview-dart-2'
,
negatable:
false
);
argParser
.
addFlag
(
'preview-dart-2'
,
negatable:
false
,
hide:
!
verboseHelp
);
}
@override
...
...
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