From a815f98d39d6228c9c181a45512206b6616695ab Mon Sep 17 00:00:00 2001 From: Gathin23 Date: Thu, 22 Oct 2026 14:38:22 +0530 Subject: [PATCH] CI: APK gate 480 KB (491,520 B) Round O left 2.9 KB under 460 KB; AGENTS.md and MAINTAINER.md state the new number. --- .github/maintainer/MAINTAINER.md | 2 +- .github/workflows/ci.yml | 2 +- AGENTS.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/maintainer/MAINTAINER.md b/.github/maintainer/MAINTAINER.md index 3a7aaf66..8120031c 100644 --- a/.github/maintainer/MAINTAINER.md +++ b/.github/maintainer/MAINTAINER.md @@ -6,7 +6,7 @@ tested TV lists under `examples//`, translations, docs, small launcher optio ## The policy: a small core plus a well-indexed hub The main repo stays small and simple: the prompt, tested TV lists, the safety rules and a small, stable -launcher under the APK size gate (`.github/workflows/ci.yml`, currently 471,040 B). Bigger ideas live next to +launcher under the APK size gate (`.github/workflows/ci.yml`, currently 491,520 B). Bigger ideas live next to it, and every one of them gets a home. Pick the smallest home that fits (CONTRIBUTING, "Where does my idea go?"): | The idea | Where it goes | Verdict | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ad31a1e..c2b1803d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,4 +48,4 @@ jobs: run: | size=$(stat -c %s launcher/app/build/outputs/apk/release/app-release.apk) echo "release APK: $((size / 1024)) KB" - test "$size" -lt 471040 || { echo "APK is over 460 KB; the launcher targets 1 GB TVs, keep it small"; exit 1; } + test "$size" -lt 491520 || { echo "APK is over 480 KB; the launcher targets 1 GB TVs, keep it small"; exit 1; } diff --git a/AGENTS.md b/AGENTS.md index 81ef0cea..e540f6e0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -234,7 +234,7 @@ no switch. No new dependencies in `launcher/app/build.gradle` without an issue f |---|---| | Tests, as CI runs them | `python3 -m unittest discover -s tests -v` after `python3 -m venv tools/venv` and `tools/venv/bin/pip install -r tools/requirements.txt`. On `main`, CI sets `CLEANYOURTV_STRICT=1`, which also checks the README's TV-model count. | | Launcher, if you touched `launcher/` | JDK 17, Android SDK platform 34, build-tools 34.0.0. In `launcher/`: `./gradlew --no-daemon testReleaseUnitTest lintRelease assembleRelease`. Lint must stay at zero errors. | -| APK size gate | `launcher/app/build/outputs/apk/release/app-release.apk` must be under 471,040 B (460 KB). Linux: `stat -c %s`, macOS: `stat -f %z`. | +| APK size gate | `launcher/app/build/outputs/apk/release/app-release.apk` must be under 491,520 B (480 KB). Linux: `stat -c %s`, macOS: `stat -f %z`. | | README rows | A new list has its row in `README.md` and `examples/README.md`; a theme in `themes/README.md`; an add-on in `addons/README.md`. | | One topic per PR | A TV list never rides inside a launcher feature PR. A device's list plus small fixes for that same device can be one PR. | | Tested on | Say which TV, Android version and firmware you tested on, in the PR template's "Tested on" line. |