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
4a2ed22b
Unverified
Commit
4a2ed22b
authored
Jun 06, 2018
by
Stanislav Baranov
Committed by
GitHub
Jun 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propagate flutter tool verbose flag through gradle to flutter build bundle. (#18246)
parent
4bbd4ce9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+10
-0
gradle.dart
packages/flutter_tools/lib/src/android/gradle.dart
+3
-1
No files found.
packages/flutter_tools/gradle/flutter.gradle
View file @
4a2ed22b
...
...
@@ -256,6 +256,10 @@ class FlutterPlugin implements Plugin<Project> {
target
=
project
.
property
(
'target'
)
}
Boolean
verboseValue
=
null
if
(
project
.
hasProperty
(
'verbose'
))
{
verboseValue
=
project
.
property
(
'verbose'
).
toBoolean
()
}
Boolean
previewDart2Value
=
true
if
(
project
.
hasProperty
(
'preview-dart-2'
))
{
previewDart2Value
=
project
.
property
(
'preview-dart-2'
).
toBoolean
()
...
...
@@ -310,6 +314,7 @@ class FlutterPlugin implements Plugin<Project> {
localEngine
this
.
localEngine
localEngineSrcPath
this
.
localEngineSrcPath
targetPath
target
verbose
verboseValue
previewDart2
previewDart2Value
fileSystemRoots
fileSystemRootsValue
fileSystemScheme
fileSystemSchemeValue
...
...
@@ -353,6 +358,8 @@ abstract class BaseFlutterTask extends DefaultTask {
@Input
String
targetPath
@Optional
@Input
Boolean
verbose
@Optional
@Input
Boolean
previewDart2
@Optional
@Input
String
[]
fileSystemRoots
...
...
@@ -442,6 +449,9 @@ abstract class BaseFlutterTask extends DefaultTask {
args
"build"
,
"bundle"
args
"--suppress-analytics"
args
"--target"
,
targetPath
if
(
verbose
)
{
args
"--verbose"
}
if
(
previewDart2
)
{
args
"--preview-dart-2"
}
else
{
...
...
packages/flutter_tools/lib/src/android/gradle.dart
View file @
4a2ed22b
...
...
@@ -314,7 +314,9 @@ Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String ta
final
Status
status
=
logger
.
startProgress
(
'Running
\'
gradlew
$assembleTask
\'
...'
,
expectSlowOperation:
true
);
final
String
gradlePath
=
fs
.
file
(
gradle
).
absolute
.
path
;
final
List
<
String
>
command
=
<
String
>[
gradlePath
];
if
(!
logger
.
isVerbose
)
{
if
(
logger
.
isVerbose
)
{
command
.
add
(
'-Pverbose=true'
);
}
else
{
command
.
add
(
'-q'
);
}
if
(
artifacts
is
LocalEngineArtifacts
)
{
...
...
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