Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions Tasks/GooglePlayReleaseV4/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function run(): Promise<void> {
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');
Expand Down Expand Up @@ -160,15 +160,21 @@ async function run(): Promise<void> {
}

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}`);
Expand Down
2 changes: 1 addition & 1 deletion Tasks/GooglePlayReleaseV4/modules/inputsHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

/**
Expand Down