[Gradle] Add moving app bundles to release folder.

This commit is contained in:
Kuba Szczodrzyński 2021-04-03 15:35:00 +02:00
parent bf595dd09c
commit 5301b4efad

View File

@ -98,7 +98,7 @@ tasks.whenTaskAdded { task ->
if (flavor != "") { if (flavor != "") {
tasks.create(renameTaskName, Copy) { tasks.create(renameTaskName, Copy) {
from file("${projectDir}/${flavor}/release/"), file("${buildDir}/outputs/mapping/${flavor}Release/") from file("${projectDir}/${flavor}/release/"), file("${buildDir}/outputs/mapping/${flavor}Release/"), file("${buildDir}/outputs/apk/${flavor}/release/")
include "*.aab", "*.apk", "mapping.txt", "output-metadata.json" include "*.aab", "*.apk", "mapping.txt", "output-metadata.json"
destinationDir file("${projectDir}/release/") destinationDir file("${projectDir}/release/")
rename ".+?\\.(.+)", "Edziennik_${android.defaultConfig.versionName}_${flavor}." + '$1' rename ".+?\\.(.+)", "Edziennik_${android.defaultConfig.versionName}_${flavor}." + '$1'