From 4c18633c364491a1d699f92f1bc519517632d709 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 2 Jan 2023 02:50:32 +0100 Subject: [PATCH] build: name output files Signed-off-by: oSumAtrIX --- app/build.gradle.kts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f07e39f1..23239f63 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -22,7 +22,17 @@ android { buildTypes { release { isMinifyEnabled = true - proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + applicationVariants.all { + outputs.all { + this as com.android.build.gradle.internal.api.ApkVariantOutputImpl + + outputFileName = "${rootProject.name}-$versionName.apk" + } } } compileOptions {