Fix warning spam when androidAppBundle isn't defined
parent
5b986000bb
commit
4cf7914f3b
|
|
@ -6612,8 +6612,14 @@ class Input {
|
||||||
return Input.getInput('androidVersionCode') || '';
|
return Input.getInput('androidVersionCode') || '';
|
||||||
}
|
}
|
||||||
static get androidAppBundle() {
|
static get androidAppBundle() {
|
||||||
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
|
// Only throw warning if defined
|
||||||
const input = Input.getInput('androidAppBundle') || false;
|
let input = Input.getInput('androidAppBundle');
|
||||||
|
if (input !== undefined) {
|
||||||
|
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
input = 'false';
|
||||||
|
}
|
||||||
return input === 'true';
|
return input === 'true';
|
||||||
}
|
}
|
||||||
static get androidExportType() {
|
static get androidExportType() {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -143,8 +143,13 @@ class Input {
|
||||||
}
|
}
|
||||||
|
|
||||||
static get androidAppBundle(): boolean {
|
static get androidAppBundle(): boolean {
|
||||||
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
|
// Only throw warning if defined
|
||||||
const input = Input.getInput('androidAppBundle') || false;
|
let input = Input.getInput('androidAppBundle');
|
||||||
|
if (input !== undefined) {
|
||||||
|
core.warning('androidAppBundle is deprecated, please use androidExportType instead');
|
||||||
|
} else {
|
||||||
|
input = 'false';
|
||||||
|
}
|
||||||
|
|
||||||
return input === 'true';
|
return input === 'true';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue