Skip to content

Commit

Permalink
Reproducible build: use a proper file name for the apk (again).
Browse files Browse the repository at this point in the history
Part of #418.
  • Loading branch information
dennisguse committed Dec 25, 2024
1 parent 4573273 commit ded98ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ android {
productFlavors {
nightly {
dimension 'version'
applicationIdSuffix '.nightly'
applicationId 'de.dennisguse.opentracks.nightly'
signingConfig signingConfigs.nightly
}
irreproducible {
Expand All @@ -126,13 +126,13 @@ android {
variant.resValue 'string', 'applicationId', variant.applicationId

variant.outputs.configureEach {
if (variant.buildType.name == 'reproducible') {
outputFileName = "${applicationId}_${variant.buildType.name}_${variant.versionName}.apk"
if (variant.flavorName == 'reproducible') {
outputFileName = "${applicationId}_${variant.versionName}.apk"
} else {
outputFileName = "${applicationId}_${variant.buildType.name}_${variant.versionCode}.apk"
outputFileName = "${applicationId}_${variant.versionCode}.apk"
}

if (variant.buildType.name == 'nightly') {
if (variant.flavorName== 'nightly') {
setVersionCodeOverride(getVersionCode())
setVersionNameOverride(getVersionName())
}
Expand Down

0 comments on commit ded98ed

Please sign in to comment.