Reland "Add multidex flag and automatic multidex support (#90944)" (#92049)

This commit is contained in:
Gary Qian
2021-10-19 02:20:39 -07:00
committed by GitHub
parent 34ec94a16d
commit 0407aa4480
22 changed files with 1124 additions and 3 deletions

View File

@@ -818,6 +818,16 @@ abstract class FlutterCommand extends Command<void> {
);
}
void addMultidexOption({ bool hide = false }) {
argParser.addFlag('multidex',
negatable: true,
defaultsTo: true,
help: 'When enabled, indicates that the app should be built with multidex support. This '
'flag adds the dependencies for multidex when the minimum android sdk is 20 or '
'below. For android sdk versions 21 and above, multidex support is native.',
);
}
/// Adds build options common to all of the desktop build commands.
void addCommonDesktopBuildOptions({ @required bool verboseHelp }) {
addBuildModeFlags(verboseHelp: verboseHelp);