From ded98eddb58486bdff688c937f7f69a8f0838faf Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Wed, 25 Dec 2024 23:30:06 +0100 Subject: [PATCH] Reproducible build: use a proper file name for the apk (again). Part of #418. --- build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 995970ed7..5ee01bd7c 100644 --- a/build.gradle +++ b/build.gradle @@ -104,7 +104,7 @@ android { productFlavors { nightly { dimension 'version' - applicationIdSuffix '.nightly' + applicationId 'de.dennisguse.opentracks.nightly' signingConfig signingConfigs.nightly } irreproducible { @@ -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()) }