Files
samiandClaude Opus 5.5 60c5cd9c0b CI: pinned actions, cargo deny, fuzz smoke; build-android.sh works on Linux
- deny.toml: allow-wildcard-paths for the workspace's own path crates; ignore two
  unmaintained notices for uniffi 0.28's build-time deps (bincode, paste).
- build-android.sh ran uniffi-bindgen on libkv_ffi.dylib, which doesn't exist on the
  Linux CI runner; pick .so there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-17 01:01:44 +09:00

12 lines
774 B
Bash
Executable File

#!/usr/bin/env bash
# Builds jniLibs + Kotlin bindings into ../kestrove-android/core-ffi. Needs: cargo install cargo-ndk; ANDROID_NDK_HOME set.
set -euo pipefail
cd "$(dirname "$0")/.."
OUT=../kestrove-android/core-ffi/src/main
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
cargo ndk -t arm64-v8a -t armeabi-v7a -t x86_64 -o "$OUT/jniLibs" build -p kv-ffi --release
cargo build -p kv-ffi # host library for library-mode bindgen (.so on Linux CI, .dylib on macOS)
case "$(uname -s)" in Darwin) HOST_LIB=libkv_ffi.dylib ;; *) HOST_LIB=libkv_ffi.so ;; esac
cargo run -p kv-ffi --bin uniffi-bindgen -- generate --library "target/debug/$HOST_LIB" --language kotlin --out-dir "$OUT/java"
echo "✅ Android libs + bindings written to $OUT"