From 5c9080b0f45bf1da5d327c20117e5cff5a0edfa1 Mon Sep 17 00:00:00 2001 From: Rechi Date: Sun, 29 Oct 2017 21:40:49 +0100 Subject: [PATCH] [android] increment versionCode by one for arm64 --- cmake/scripts/android/Install.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/scripts/android/Install.cmake b/cmake/scripts/android/Install.cmake index 0cd6f56058b67..bcffc39978667 100644 --- a/cmake/scripts/android/Install.cmake +++ b/cmake/scripts/android/Install.cmake @@ -37,6 +37,9 @@ unset(APP_VERSION_CODE_LIST) math(EXPR APP_VERSION_CODE_ANDROID "(${major} * 100 + ${minor}) * 1000 + ${patch}") unset(major) unset(minor) +if(ARCH STREQUAL aarch64 AND patch LESS 999) + math(EXPR APP_VERSION_CODE_ANDROID "${APP_VERSION_CODE_ANDROID} + 1") +endif() unset(patch) set(package_files strings.xml