From c17980a032941dc1dfe0e1fe3d722b270d1e1614 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Sun, 15 Apr 2018 21:32:34 +0200 Subject: [PATCH] Versionning changes. --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 290ad1e..9f8ce71 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,14 +22,14 @@ def gitVersion() { } def versionCodeFromGit() { - def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0').substring(1, 3) + def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0') 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(3, '0').substring(1, 3) + def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0') def versionName = gitVersion() + ext.configuration.buildDate.format('yyMM') + dayInYear + ext.todaysBuilds println "version name " + versionName return versionName