Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update build scripts (#1404)
Leendert de Borst0e16dfd09b7a
diff --git a/.github/actions/build-android-app/action.yml b/.github/actions/build-android-app/action.ymlindex 35aeee291..0b3306639 100644--- a/.github/actions/build-android-app/action.yml+++ b/.github/actions/build-android-app/action.yml@@ -67,6 +67,23 @@ runs:ls -lh "$JNILIBS_DIR/$abi/libaliasvault_core.so" | awk '{print " " $NF ": " $5}'done+ # Verify Kotlin bindings (UniFFI-generated)+ KOTLIN_BINDINGS_DIR="apps/mobile-app/android/app/src/main/java/net/aliasvault/app/rustcore/uniffi/aliasvault_core"+ if [ ! -d "$KOTLIN_BINDINGS_DIR" ]; then+ echo "❌ Missing Kotlin bindings directory: $KOTLIN_BINDINGS_DIR"+ echo "Run: cd core/rust && ./build.sh --android"+ exit 1+ fi++ if [ ! -f "$KOTLIN_BINDINGS_DIR/aliasvault_core.kt" ]; then+ echo "❌ Missing Kotlin bindings file: $KOTLIN_BINDINGS_DIR/aliasvault_core.kt"+ echo "Run: cd core/rust && ./build.sh --android"+ exit 1+ fi++ echo "✅ Kotlin bindings verified:"+ ls -lh "$KOTLIN_BINDINGS_DIR"/*.kt | awk '{print " " $NF ": " $5}'+- name: Install dependenciesrun: npm cishell: bashdiff --git a/core/build-and-distribute.sh b/core/build-and-distribute.shindex adb5a8509..9f1e5660f 100755--- a/core/build-and-distribute.sh+++ b/core/build-and-distribute.sh@@ -34,7 +34,6 @@ if command -v rustc &> /dev/null; thenecho "📦 Building rust core (Rust toolchain detected)..."./build.sh --android./build.sh --browser- ./build.sh --mobile# Do not build for iOS here as it will be built via Xcode build phases instead# Adding it here would make the GitHub Actions fail because of Linux runnerselsediff --git a/core/rust/build.sh b/core/rust/build.shindex 040aa7f20..f4231e9d0 100755--- a/core/rust/build.sh+++ b/core/rust/build.sh@@ -79,11 +79,6 @@ while [[ $# -gt 0 ]]; doBUILD_ANDROID=trueshift;;- --mobile)- BUILD_IOS=true- BUILD_ANDROID=true- shift- ;;--all)BUILD_BROWSER=trueBUILD_DOTNET=true@@ -112,8 +107,7 @@ while [[ $# -gt 0 ]]; doecho " --dotnet Build native library for .NET server-side use (macOS/Linux/Windows)"echo " --ios Build for iOS (device + simulator arm64) with Swift bindings"echo " --android Build for Android (arm64-v8a, armeabi-v7a, x86_64) with Kotlin bindings"- echo " --mobile Build for both iOS and Android"- echo " --all Build all targets"+= echo " --all Build all targets"echo ""echo "Speed options:"echo " --fast, --dev Faster builds (for development)"@@ -141,7 +135,6 @@ if ! $BUILD_BROWSER && ! $BUILD_DOTNET && ! $BUILD_IOS && ! $BUILD_ANDROID; thenecho " ./build.sh --dotnet # Build for .NET"echo " ./build.sh --ios # Build for iOS"echo " ./build.sh --android # Build for Android"- echo " ./build.sh --mobile # Build for iOS and Android"exit 0fi@@ -667,11 +660,20 @@ distribute_android() {done# Copy Kotlin bindings to app source+ # UniFFI generates bindings in uniffi/aliasvault_core/ directory structurelocal kotlin_dist="$SCRIPT_DIR/../../apps/mobile-app/android/app/src/main/java/net/aliasvault/app/rustcore"- if [ -d "$ANDROID_DIR/kotlin" ] && [ -n "$(ls -A "$ANDROID_DIR/kotlin" 2>/dev/null)" ]; then+ if [ -d "$ANDROID_DIR/kotlin/uniffi" ]; thenmkdir -p "$kotlin_dist"- cp "$ANDROID_DIR/kotlin"/*.kt "$kotlin_dist/" 2>/dev/null || true- echo -e " Copied Kotlin bindings to $kotlin_dist"+ # Copy the entire uniffi directory to preserve package structure+ cp -r "$ANDROID_DIR/kotlin/uniffi" "$kotlin_dist/"+ echo -e " Copied Kotlin bindings to $kotlin_dist/uniffi/"++ # List what was copied+ if [ -d "$kotlin_dist/uniffi/aliasvault_core" ]; then+ ls -lh "$kotlin_dist/uniffi/aliasvault_core"/*.kt 2>/dev/null || true+ fi+ else+ echo -e "${RED}Warning: Kotlin bindings not found at $ANDROID_DIR/kotlin/uniffi${NC}"fiecho -e "${GREEN}Distributed to: $ANDROID_APP_DIST${NC}"