From d675b6e1414d95ae7a4c86b5397b335f86ba30be Mon Sep 17 00:00:00 2001 From: tornaco Date: Sat, 10 Sep 2022 10:57:14 +0800 Subject: [PATCH] [app] add gradle task to print versions --- android/build.gradle.kts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/android/build.gradle.kts b/android/build.gradle.kts index 3096dcb2b..2e342895a 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -32,14 +32,22 @@ plugins { androidGitVersion { prefix = "v" codeFormat = "MMNNPP" - baseCode = 3030164 + baseCode = 3030167 } thanoxVersionCode = androidGitVersion.code() thanoxVersionName = androidGitVersion.name() -log("thanoxVersionCode: $thanoxVersionCode") -log("thanoxVersionName: $thanoxVersionName") +printVersions() + +task("printVersions") { + printVersions() +} + +fun printVersions() { + log("thanoxVersionCode: $thanoxVersionCode") + log("thanoxVersionName: $thanoxVersionName") +} subprojects { log("subprojects: ${this.name}")