Support for app flavors in flutter tooling (#11676)

This commit is contained in:
Mikkel Nygaard Ravn
2017-08-22 10:38:23 +02:00
committed by GitHub
parent f25e2f5213
commit 8d07d3f652
59 changed files with 1951 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();
}