From 4f8556fca8490aa5bf32c2151bbe0caad73f1d45 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Sat, 31 Mar 2018 18:25:14 +0200 Subject: [PATCH] Change version code generation. --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 40b4f0e..b6c1ff2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,14 +23,14 @@ def gitVersion() { def versionCodeFromGit() { def dayInYear = ext.configuration.buildDate.format("D").padLeft(2, '0') - def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMM") + ext.todaysBuilds + dayInYear).toInteger() + def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMM") + dayInYear + ext.todaysBuilds).toInteger() println "version code " + versionCode return versionCode.toInteger() } def versionNameFromGit() { def dayInYear = ext.configuration.buildDate.format("D").padLeft(2, '0') - def versionName = gitVersion() + ext.configuration.buildDate.format('yyMM') + ext.todaysBuilds + dayInYear + def versionName = gitVersion() + ext.configuration.buildDate.format('yyMM') + dayInYear + ext.todaysBuilds println "version name " + versionName return versionName }