Skip to content

Commit

Permalink
Add automatic apk file naming to build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
udenr committed Jan 12, 2024
1 parent 0d2bfdf commit 4cf6653
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ android {
lintOptions {
abortOnError false
}

android.applicationVariants.configureEach { variant ->
variant.outputs.all {
def appName = "pfa-pain-diary"
outputFileName = appName + "-${variant.name}-v${variant.versionName}.apk"
}
}
}

dependencies {
Expand Down

0 comments on commit 4cf6653

Please sign in to comment.