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' description: '[Deprecated] Use androidExportType instead. Whether to build .aab instead of .apk'
androidExportType: androidExportType:
required: false required: false
default: 'androidPackage' 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.'
@ -83,11 +83,11 @@ inputs:
description: 'The android target API level.' description: 'The android target API level.'
androidSymbolType: androidSymbolType:
required: false required: false
default: 'none' default: 'public'
description: 'The android symbol type to export. Should be "none", "public" or "debugging".' description: 'The android symbol type to export. Should be "none", "public" or "debugging".'
sshAgent: sshAgent:
required: false required: false
default: 'public' default: ''
description: 'SSH Agent path to forward to the container' description: 'SSH Agent path to forward to the container'
gitPrivateToken: gitPrivateToken:
required: false 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() { 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';