How to use productFlavors for android aab bundles
问题 I try to build different Android app bundles via productFlavors. To keep and test the files I need a fixed file name. For APK's I have the following working code: applicationVariants.all { variant -> if (variant.buildType.name.equals("release")) { variant.outputs.all { output -> outputFileName = "${applicationId}-${versionCode}-${variant.flavorName}.apk" } } if (variant.getBuildType().isMinifyEnabled()) { variant.assemble.doLast { copy { from variant.mappingFile into variant.outputs[0]