We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199e4dd commit 2db6bb0Copy full SHA for 2db6bb0
1 file changed
build_android.sh
@@ -34,10 +34,11 @@ cargo build --release
34
35
export CARGO_PROFILE_RELEASE_STRIP=false
36
37
-# Install cargo-ndk if not already installed
38
-if ! command -v cargo-ndk &> /dev/null; then
39
- echo "Installing cargo-ndk..."
40
- cargo install cargo-ndk
+# Install the cargo-ndk version used by the mobile release scripts.
+CARGO_NDK_VERSION="3.5.4"
+if ! command -v cargo-ndk &> /dev/null || ! cargo ndk --version | grep -q "cargo-ndk $CARGO_NDK_VERSION"; then
+ echo "Installing cargo-ndk $CARGO_NDK_VERSION..."
41
+ cargo install cargo-ndk --version "$CARGO_NDK_VERSION" --locked --force
42
fi
43
44
# Check if Android NDK is available
0 commit comments