Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update build.sh (#1404)
Leendert de Borst9320ef2f06dc
diff --git a/core/rust/build.sh b/core/rust/build.shindex e277b3d65..040aa7f20 100755--- a/core/rust/build.sh+++ b/core/rust/build.sh@@ -599,19 +599,37 @@ build_android() {fi# Generate Kotlin bindings using UniFFI- # Note: We need to build a native macOS library first because UniFFI bindgen+ # Note: We need to build a native library first because UniFFI bindgen# cannot extract metadata from cross-compiled librariesecho -e " Generating Kotlin bindings..."+ # Detect platform-specific library extension+ local native_lib_name+ case "$(uname -s)" in+ Darwin)+ native_lib_name="libaliasvault_core.dylib"+ ;;+ Linux)+ native_lib_name="libaliasvault_core.so"+ ;;+ MINGW*|MSYS*|CYGWIN*)+ native_lib_name="aliasvault_core.dll"+ ;;+ *)+ echo -e "${RED}Unsupported OS for Kotlin bindgen: $(uname -s)${NC}"+ exit 1+ ;;+ esac+# Build native library for bindgen (if not already built)- if [ ! -f "target/debug/libaliasvault_core.dylib" ]; then+ if [ ! -f "target/debug/$native_lib_name" ]; thenecho -e " Building native library for bindgen..."cargo build --features uniffi --libfi# Generate bindings from native librarycargo run --features uniffi-cli --bin uniffi-bindgen -- generate \- --library "target/debug/libaliasvault_core.dylib" \+ --library "target/debug/$native_lib_name" \--language kotlin \--out-dir "$ANDROID_DIR/kotlin"