From 032421cae4418d1115db4da4ce2d20186c08721e Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Mon, 29 Jul 2024 16:33:06 +0530 Subject: [PATCH 1/2] add date to versionNameSuffix --- app/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 5524d8c21..b8269f02c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,6 +12,10 @@ plugins { id 'kotlin-parcelize' } +def getDate = { -> + return new Date().format('yyyyMMddHHmmss') +} + // Android configuration android { compileSdk 34 @@ -63,7 +67,7 @@ android { productFlavors { ose { dimension "distribution" - versionNameSuffix "-ose" + versionNameSuffix "-ose+${getDate()}" } } -- GitLab From d9a7764437d623edfc6e60bdabe5328d3c66fa87 Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Mon, 29 Jul 2024 18:42:30 +0530 Subject: [PATCH 2/2] rename getDate to buildDate --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b8269f02c..166c179c7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,7 @@ plugins { id 'kotlin-parcelize' } -def getDate = { -> +def buildDate = { -> return new Date().format('yyyyMMddHHmmss') } @@ -67,7 +67,7 @@ android { productFlavors { ose { dimension "distribution" - versionNameSuffix "-ose+${getDate()}" + versionNameSuffix "-ose+${buildDate()}" } } -- GitLab