Fixed precondition checks for whatsnew and mapping files, to fix issues outlined in #2
This commit is contained in:
@@ -100,7 +100,7 @@ function trackVersionCode(appEdit, options, versionCode) {
|
||||
}
|
||||
function readLocalizedReleaseNotes(whatsNewDir) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (whatsNewDir != undefined) {
|
||||
if (whatsNewDir != undefined && whatsNewDir.length > 0) {
|
||||
const releaseNotes = fs.readdirSync(whatsNewDir).filter(value => /whatsnew-*-*/.test(value));
|
||||
const pattern = /whatsnew-(?<local>.*-.*)/.compile();
|
||||
let localizedReleaseNotes = [];
|
||||
@@ -125,7 +125,7 @@ function readLocalizedReleaseNotes(whatsNewDir) {
|
||||
}
|
||||
function uploadMappingFile(appEdit, versionCode, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (options.mappingFile != undefined) {
|
||||
if (options.mappingFile != undefined && options.mappingFile.length > 0) {
|
||||
const mapping = fs_1.readFileSync(options.mappingFile, 'utf-8');
|
||||
if (mapping != undefined) {
|
||||
core.debug(`[${appEdit.id}, versionCode=${versionCode}, packageName=${options.applicationId}]: Uploading Proguard mapping file @ ${options.mappingFile}`);
|
||||
|
||||
Reference in New Issue
Block a user