forked from firka/flutter
[flutter_tools] expose track-widget-creation to build aar (#57117)
This commit is contained in:
@@ -40,6 +40,7 @@ class BuildAarCommand extends BuildSubCommand {
|
||||
usesPubOption();
|
||||
addSplitDebugInfoOption();
|
||||
addDartObfuscationOption();
|
||||
usesTrackWidgetCreation(verboseHelp: false);
|
||||
argParser
|
||||
..addMultiOption(
|
||||
'target-platform',
|
||||
|
||||
@@ -142,8 +142,10 @@ void main() {
|
||||
buildModes.add(buildInfo.mode);
|
||||
if (buildInfo.mode.isPrecompiled) {
|
||||
expect(buildInfo.treeShakeIcons, isTrue);
|
||||
expect(buildInfo.trackWidgetCreation, isTrue);
|
||||
} else {
|
||||
expect(buildInfo.treeShakeIcons, isFalse);
|
||||
expect(buildInfo.trackWidgetCreation, isTrue);
|
||||
}
|
||||
expect(buildInfo.flavor, isNull);
|
||||
expect(buildInfo.splitDebugInfoPath, isNull);
|
||||
|
||||
Reference in New Issue
Block a user