From 606072ca3a9a4b15b9045bc40ab9102a0e19e8b3 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Mon, 27 Oct 2025 17:21:37 +0300 Subject: [PATCH] build: working android release by default --- scripts/android.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/android.sh b/scripts/android.sh index a278d2b4..3459ea22 100755 --- a/scripts/android.sh +++ b/scripts/android.sh @@ -42,10 +42,11 @@ function build_lib() { sed -i -e 's/"rlib"]/"cdylib","rlib"]/g' Cargo.toml # Fix for https://stackoverflow.com/questions/57193895/error-use-of-undeclared-identifier-pthread-mutex-robust-cargo-build-liblmdb-s - # Uncomment lines below for the 1st build: - #export CPPFLAGS="-DMDB_USE_ROBUST=0" && export CFLAGS="-DMDB_USE_ROBUST=0" - #cargo ndk -t ${arch} build --profile release-apk - #unset CPPFLAGS && unset CFLAGS + # Comment 3 lines below for faster 2nd+ build: + export CPPFLAGS="-DMDB_USE_ROBUST=0" && export CFLAGS="-DMDB_USE_ROBUST=0" + cargo ndk -t ${arch} build --profile release-apk + unset CPPFLAGS && unset CFLAGS + cargo ndk -t "${arch}" -o android/app/src/main/jniLibs build --profile release-apk if [ $? -eq 0 ] then