Fix defaults (#510)

* Fix defaults

* Use '' as default for androidExportType
This commit is contained in:
AndrewKahr 2023-02-19 20:23:37 -08:00 committed by GitHub
parent f58ac29d5b
commit 7f2782d3ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ inputs:
description: '[Deprecated] Use androidExportType instead. Whether to build .aab instead of .apk'
androidExportType:
required: false
default: 'androidPackage'
default: ''
description:
'The android export type. Should be androidPackage for apk, androidAppBundle for aab, or androidStudioProject for
an android studio project.'
@ -83,11 +83,11 @@ inputs:
description: 'The android target API level.'
androidSymbolType:
required: false
default: 'none'
default: 'public'
description: 'The android symbol type to export. Should be "none", "public" or "debugging".'
sshAgent:
required: false
default: 'public'
default: ''
description: 'SSH Agent path to forward to the container'
gitPrivateToken:
required: false

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

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';