android: compileSdk 37 on ci-android:37; current AndroidX, Compose, Coil, OkHttp 5; ktlint-gradle 14 (#8533)
release / go (push) Successful in 1m50s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 17s
release / android (push) Failing after 1m5s
release / integration (push) Successful in 2m36s
release / Build signed APK (push) Failing after 1m13s
release / Build + push container image (push) Skipped
release / go (push) Successful in 1m50s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 17s
release / android (push) Failing after 1m5s
release / integration (push) Successful in 2m36s
release / Build signed APK (push) Failing after 1m13s
release / Build + push container image (push) Skipped
ci-android:37 (CI-runner PR #17) carries Android SDK 37. That lets the app compile against 37 and take the libraries that require it: - compose-bom 2026.11.01 - androidx.hilt 1.4.0 - navigation 2.10.2 - lifecycle 2.11.1 - core-ktx 1.19.1 - mediarouter 1.9.0 - coil 3.6.3 - OkHttp 5.5.1 targetSdk stays 36, so runtime behaviour on phones is unchanged. ktlint-gradle 14.2 runs ktlint 1.5, which turns on rules that 1.0 left experimental, so the sources are reformatted to them. Ignoring whitespace that is about 4.7k lines across 312 files, and none of it changes behaviour. android/.editorconfig keeps ktlint's default style but exempts @Composable functions from the lowercase function-naming rule, which Compose's own convention breaks. A few spots ktlint 1.5 cannot fix by itself were rewritten: - EOL comments moved above the KDoc they followed; - DeliveryPlan's file-level doc became plain comments; - three /* name = */ argument labels on Java calls became trailing comments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-6
@@ -9,16 +9,16 @@ Minstrel's one workflow, `.gitea/workflows/release.yml`, consumes two CI images:
|
||||
|
||||
```
|
||||
git.fabledsword.com/bvandeusen/ci-go:1.26
|
||||
git.fabledsword.com/bvandeusen/ci-android:36
|
||||
git.fabledsword.com/bvandeusen/ci-android:37
|
||||
```
|
||||
|
||||
- `ci-go:1.26` — the `go`, `integration` and `web` lanes, and the container build and public release (`image-release`). All CI lives in that one workflow so every publishing job can depend on every lane.
|
||||
- `golang:1.26-trixie` (Docker Hub) — the `govulncheck` lane. Deliberately the same image as the Dockerfile's builder stage rather than `ci-go`, so the standard library it checks is the one in the shipped binary. Keep the two in step.
|
||||
- `ci-android:36` — native Kotlin/Compose client: ktlint + detekt + unit tests (the `android` lane), and the signed release APK (`android-release`).
|
||||
- `ci-android:37` — native Kotlin/Compose client: ktlint + detekt + unit tests (the `android` lane), and the signed release APK (`android-release`).
|
||||
|
||||
**No job uses `ci-flutter`**; nothing in this repo needs a Flutter toolchain.
|
||||
The `flutter-ci` runner *label* is still used: the Android jobs schedule on it
|
||||
while pulling `ci-android:36`, per the label/image split below.
|
||||
while pulling `ci-android:37`, per the label/image split below.
|
||||
|
||||
## Image deps used
|
||||
|
||||
@@ -30,12 +30,12 @@ while pulling `ci-android:36`, per the label/image split below.
|
||||
- **docker buildx** — release container build + push in `release.yml`.
|
||||
- **git, perl, node** — the public release in `image-release`: `git archive` for the export, `ci/leakgate.sh` (perl joins comment lines), `ci/releases.mjs` (node's fetch) for the release pages on GitHub and this forge.
|
||||
|
||||
### From `ci-android:36`
|
||||
### From `ci-android:37`
|
||||
- **JDK 25** — Gradle launcher + Android build. Requires Gradle 9.1.0+ in
|
||||
`android/gradle/wrapper`; older Gradle rejects JDK 25 with an opaque `"25.0.3"`
|
||||
error. The workflows also set `JAVA_TOOL_OPTIONS=--enable-native-access=ALL-UNNAMED`
|
||||
to silence Gradle's launcher-JVM restricted-method warning.
|
||||
- **Android SDK + cmdline-tools + build-tools 36.0.0** — APK assembly + signing.
|
||||
- **Android SDK 37 (platform 37.0) + cmdline-tools + build-tools 37.0.0** — APK assembly + signing.
|
||||
No NDK: the app has no C/C++ sources.
|
||||
- **ktlint + detekt** — `./gradlew ktlintCheck` and `./gradlew detekt` in
|
||||
the `android` lane. Image pins track `android/gradle/libs.versions.toml` so local
|
||||
@@ -49,7 +49,7 @@ None.
|
||||
|
||||
## Notes
|
||||
|
||||
- **Label/image split.** Workflows keep `runs-on: go-ci` / `runs-on: flutter-ci` as the scheduling label per the [`ci-runners.md`](https://…/FabledRulebook/ci-runners.md) "label = scheduling handle, image = `container.image`" pattern. The labels are intentional handles, not toolchain assertions — which is why the Android jobs still schedule on `flutter-ci` while pulling `ci-android:36`. Switch them to `android-ci` if that runner label is ever registered; nothing breaks either way.
|
||||
- **Label/image split.** Workflows keep `runs-on: go-ci` / `runs-on: flutter-ci` as the scheduling label per the [`ci-runners.md`](https://…/FabledRulebook/ci-runners.md) "label = scheduling handle, image = `container.image`" pattern. The labels are intentional handles, not toolchain assertions — which is why the Android jobs still schedule on `flutter-ci` while pulling `ci-android:37`. Switch them to `android-ci` if that runner label is ever registered; nothing breaks either way.
|
||||
- **Integration-job docker-socket dependency.** The `integration` lane uses the runner's shared docker socket (`/var/run/docker.sock`) to bridge-IP-discover the per-job Postgres service container by name + network intersection — the dev compose's `minstrel-postgres-*` containers are explicitly skipped as belt-and-suspenders. Depends on `act_runner.valid_volumes` whitelisting the socket; if that ever stops auto-mounting, integration tests fail at the `docker inspect` step.
|
||||
- **Go toolchain pin.** `go.mod` is on `go 1.25.0` because `golang.org/x/crypto v0.51.0` declares 1.25 as its minimum. `ci-go:1.26` satisfies this with headroom. Future `x/crypto` bumps that move the Go floor should be paired with an image-tag bump in this file + the workflows.
|
||||
- **In-app update channel — `needs:`, not polling.** `release.yml`'s `image-release` job declares `needs: [android-release]`, so on dev and main pushes the signed APK built from the same commit is guaranteed present before the image build starts — no polling window, no race. No APK is attached to any release page; phones get the app from the server image.
|
||||
|
||||
Reference in New Issue
Block a user