From f3b6627635a14001569d13baf5177371b6b2302d Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 30 Jul 2024 13:48:19 +0200 Subject: [PATCH] Fixed generated APK file name --- app/build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a127bb8f7..2cf6765e3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -64,6 +64,7 @@ task("getGitVersion") { } catch (e: Exception) { println("Git not found [$e], using $gitVersion") } + project.version = gitVersion } project.tasks.preBuild.dependsOn("getGitVersion") @@ -105,7 +106,7 @@ android { variant.outputs .map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl } .forEach { output -> - output.outputFileName = "linphone-android-${variant.buildType.name}-$versionName.apk" + output.outputFileName = "linphone-android-${variant.buildType.name}-${project.version}.apk" } }