ci: route Android builds through BuildTool
All checks were successful
Android build / build (push) Successful in 8m23s
Android build / build (release) Successful in 16m1s

This commit is contained in:
Hermes
2026-09-01 17:16:44 -05:00
parent 0ae7ac86d9
commit c84181ea18
3 changed files with 75 additions and 124 deletions

View File

@@ -16,22 +16,24 @@ Native Kotlin + Jetpack Compose app (API 35) that provides a light-therapy style
- Unit test coverage for Kelvin conversion output range
## BuildTool.sh
The project intentionally runs Gradle with daemon disabled (`--no-daemon` and `org.gradle.daemon=false`).
The project intentionally runs builds through `./BuildTool.sh` so local development and CI use the same build path.
### Options
### Common commands
```bash
./BuildTool.sh --setup-only
./BuildTool.sh --debug
./BuildTool.sh --release
./BuildTool.sh --all
./BuildTool.sh --no-commit --apk-only
./BuildTool.sh --no-commit --with-aab
```
### Behavior
- `--setup-only`: prepares wrapper/dependencies without building release artifacts.
- `--debug`: increments version code/name, builds debug APK, renames output to include app name and version code.
- `--release`: increments version code/name, builds release AAB, renames output similarly.
- `--all`: runs debug + release flow in one run.
- After successful build tasks, script commits all changes with message from `commit-message.txt` (fallback: `No Details`) and then clears that file.
- `--setup-only`: prepares the local Android SDK/tooling and exits.
- `--apk-only`: builds the debug APK.
- `--with-aab`: also builds the release AAB.
- `--no-commit`: skips the post-build git commit step.
- Local builds increment `versionCode` and `versionName`.
- CI can provide `CI_VERSION_CODE` to force the build version code and `CI_ARTIFACT_TIMESTAMP` to control the release AAB filename.
- Artifacts are copied into `dist/`.
- Gitea Actions uses this same script instead of duplicating build logic in YAML.
## Upload Key (Release Signing)
For this first increment, release uses default debug signing unless custom signing is added.