Groundwork for the in-app updater: nothing in the app changes behaviour
yet, but the numbers and the rules it will rely on are fixed now.
version.properties is the single source of truth (0.1.0 / 1 today) and
build.gradle.kts reads it, so the APK, the tag (vX.Y.Z) and the release
description can no longer disagree. versionName stays semver for humans;
versionCode is a plain counter because it is the ONLY value Android and
Play order by — a tag can never answer "is this newer".
The release description carries the truth as a machine-readable line
("versionCode: N"), which the update check will read together with the
changelog; ReleaseDescription parses it, refuses to guess from tags, and
rejects nonsense instead of overflowing into a negative code. Unit tests
pin the shapes people actually type, the changelog split, https-only
downloads, and that only a HIGHER versionCode counts as an update.
docs/releases.md is the runbook: versions, the description contract,
publishing step by step (script and the manual curl fallback), signing
and its one-time-key rule, installing on the TV, and a symptom/cause/
fix table for the failures that strand clients silently.
Refs #49
6 lines
291 B
Properties
6 lines
291 B
Properties
# Single source of truth for the app version (docs/releases.md).
|
|
# Bump BOTH lines; scripts/release.sh refuses to publish a tag that disagrees
|
|
# with these, and it writes versionCode into the release description, which is
|
|
# what the app's update check reads.
|
|
versionName=0.1.0
|
|
versionCode=1
|