Add android-builder wrapper command

This commit is contained in:
Dark98
2026-07-02 05:47:39 +01:00
parent 6df469c073
commit 315e693b1b
7 changed files with 53 additions and 15 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/data/data/com.termux/files/usr/bin/bash
set -e
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
source "$ROOT_DIR/lib/common.sh"
if [ -f settings.gradle ] || [ -f build.gradle ] || [ -f app/build.gradle ]; then
install_gradle_wrapper_assets "."
echo "Gradle wrapper installed."
echo
echo "Next:"
echo " ./gradlew assembleDebug"
else
echo "Error: run this command from the root of an Android project."
echo "Expected files like settings.gradle, build.gradle, or app/build.gradle."
exit 1
fi