diff --git a/app/build.gradle b/app/build.gradle index fc5a3dc..eaaecb5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -65,41 +65,41 @@ } flavorDimensions "env" - - productFlavors { - acc { - dimension "env" - applicationIdSuffix ".acc" - } - - prd { - dimension "env" - } + + productFlavors { + acc { + dimension "env" + applicationIdSuffix ".acc" } - - applicationVariants.all { variant -> - if (variant.buildType.name == "release") { - variant.outputs.each { output -> - // Avoid to rename, so Fastlane default will work for now - //output.outputFile = new File(output.outputFile.parent, output.outputFile.name.replace("app-release.apk", "dappre_${versionName}.${versionCode}.apk")) - - if (variant.getBuildType().isMinifyEnabled()) { - variant.assemble.doLast { - copy { - from variant.mappingFile - into output.outputFile.parent - // Avoid to rename, so Fastlane default will work for now - //rename { - // String fileName -> - // "mapping_${versionName}.${versionCode}.txt" - //} - } + + prd { + dimension "env" + } + } + + applicationVariants.all { variant -> + if (variant.buildType.name == "release") { + variant.outputs.each { output -> + // Avoid to rename, so Fastlane default will work for now + //output.outputFile = new File(output.outputFile.parent, output.outputFile.name.replace("app-release.apk", "dappre_${versionName}.${versionCode}.apk")) + + if (variant.getBuildType().isMinifyEnabled()) { + variant.assemble.doLast { + copy { + from variant.mappingFile + into output.outputFile.parent + // Avoid to rename, so Fastlane default will work for now + //rename { + // String fileName -> + // "mapping_${versionName}.${versionCode}.txt" + //} } } } } } } +} dependencies { //compile fileTree(dir: 'libs', include: ['*.jar'])