From 60617daef21ccbac03afd413175c7941ef06b279 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Wed, 20 Oct 2021 20:13:00 +0200 Subject: [PATCH] Bump version --- ScStwApp.pro | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/ScStwApp.pro b/ScStwApp.pro index 62d75c7..46196e9 100644 --- a/ScStwApp.pro +++ b/ScStwApp.pro @@ -4,7 +4,7 @@ android { QT += androidextras } -VERSION = 1.0.0 +VERSION = 1.0.1 QMAKE_TARGET_PRODUCT = "ScStwApp" QMAKE_TARGET_COMPANY = "Itsblue Development" QMAKE_TARGET_COPYRIGHT = "Copyright (c) by Itsblue Development" @@ -73,8 +73,21 @@ DISTFILES += \ android { ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android - ANDROID_VERSION_CODE = 15 - ANDROID_VERSION_NAME = $${VERSION} + defineReplace(droidVersionCode) { + segments = $$split(1, ".") + for (segment, segments): vCode = "$$first(vCode)$$format_number($$segment, width=3 zeropad)" + + contains(ANDROID_TARGET_ARCH, arm64-v8a): \ + suffix = 1 + else:contains(ANDROID_TARGET_ARCH, armeabi-v7a): \ + suffix = 0 + # add more cases as needed + + return($$first(vCode)$$first(suffix)) + } + + ANDROID_VERSION_NAME = $$VERSION + ANDROID_VERSION_CODE = $$droidVersionCode($$ANDROID_VERSION_NAME) } # This has to be the last line in the file