From 65c83f6f5bc095f0e64020d2338e6a5915e3bfe6 Mon Sep 17 00:00:00 2001 From: AuTsing <763025696@qq.com> Date: Thu, 20 Jun 2024 04:25:48 +0800 Subject: [PATCH] fix release filename --- app/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index cd3e7f4..ceb4f7c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,3 +1,4 @@ +import com.android.build.gradle.internal.api.BaseVariantOutputImpl import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties plugins { @@ -65,6 +66,13 @@ android { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } + + applicationVariants.all { + outputs.map { it as BaseVariantOutputImpl } + .forEach { + it.outputFileName = "${rootProject.name}_v${versionName}_${buildType.name}.apk" + } + } } dependencies {