Unverified Commit a2cf9ecc authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] expose track-widget-creation to build aar (#57117)

parent 1c13d665
...@@ -40,6 +40,7 @@ class BuildAarCommand extends BuildSubCommand { ...@@ -40,6 +40,7 @@ class BuildAarCommand extends BuildSubCommand {
usesPubOption(); usesPubOption();
addSplitDebugInfoOption(); addSplitDebugInfoOption();
addDartObfuscationOption(); addDartObfuscationOption();
usesTrackWidgetCreation(verboseHelp: false);
argParser argParser
..addMultiOption( ..addMultiOption(
'target-platform', 'target-platform',
......
...@@ -142,8 +142,10 @@ void main() { ...@@ -142,8 +142,10 @@ void main() {
buildModes.add(buildInfo.mode); buildModes.add(buildInfo.mode);
if (buildInfo.mode.isPrecompiled) { if (buildInfo.mode.isPrecompiled) {
expect(buildInfo.treeShakeIcons, isTrue); expect(buildInfo.treeShakeIcons, isTrue);
expect(buildInfo.trackWidgetCreation, isTrue);
} else { } else {
expect(buildInfo.treeShakeIcons, isFalse); expect(buildInfo.treeShakeIcons, isFalse);
expect(buildInfo.trackWidgetCreation, isTrue);
} }
expect(buildInfo.flavor, isNull); expect(buildInfo.flavor, isNull);
expect(buildInfo.splitDebugInfoPath, isNull); expect(buildInfo.splitDebugInfoPath, isNull);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment