File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,29 @@ tasks:
2222 - printenv | grep ANDROID_
2323 silent : true
2424
25+ setup :
26+ desc : " Install Android development dependencies"
27+ cmds :
28+ - |
29+ echo "Installing Android SDK and NDK..."
30+ for pkg in android-commandlinetools; do
31+ brew list "$pkg" &>/dev/null || brew install "$pkg"
32+ done
33+ - |
34+ echo "Installing Android NDK..."
35+ sdkmanager --install "ndk;28.2.13676358"
36+ - |
37+ echo "Adding Android Rust targets..."
38+ rustup target add {{.ANDROID_ARM64_TARGET}} {{.ANDROID_ARMV7_TARGET}} {{.ANDROID_X86_TARGET}} {{.ANDROID_X64_TARGET}}
39+ - |
40+ echo "Android setup complete!"
41+ echo "Add these to your shell profile:"
42+ echo ' export ANDROID_HOME="/opt/homebrew/share/android-commandlinetools"'
43+ echo ' export ANDROID_NDK_HOME="$ANDROID_HOME/ndk/28.2.13676358"'
44+ echo ' export NDK_HOME="$ANDROID_NDK_HOME"'
45+ echo ' export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"'
46+ silent : true
47+
2548 keystore:setup :
2649 desc : " Generate keystore.properties from environment variables"
2750 vars :
You can’t perform that action at this time.
0 commit comments