From dcd51da757f46e9a5dc9d9f6ec8e8a99f49660a9 Mon Sep 17 00:00:00 2001 From: Peter Storch Date: Sun, 29 Dec 2024 21:40:02 +0100 Subject: [PATCH] fix nightly filename --- build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 79a36bb81..776ccfd2e 100644 --- a/build.gradle +++ b/build.gradle @@ -135,16 +135,16 @@ android { variant.resValue 'string', 'applicationId', variant.applicationId variant.outputs.configureEach { + if (variant.flavorName == 'nightly') { + setVersionCodeOverride(getVersionCode()) + setVersionNameOverride(getVersionName()) + } + if (variant.flavorName == 'reproducible') { outputFileName = "${applicationId}_${variant.versionName}.apk" } else { outputFileName = "${applicationId}_${variant.versionCode}.apk" } - - if (variant.flavorName == 'nightly') { - setVersionCodeOverride(getVersionCode()) - setVersionNameOverride(getVersionName()) - } } }