Fix playback lifecycle, server-change and navigation bugs from review
Playback - A preparation finishing after Home no longer starts playing in the background; the post-play countdown only runs while Kaleido is on screen. - Closing or backgrounding during preparation keeps the requested resume position instead of reporting the player's unprepared 0. - Progress, scrobble and transcode-stop reports stay pinned to the server the title came from, even after a server change. Networking - Cancelling a request now cancels its OkHttp call, so timeouts such as the 3-second server-stop check actually return on time. - Connection discovery accepts the most preferred answering address without waiting for slower, less preferred probes. State and navigation - Server/account changes clear episode queues, shuffle, version choices, episode selections and search. - Leaving Search cancels its pending request. - Version selection updates the format badges and technical line. - Down from the Home tab enters the rows when there is no featured title. - Back (or a new Cancel button) closes Settings > Choose server. - One unavailable show no longer discards the whole New Seasons row. Release - package_release.py and CI check the APK's own versionName/versionCode (and that it is not debuggable) via scripts/verify_distribution.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4780bdcdb2
commit
bdc37db05d
12 changed files with 160 additions and 35 deletions
|
|
@ -4,6 +4,9 @@ ROOT=pathlib.Path(__file__).resolve().parents[1]
|
|||
version=dict(l.split('=',1) for l in (ROOT/'version.properties').read_text(encoding='utf-8').splitlines() if '=' in l)
|
||||
apk=ROOT/'app/build/outputs/apk/release/app-release.apk'
|
||||
if not apk.exists():raise SystemExit('Run Build.ps1 -Release first.')
|
||||
# The APK left by an earlier build must not be published under this version's name.
|
||||
from verify_distribution import check_apk
|
||||
check_apk(apk,version['versionName'],int(version['versionCode']))
|
||||
out=ROOT/'distribution';out.mkdir(exist_ok=True)
|
||||
shutil.copyfile(apk,out/'Kaleido.apk')
|
||||
digest=hashlib.sha256(apk.read_bytes()).hexdigest()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue