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' description: '[Deprecated] Use androidExportType instead. Whether to build .aab instead of .apk'
androidExportType: androidExportType:
required: false required: false
default: ''
description: description:
'The android export type. Should be androidPackage for apk, androidAppBundle for aab, or androidStudioProject for 'The android export type. Should be androidPackage for apk, androidAppBundle for aab, or androidStudioProject for
an android studio project.' an android studio project.'

6
dist/index.js vendored
View File

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

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

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