ADR 0006: Publish the TV APK in betas and releases, with clear names
Status: Accepted (2026-11-02, in #121)
Context
Section titled “Context”release.ymlruns./gradlew assembleReleaseand uploadsapp/**/build/outputs/apk/**/release/*.apk, so releases already contain the TV APKs, under the unclear nametv-libre-<abi>-release.apk. (The plan and the inventory said that releases don’t publish a TV APK. That was wrong.)beta.ymlonly builds:app:phone:assembleLibreStaging, so there’s no TV beta.- The TV work is going to land in many small steps (3-gaps, “Order”). Without a TV beta there’s no way to try them on a real TV between releases.
Decision
Section titled “Decision”- Beta:
beta.ymlalso builds:app:tv:assembleLibreStagingand attachesapp/tv/build/outputs/apk/libre/staging/*.apk. The staging TV build uses the same.stagingsuffix as phone (ADR 0005). - Names:
app/tv/build.gradle.ktssetsoutputFileNametofindroid-ce-v<version>-libre-tv-<abi>.apk, the same wayapp/phone/build.gradle.kts:130-132does for phone. Then the workflows need no rename step. Copy the beta versionCode logic from phone as well (app/phone/build.gradle.kts:121-124), so TV betas always go up. - Release notes: one line saying which APKs are for Android TV, with the 32-bit note (
armeabi-v7afor boxes such as the Xiaomi). - CI checks: nothing to do.
build.yamlrunsassembleDebugon every PR, which buildsapp/tvtoo, so a shared-module change that breaks TV already fails the PR.
Consequences
Section titled “Consequences”- A TV beta appears from the next merge to
main. The beta release gets 4 more files, and the retention of 3 betas (#102) keeps that in check. - Users on the box can follow the betas with Obtainium.
- G8 in 3-gaps becomes S: a workflow change, not a decision.
Source: docs/tv-research/adr/0006-release-tv-apk.md · raw Markdown