Refactor android-builder into command scripts

This commit is contained in:
Dark98
2026-07-02 04:39:33 +01:00
parent 7c32d315db
commit 0c3249fa4b
9 changed files with 438 additions and 370 deletions
+13
View File
@@ -0,0 +1,13 @@
# Bugs / TODO
## Bugs
- `install.sh` defaults `ANDROID_BUILDER_REPO` to `http://192.168.1.46:8085/Dark98/Termux-Android-Builder.git`, which only works on the local LAN setup. If this repo is meant to be portable, the default should point to a stable remote or be documented as LAN-only.
- The generated `gradlew` wrapper just forwards to the system `gradle` package. That is convenient in Termux, but it means builds are not pinned to a project-specific Gradle wrapper version.
- The generated app pins Android Gradle Plugin `8.5.2` without pinning a compatible Gradle wrapper version. That can break when the installed Gradle package changes or is incompatible with that plugin version.
- The CLI is now split into a dispatcher plus per-command scripts under `lib/commands/`, which improves readability but adds more files to maintain.
## TODO
- Decide whether the default repo URL in `install.sh` should stay LAN-specific or be replaced with a public canonical URL.
- Consider generating a real Gradle wrapper for new projects instead of relying on `gradle` from Termux.