Add aab as alias for appbundle (#143855)

- **Fix #143778 add aab as alias to appbundle**

Fixes #143778
This commit is contained in:
Reid Baker 2024-02-21 13:19:41 -05:00 committed by GitHub
parent bfeaf5a7f2
commit b09a015ff5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -70,6 +70,9 @@ class BuildAppBundleCommand extends BuildSubCommand {
@override
final String name = 'appbundle';
@override
List<String> get aliases => const <String>['aab'];
@override
DeprecationBehavior get deprecationBehavior => boolArg('ignore-deprecation') ? DeprecationBehavior.ignore : DeprecationBehavior.exit;

View file

@ -64,6 +64,12 @@ void main() {
Analytics: () => fakeAnalytics,
});
testUsingContext('alias aab', () async {
final BuildAppBundleCommand command =
BuildAppBundleCommand(logger: BufferLogger.test());
expect(command.aliases, contains('aab'));
});
testUsingContext('build type', () async {
final String projectPath = await createProject(tempDir,
arguments: <String>['--no-pub', '--template=app']);