From 4cf6653dc2fced5da3271d14b77490fea77a11a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=A4nge?= Date: Fri, 12 Jan 2024 15:23:34 +0100 Subject: [PATCH] Add automatic apk file naming to build.gradle --- app/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index fa7b016..8666ad2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 {