Skip to content

Commit

Permalink
Build: Adjust output file name
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Oct 28, 2023
1 parent 44b9173 commit 1c19864
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions play-services-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,9 @@ android {
if (file('user.gradle').exists()) {
apply from: 'user.gradle'
}

android.applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFileName = variant.applicationId + "-" + variant.versionName.replaceAll(" \\([a-f0-9]{7}\\)", "") + ".apk"
}
}
6 changes: 6 additions & 0 deletions vending-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ dependencies {
if (file('user.gradle').exists()) {
apply from: 'user.gradle'
}

android.applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFileName = variant.applicationId + "-" + variant.versionName.replaceAll(" \\([a-f0-9]{7}\\)", "") + ".apk"
}
}

0 comments on commit 1c19864

Please sign in to comment.