Skip to content

Commit

Permalink
fix(cli): config file android release type not overridden (#6205)
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-MikeS committed Jan 6, 2023
1 parent dccb0a9 commit 1441c55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ export function runProgram(config: Config): void {
new Option(
'--androidreleasetype <androidreleasetype>',
'Android release type; APK or AAB',
)
.choices(['AAB', 'APK'])
.default('AAB'),
).choices(['AAB', 'APK']),
)
.action(
wrapAction(
Expand Down
3 changes: 2 additions & 1 deletion cli/src/tasks/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export async function buildCommand(
config.android.buildOptions.keystoreAliasPassword,
androidreleasetype:
buildOptions.androidreleasetype ||
config.android.buildOptions.releaseType,
config.android.buildOptions.releaseType ||
'AAB',
};

try {
Expand Down

0 comments on commit 1441c55

Please sign in to comment.