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
a21c93dd
Unverified
Commit
a21c93dd
authored
Apr 24, 2018
by
Alexander Aprelev
Committed by
GitHub
Apr 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix boolean flag parsing in gradle. Track 'trackWidgetCreation' as property of the build. (#16901)
parent
c7ee37a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+4
-3
bundle.dart
packages/flutter_tools/lib/src/bundle.dart
+1
-0
No files found.
packages/flutter_tools/gradle/flutter.gradle
View file @
a21c93dd
...
...
@@ -258,7 +258,7 @@ class FlutterPlugin implements Plugin<Project> {
Boolean
previewDart2Value
=
false
if
(
project
.
hasProperty
(
'preview-dart-2'
))
{
previewDart2Value
=
project
.
property
(
'preview-dart-2'
)
previewDart2Value
=
project
.
property
(
'preview-dart-2'
)
.
toBoolean
()
}
String
[]
fileSystemRootsValue
=
null
if
(
project
.
hasProperty
(
'filesystem-roots'
))
{
...
...
@@ -270,8 +270,9 @@ class FlutterPlugin implements Plugin<Project> {
}
Boolean
trackWidgetCreationValue
=
false
if
(
project
.
hasProperty
(
'track-widget-creation'
))
{
trackWidgetCreationValue
=
project
.
property
(
'track-widget-creation'
)
trackWidgetCreationValue
=
project
.
property
(
'track-widget-creation'
)
.
toBoolean
()
}
String
extraFrontEndOptionsValue
=
null
if
(
project
.
hasProperty
(
'extra-front-end-options'
))
{
extraFrontEndOptionsValue
=
project
.
property
(
'extra-front-end-options'
)
...
...
@@ -282,7 +283,7 @@ class FlutterPlugin implements Plugin<Project> {
}
Boolean
preferSharedLibraryValue
=
false
if
(
project
.
hasProperty
(
'prefer-shared-library'
))
{
preferSharedLibraryValue
=
project
.
property
(
'prefer-shared-library'
)
preferSharedLibraryValue
=
project
.
property
(
'prefer-shared-library'
)
.
toBoolean
()
}
String
targetPlatformValue
=
null
if
(
project
.
hasProperty
(
'target-platform'
))
{
...
...
packages/flutter_tools/lib/src/bundle.dart
View file @
a21c93dd
...
...
@@ -85,6 +85,7 @@ Future<void> build({
..
add
(
mainPath
);
final
Map
<
String
,
String
>
properties
=
<
String
,
String
>{
'entryPoint'
:
mainPath
,
'trackWidgetCreation'
:
trackWidgetCreation
.
toString
(),
};
return
new
Fingerprint
.
fromBuildInputs
(
properties
,
compilerInputPaths
);
}
...
...
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