From 1ff2b27edc42600267ec5b5087105418e1ffee07 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 27 May 2025 22:04:55 +0300 Subject: [PATCH] android: release build script --- scripts/android.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/android.sh b/scripts/android.sh index 8dc135bc..a278d2b4 100755 --- a/scripts/android.sh +++ b/scripts/android.sh @@ -43,10 +43,10 @@ function build_lib() { # 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} -o android/app/src/main/jniLibs build -# unset CPPFLAGS && unset CFLAGS -# cargo ndk -t "${arch}" -o android/app/src/main/jniLibs 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 success=1