Support for app flavors in flutter tooling, #11676 retake (#11734)

This commit is contained in:
Mikkel Nygaard Ravn
2017-08-23 10:55:35 +02:00
committed by GitHub
parent e843cb342d
commit 9496e6dfa7
60 changed files with 2042 additions and 154 deletions

View File

@@ -133,6 +133,19 @@ abstract class FlutterCommand extends Command<Null> {
return _defaultBuildMode;
}
void usesFlavorOption() {
argParser.addOption(
'flavor',
help: 'Build a custom app flavor as defined by platform-specific build setup.\n'
'Supports the use of product flavors in Android Gradle scripts.\n'
'Supports the use of custom Xcode schemes.'
);
}
BuildInfo getBuildInfo() {
return new BuildInfo(getBuildMode(), argResults['flavor']);
}
void setupApplicationPackages() {
applicationPackages ??= new ApplicationPackageStore();
}