From ee2fef7c3ae31a8bb946ec066223ff10513a0919 Mon Sep 17 00:00:00 2001 From: BlueMatthew Date: Fri, 19 Jan 2024 22:54:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=8B=E5=AE=9A=E4=B9=89=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 10 ++++++++++ mpmaster/build.gradle | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 7e902fb6..e2866610 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,6 +46,16 @@ android { debug { jniDebuggable true testCoverageEnabled false + + android.applicationVariants.all { variant -> + variant.outputs.all { output -> + if (outputFileName.endsWith('.apk')) { + def fileName = "mpapp_v${defaultConfig.versionName}_${new Date(System.currentTimeMillis()).format("yyyyMMdd")}.apk" + outputFileName = fileName + } + } + } + } } diff --git a/mpmaster/build.gradle b/mpmaster/build.gradle index 87df6b97..5fc293f0 100644 --- a/mpmaster/build.gradle +++ b/mpmaster/build.gradle @@ -31,6 +31,14 @@ android { } debug { jniDebuggable true + android.applicationVariants.all { variant -> + variant.outputs.all { output -> + if (outputFileName.endsWith('.apk')) { + def fileName = "MpMaster_v${defaultConfig.versionName}_${new Date(System.currentTimeMillis()).format("yyyyMMdd")}.apk" + outputFileName = fileName + } + } + } } }