diff --git a/Tasks/GooglePlayReleaseV4/main.ts b/Tasks/GooglePlayReleaseV4/main.ts index ffcc2d1a..e7fb983d 100644 --- a/Tasks/GooglePlayReleaseV4/main.ts +++ b/Tasks/GooglePlayReleaseV4/main.ts @@ -66,7 +66,7 @@ async function run(): Promise { const userFractionSupplied: boolean = tl.getBoolInput('rolloutToUserFraction'); const userFraction: number = Number(userFractionSupplied ? tl.getInput('userFraction', false) : 1.0); - const uploadMappingFile: boolean = tl.getBoolInput('shouldUploadMappingFile', false) && (action === 'SingleApk' || action === 'SingleBundle'); + const uploadMappingFile: boolean = tl.getBoolInput('shouldUploadMappingFile', false) && (action === 'SingleApk' || action === 'SingleBundle' || action === 'MultiApk'); const mappingFilePattern: string = tl.getInput('mappingFilePath'); const uploadNativeDebugSymbols: boolean = tl.getBoolInput('shouldUploadNativeDebugSymbols', false) && (action === 'SingleApk' || action === 'SingleBundle'); @@ -160,15 +160,21 @@ async function run(): Promise { } if (uploadMappingFile) { - tl.debug(`Mapping file pattern: ${mappingFilePattern}`); - - const mappingFilePath = fileHelper.resolveGlobPath(mappingFilePattern); + + for (const versionCode of versionCodes) { + + const mappingFilePath = fileHelper.resolveGlobPath(mappingFilePattern); tl.checkPath(mappingFilePath, 'Mapping file path'); console.log(tl.loc('FoundDeobfuscationFile', mappingFilePath)); - tl.debug(`Uploading ${mappingFilePath} for version code ${versionCodes[0]}`); - await googleutil.uploadDeobfuscation(edits, mappingFilePath, packageName, versionCodes[0]); - } + tl.debug(`Uploading ${mappingFilePath} for version code ${versionCode]}`); + await googleutil.uploadDeobfuscation(edits, mappingFilePath, packageName, versionCode); + + + } + + + } if (uploadNativeDebugSymbols) { tl.debug(`Native debug symbols file pattern: ${nativeDebugSymbolsFilePattern}`); diff --git a/Tasks/GooglePlayReleaseV4/modules/inputsHelper.ts b/Tasks/GooglePlayReleaseV4/modules/inputsHelper.ts index 3fb49295..6dc8e8ed 100644 --- a/Tasks/GooglePlayReleaseV4/modules/inputsHelper.ts +++ b/Tasks/GooglePlayReleaseV4/modules/inputsHelper.ts @@ -29,7 +29,7 @@ export function getClientKey(): googleutil.ClientKey { return key; } -const actions = ['OnlyStoreListing', 'SingleBundle', 'SingleApk', 'MultiApkAab'] as const; +const actions = ['OnlyStoreListing', 'SingleBundle', 'SingleApk', 'MultiApkAab',"MultiApk"] as const; export type Action = (typeof actions)[number]; /**