From 619e39cdc61143764801ec936d9460d68e5c80ea Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 28 Jun 2025 14:50:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 2810eec..6e29aa9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -52,6 +52,14 @@ android { path file("src/main/cpp/CMakeLists.txt") } } + + applicationVariants.all { variant -> + variant.outputs.all { output -> + def versionName = variant.versionName ?: "1.0" + def versionCode = variant.versionCode ?: 1 + output.outputFileName = "app-${variant.applicationId}-v${versionName}-${versionCode}.apk" + } + } } dependencies {