[flutter_tools] pass --enable-impeller to android (#104014)

This commit is contained in:
Jonah Williams
2022-05-17 15:52:09 -07:00
committed by GitHub
parent 2cbad4b3ae
commit 2ad7ced916
3 changed files with 5 additions and 1 deletions

View File

@@ -652,6 +652,8 @@ class AndroidDevice extends Device {
...<String>['--ez', 'cache-sksl', 'true'],
if (debuggingOptions.purgePersistentCache)
...<String>['--ez', 'purge-persistent-cache', 'true'],
if (debuggingOptions.enableImpeller)
...<String>['--ez', 'enable-impeller', 'true'],
if (debuggingOptions.debuggingEnabled) ...<String>[
if (debuggingOptions.buildInfo.isDebug) ...<String>[
...<String>['--ez', 'enable-checked-mode', 'true'],

View File

@@ -964,7 +964,7 @@ abstract class FlutterCommand extends Command<void> {
negatable: false,
hide: !verboseHelp,
help: 'Whether to enable the experimental Impeller rendering engine. '
'Impeller is currently only supported on iOS. This flag will '
'Impeller is currently only supported on iOS and Android. This flag will '
'be ignored when targeting other platforms.',
);
}