ci: route Android builds through BuildTool
This commit is contained in:
22
README.md
22
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user