mirror of
https://github.com/flutter/flutter
synced 2024-08-25 02:46:31 +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
|
@override
|
||||||
final String name = 'appbundle';
|
final String name = 'appbundle';
|
||||||
|
|
||||||
|
@override
|
||||||
|
List<String> get aliases => const <String>['aab'];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
DeprecationBehavior get deprecationBehavior => boolArg('ignore-deprecation') ? DeprecationBehavior.ignore : DeprecationBehavior.exit;
|
DeprecationBehavior get deprecationBehavior => boolArg('ignore-deprecation') ? DeprecationBehavior.ignore : DeprecationBehavior.exit;
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,12 @@ void main() {
|
||||||
Analytics: () => fakeAnalytics,
|
Analytics: () => fakeAnalytics,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
testUsingContext('alias aab', () async {
|
||||||
|
final BuildAppBundleCommand command =
|
||||||
|
BuildAppBundleCommand(logger: BufferLogger.test());
|
||||||
|
expect(command.aliases, contains('aab'));
|
||||||
|
});
|
||||||
|
|
||||||
testUsingContext('build type', () async {
|
testUsingContext('build type', () async {
|
||||||
final String projectPath = await createProject(tempDir,
|
final String projectPath = await createProject(tempDir,
|
||||||
arguments: <String>['--no-pub', '--template=app']);
|
arguments: <String>['--no-pub', '--template=app']);
|
||||||
|
|
Loading…
Reference in a new issue