Fix warning spam when androidAppBundle isn't defined

pull/529/head
Andrew Kahr 2023-03-05 05:05:12 -08:00
parent 5b986000bb
commit 4cf7914f3b
3 changed files with 16 additions and 5 deletions

10
dist/index.js vendored
View File

@ -6612,8 +6612,14 @@ class Input {
return Input.getInput('androidVersionCode') || '';
}
static get androidAppBundle() {
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
const input = Input.getInput('androidAppBundle') || false;
// Only throw warning if defined
let input = Input.getInput('androidAppBundle');
if (input !== undefined) {
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
}
else {
input = 'false';
}
return input === 'true';
}
static get androidExportType() {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -143,8 +143,13 @@ class Input {
}
static get androidAppBundle(): boolean {
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
const input = Input.getInput('androidAppBundle') || false;
// Only throw warning if defined
let input = Input.getInput('androidAppBundle');
if (input !== undefined) {
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
} else {
input = 'false';
}
return input === 'true';
}