mirror of
https://github.com/flutter/flutter
synced 2024-07-16 10:29:14 +00:00
Add aab as alias for appbundle (#143855)
- **Fix #143778 add aab as alias to appbundle** Fixes #143778
This commit is contained in:
parent
bfeaf5a7f2
commit
b09a015ff5
|
@ -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;
|
||||
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue