π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ensu android: include core_uniffi in rust build and bump versionCode
Prateek Sunal8f6dc1a1c580
diff --git a/mobile/native/android/apps/ensu/README.md b/mobile/native/android/apps/ensu/README.mdindex cfc5d3b1d6..d4d4bb5b49 100644--- a/mobile/native/android/apps/ensu/README.md+++ b/mobile/native/android/apps/ensu/README.md@@ -20,7 +20,7 @@ cd mobile/native/android/packages/rust/tool./build_android.sh```-This script produces the JNI `.so` artifacts in `android/packages/rust/src/main/jniLibs/`.+This script produces the JNI `.so` artifacts in `android/packages/rust/src/main/jniLibs/` (including `libcore_uniffi.so`, `libinference_rs_uniffi.so`, `libllmchat_db_uniffi.so`, and `libllmchat_sync_uniffi.so`).The UniFFI Kotlin bindings are generated separately into:- `android/apps/ensu/crypto-auth-core/src/main/java/io/ente/ensu/crypto/core_uniffi.kt`- `android/packages/rust/src/main/kotlin/io/ente/labs/*/*_uniffi.kt`diff --git a/mobile/native/android/apps/ensu/app-ui/build.gradle.kts b/mobile/native/android/apps/ensu/app-ui/build.gradle.ktsindex ef36918ae2..0399c11119 100644--- a/mobile/native/android/apps/ensu/app-ui/build.gradle.kts+++ b/mobile/native/android/apps/ensu/app-ui/build.gradle.kts@@ -51,7 +51,7 @@ android {applicationId = "io.ente.ensu"minSdk = 24targetSdk = 35- versionCode = 12+ versionCode = 14versionName = "0.1.2"buildConfigField("String", "API_ENDPOINT", "\"$apiEndpointOverride\"")}diff --git a/mobile/native/android/packages/rust/tool/build_android.sh b/mobile/native/android/packages/rust/tool/build_android.shindex a08531012e..5c80d5b601 100755--- a/mobile/native/android/packages/rust/tool/build_android.sh+++ b/mobile/native/android/packages/rust/tool/build_android.sh@@ -3,6 +3,7 @@ set -euo pipefailROOT="$(cd "$(dirname "$0")/.." && pwd)"REPO_ROOT="$(cd "$ROOT/../../../../.." && pwd)"+CORE_UNIFFI_RUST_DIR="$REPO_ROOT/rust/uniffi/core_uniffi"INFERENCE_UNIFFI_RUST_DIR="$REPO_ROOT/rust/llmchat/uniffi/inference_rs_uniffi"CHATDB_UNIFFI_RUST_DIR="$REPO_ROOT/rust/llmchat/uniffi/llmchat_db_uniffi"CHAT_SYNC_UNIFFI_RUST_DIR="$REPO_ROOT/rust/llmchat/uniffi/llmchat_sync_uniffi"@@ -61,7 +62,7 @@ export CARGO_CFG_TARGET_FEATURE="${CARGO_CFG_TARGET_FEATURE:-}"mkdir -p "$OUT_DIR"-for CRATE_DIR in "$INFERENCE_UNIFFI_RUST_DIR" "$CHATDB_UNIFFI_RUST_DIR" "$CHAT_SYNC_UNIFFI_RUST_DIR"; do+for CRATE_DIR in "$CORE_UNIFFI_RUST_DIR" "$INFERENCE_UNIFFI_RUST_DIR" "$CHATDB_UNIFFI_RUST_DIR" "$CHAT_SYNC_UNIFFI_RUST_DIR"; dopushd "$CRATE_DIR" >/dev/nullcargo ndk \--platform 23 \