From a81259d19a434752614e5a430fdebf86f07c1cfc Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Tue, 2 Aug 2022 21:34:17 +0200 Subject: Run Minetest update checker on startup (#7629) This feature is enabled by default for non-Android release builds. Package maintainers may use -DENABLE_UPDATE_CHECKER=0 to disable it. Co-authored-by: rubenwardy Co-authored-by: sfan5 --- android/build.gradle | 1 + android/native/build.gradle | 3 ++- android/native/jni/Android.mk | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'android') diff --git a/android/build.gradle b/android/build.gradle index 027223601..8ba61c4a0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,6 +5,7 @@ project.ext.set("versionMinor", 6) // Version Minor project.ext.set("versionPatch", 0) // Version Patch project.ext.set("versionExtra", "-dev") // Version Extra project.ext.set("versionCode", 38) // Android Version Code +project.ext.set("developmentBuild", 1) // Whether it is a development build, or a release // NOTE: +2 after each release! // +1 for ARM and +1 for ARM64 APK's, because // each APK must have a larger `versionCode` than the previous diff --git a/android/native/build.gradle b/android/native/build.gradle index 2ddc77135..2254aab3a 100644 --- a/android/native/build.gradle +++ b/android/native/build.gradle @@ -14,7 +14,8 @@ android { "versionMajor=${versionMajor}", "versionMinor=${versionMinor}", "versionPatch=${versionPatch}", - "versionExtra=${versionExtra}" + "versionExtra=${versionExtra}", + "developmentBuild=${developmentBuild}" } } } diff --git a/android/native/jni/Android.mk b/android/native/jni/Android.mk index b522042de..50651d5ba 100644 --- a/android/native/jni/Android.mk +++ b/android/native/jni/Android.mk @@ -102,6 +102,7 @@ LOCAL_CFLAGS += \ -DVERSION_MINOR=${versionMinor} \ -DVERSION_PATCH=${versionPatch} \ -DVERSION_EXTRA=${versionExtra} \ + -DDEVELOPMENT_BUILD=${developmentBuild} \ $(GPROF_DEF) ifdef USE_BUILTIN_LUA -- cgit v1.2.3