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
cd294666
Unverified
Commit
cd294666
authored
Dec 14, 2020
by
hy
Committed by
GitHub
Dec 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --dart-define option support to build aar command (#71829)
parent
cd452286
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
build_aar.dart
packages/flutter_tools/lib/src/commands/build_aar.dart
+1
-0
build_aar_test.dart
...r_tools/test/commands.shard/permeable/build_aar_test.dart
+2
-0
No files found.
packages/flutter_tools/lib/src/commands/build_aar.dart
View file @
cd294666
...
...
@@ -40,6 +40,7 @@ class BuildAarCommand extends BuildSubCommand {
usesPubOption
();
addSplitDebugInfoOption
();
addDartObfuscationOption
();
usesDartDefineOption
();
usesTrackWidgetCreation
(
verboseHelp:
false
);
addNullSafetyModeOptions
(
hide:
!
verboseHelp
);
addEnableExperimentation
(
hide:
!
verboseHelp
);
...
...
packages/flutter_tools/test/commands.shard/permeable/build_aar_test.dart
View file @
cd294666
...
...
@@ -176,6 +176,7 @@ void main() {
'--split-debug-info'
,
'/project-name/v1.2.3/'
,
'--obfuscate'
,
'--dart-define=foo=bar'
],
);
...
...
@@ -196,6 +197,7 @@ void main() {
expect
(
buildInfo
.
flavor
,
'free'
);
expect
(
buildInfo
.
splitDebugInfoPath
,
'/project-name/v1.2.3/'
);
expect
(
buildInfo
.
dartObfuscation
,
isTrue
);
expect
(
buildInfo
.
dartDefines
.
contains
(
'foo=bar'
),
isTrue
);
},
overrides:
<
Type
,
Generator
>{
AndroidBuilder:
()
=>
mockAndroidBuilder
,
});
...
...
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