Skip to content

Commit 2dc20ee

Browse files
authored
fix(cli): Android apk name multi flavor dimensions parsing (#7598)
1 parent 5b27fdf commit 2dc20ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/common.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ export async function checkJDKMajorVersion(): Promise<number> {
537537
}
538538

539539
export function parseApkNameFromFlavor(flavor: string): string {
540-
const convertedName = flavor.replace(/([A-Z])/g, '$1').toLowerCase();
540+
let convertedName = flavor.replace(/([A-Z])/g, '-$1').toLowerCase();
541+
542+
if (convertedName.startsWith('-')) convertedName = convertedName.replace('-', '');
543+
541544
return `app-${convertedName ? `${convertedName}-` : ''}debug.apk`;
542545
}

0 commit comments

Comments
 (0)