Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

update rust binaries

Prateek Sunalec1bb4ff4d32
diff --git a/mobile/native/android/packages/rust/build.gradle.kts b/mobile/native/android/packages/rust/build.gradle.kts
index 7234fdaa61..45c7c6ca0b 100644
--- a/mobile/native/android/packages/rust/build.gradle.kts
+++ b/mobile/native/android/packages/rust/build.gradle.kts
@@ -24,6 +24,6 @@ android {
}
dependencies {
- implementation("net.java.dev.jna:jna:5.14.0@aar")
- implementation("androidx.annotation:annotation:1.7.1")
+ api("net.java.dev.jna:jna:5.14.0@aar")
+ api("androidx.annotation:annotation:1.7.1")
}
diff --git a/mobile/native/android/packages/rust/tool/build_android.sh b/mobile/native/android/packages/rust/tool/build_android.sh
index 679bbbdc9e..bd0735585b 100755
--- a/mobile/native/android/packages/rust/tool/build_android.sh
+++ b/mobile/native/android/packages/rust/tool/build_android.sh
@@ -31,7 +31,11 @@ fi
if [[ -n "$NDK_VERSION" ]]; then
NDK_ROOT_PATH="$SDK_ROOT/ndk/$NDK_VERSION"
elif [[ -d "$SDK_ROOT/ndk" ]]; then
- NDK_ROOT_PATH="$(ls -1d "$SDK_ROOT/ndk/"* 2>/dev/null | sort -V | tail -n 1)"
+ # Prefer numeric version folders (ignore legacy rXX folders).
+ NDK_ROOT_PATH="$(ls -1d "$SDK_ROOT/ndk/"[0-9]* 2>/dev/null | sort -V | tail -n 1)"
+ if [[ -z "$NDK_ROOT_PATH" ]]; then
+ NDK_ROOT_PATH="$(ls -1d "$SDK_ROOT/ndk/"* 2>/dev/null | sort -V | tail -n 1)"
+ fi
elif [[ -d "$SDK_ROOT/ndk-bundle" ]]; then
NDK_ROOT_PATH="$SDK_ROOT/ndk-bundle"
fi