From eb5672901b1da7d3d7b45df702aafdc6efaeeb51 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Tue, 10 Apr 2018 20:48:47 +0200 Subject: [PATCH] AS update. --- app/build.gradle | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f4a2f62..8c2a241 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(2, '0') + def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0').substring(1, 2) 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 dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0').substring(1, 2) def versionName = gitVersion() + ext.configuration.buildDate.format('yyMM') + dayInYear + ext.todaysBuilds println "version name " + versionName return versionName diff --git a/build.gradle b/build.gradle index 9f64143..169ef9e 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { } } dependencies { - classpath 'com.android.tools.build:gradle:3.1.0' + classpath 'com.android.tools.build:gradle:3.1.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong