summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkoan <jkoan@gmx.de>2021-01-09 14:53:04 +0100
committerjkoan <jkoan@gmx.de>2021-01-09 14:53:04 +0100
commit5c315c1d61b4f6d983c160e2fdbeebd2e9b61406 (patch)
tree85dbb187d4d741af23eeb55a52237958e997f766
parent99da64af4938c37df21d466000979ecefb45e246 (diff)
downloadnavit-5c315c1d61b4f6d983c160e2fdbeebd2e9b61406.tar.gz
fix:build:android: Fix VersionCode after 31.12.2020
Currently the VewrsionCode has the Format yyMMddHHmm which breaked at 01.01.2021 because the maximum allowed Version by Google Play is 2100000000 because of the limitation of older Android Devices. Out currently highest VersionCode is 2012201504 and we need to keep it continuous, so the new Format would be yyyyMMddHH. Of cause this has the limitation that we can "only" create one Versioncode per Hour. But this is the the best @hoehnp and I came up yesterday. As a result a PR will follow which will remove the android build from the master build and instead will add it to a scheduled build (nightly build)
-rw-r--r--gradle/scripts/git-scm-version.gradle2
1 files changed, 1 insertions, 1 deletions
diff --git a/gradle/scripts/git-scm-version.gradle b/gradle/scripts/git-scm-version.gradle
index 685c95ed8..fbc447aad 100644
--- a/gradle/scripts/git-scm-version.gradle
+++ b/gradle/scripts/git-scm-version.gradle
@@ -15,7 +15,7 @@ import java.time.format.DateTimeFormatter
ext {
git = Grgit.open(currentDir: projectDir)
gitVersionName = git.describe(match: ["v[0-9.rc]*"])
- gitVersionCode = Integer.parseInt(DateTimeFormatter.ofPattern("yyMMddHHmm").format(git.head().dateTime))
+ gitVersionCode = Integer.parseInt(DateTimeFormatter.ofPattern("yyyyMMddHH").format(git.head().dateTime))
}
task printVersion() {