debug
parent
9098613f4a
commit
a8231c7534
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
|
@ -10,10 +10,16 @@ export default class AndroidVersioning {
|
||||||
}
|
}
|
||||||
|
|
||||||
static versionToVersionCode(version) {
|
static versionToVersionCode(version) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(version);
|
||||||
const [major, minor, patch] = version.split('.');
|
const [major, minor, patch] = version.split('.');
|
||||||
const threeDigitVersion = /^\d+$/.test(patch) ? version : `${major}.0.${minor}`;
|
const threeDigitVersion = /^\d+$/.test(patch) ? version : `${major}.0.${minor}`;
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(threeDigitVersion);
|
||||||
|
|
||||||
const parsedVersion = semver.parse(threeDigitVersion);
|
const parsedVersion = semver.parse(threeDigitVersion);
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(parsedVersion);
|
||||||
if (!parsedVersion) {
|
if (!parsedVersion) {
|
||||||
core.warning(`Could not parse "${version}" to semver, defaulting android version code to 1`);
|
core.warning(`Could not parse "${version}" to semver, defaulting android version code to 1`);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue