Use '' as default for androidExportType

pull/510/head
Andrew Kahr 2023-02-14 01:18:06 -08:00
parent e54d0a9b4b
commit 4842344c7e
4 changed files with 8 additions and 7 deletions

View File

@ -53,6 +53,7 @@ inputs:
description: '[Deprecated] Use androidExportType instead. Whether to build .aab instead of .apk'
androidExportType:
required: false
default: ''
description:
'The android export type. Should be androidPackage for apk, androidAppBundle for aab, or androidStudioProject for
an android studio project.'

6
dist/index.js generated vendored
View File

@ -7231,9 +7231,9 @@ class Input {
}
static get androidExportType() {
// TODO: remove this in V3
const exportType = Input.getInput('androidExportType');
if (exportType) {
return exportType || 'androidPackage';
const exportType = Input.getInput('androidExportType') || '';
if (exportType !== '') {
return exportType;
}
return Input.androidAppBundle ? 'androidAppBundle' : 'androidPackage';
// End TODO

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -142,10 +142,10 @@ class Input {
static get androidExportType() {
// TODO: remove this in V3
const exportType = Input.getInput('androidExportType');
const exportType = Input.getInput('androidExportType') || '';
if (exportType) {
return exportType || 'androidPackage';
if (exportType !== '') {
return exportType;
}
return Input.androidAppBundle ? 'androidAppBundle' : 'androidPackage';