Release: merge dev into main #22

Merged
nezumi merged 5 commits from dev into main 2026-11-22 03:33:01 +00:00

Merge dev into main to publish the next release. This PR is opened and refreshed automatically on every push to dev.

Changes since v1.0.1

  • Fix uninstallable update APKs built on the ARM64 runner (#23) (fba2d4e)
  • Add CLAUDE.md requiring a Vietnamese Vi: trailer on commits [skip ci] (c97b3ba)
  • Stop playback when returning to Home (#21) (8bc189c)
  • Fix Down on Home moving focus sideways within a row (#20) (fd959f6)

Release notes

  • Merge with a merge commit (not squash) so the changelog keeps every commit from dev.
  • Merging triggers the Release workflow, which bumps the patch version. For minor/major, put [skip release] in the merge commit title and run Actions > Release > Run workflow on main with the bump you want.
Merge `dev` into `main` to publish the next release. This PR is opened and refreshed automatically on every push to `dev`. ## Changes since v1.0.1 - Fix uninstallable update APKs built on the ARM64 runner (#23) (fba2d4e) - Add CLAUDE.md requiring a Vietnamese `Vi:` trailer on commits [skip ci] (c97b3ba) - Stop playback when returning to Home (#21) (8bc189c) - Fix Down on Home moving focus sideways within a row (#20) (fd959f6) ## Release notes - Merge with a **merge commit** (not squash) so the changelog keeps every commit from `dev`. - Merging triggers the `Release` workflow, which bumps the **patch** version. For minor/major, put `[skip release]` in the merge commit title and run Actions > Release > Run workflow on `main` with the bump you want.
Fix Down on Home moving focus sideways within a row (#20)
Some checks failed
Release PR / release-pr (push) Successful in 4s
CI / build (push) Has been cancelled
fd959f6798
## Problem
On the Home screen, pressing Down from a card in "Suggested for you" often moved focus to the next card in the same row instead of into Favorites / Recent, so it took several presses to get down.

## Cause
`Focusable` lifted the focused card 2dp with `graphicsLayer { translationY }`. That transform also moves the card's focus bounds, so its row neighbours sit 2dp lower and count as "below" it in Compose's 2D focus search. Depending on horizontal distance, a neighbour could beat the card in the next row.

## Fix
Draw the lift with `drawWithContent { translate(...) }` instead. It looks the same, but layout and focus bounds stay where they are.

## Testing
- Reproduced on the Android TV emulator: repeated Down presses moved focus back and forth between two cards in the Suggested row.
- After the fix, Down moves from Suggested to Favorites in one press (checked from two positions in the row).

Co-authored-by: nezumi <123229563+Nezumi-2711@users.noreply.github.com>
Reviewed-on: #20
Stop playback when returning to Home (#21)
All checks were successful
Release PR / release-pr (push) Successful in 3s
CI / build (push) Successful in 2m2s
CI / build (pull_request) Successful in 4m35s
8bc189c9c5
Navigating to Home while a song is playing used to keep it playing in the background. Now `AppStore.navigate(HOME)` ends the current song (`now = null`); the queue is kept. Applies to Back, the player's Exit button and the Home nav item.

The song stopped this way is not added to history.

Updated `navigatePlayerRequiresCurrentSong` to match. Tests not run locally (no JDK).

Co-authored-by: nezumi <123229563+Nezumi-2711@users.noreply.github.com>
Reviewed-on: #21
CI: run pull_request checks only for dev; release PR to main reuses the push-to-dev run [skip release]
All checks were successful
Release PR / release-pr (push) Successful in 3s
CI / build (push) Successful in 2m2s
1bd2acca80
Release notes are bilingual and the Vietnamese lines come from the `Vi:` commit trailer. Document the convention so every user-visible commit carries one.

Vi: Thêm hướng dẫn bắt buộc ghi tóm tắt tiếng Việt trong commit để changelog có bản tiếng Việt
Fix uninstallable update APKs built on the ARM64 runner (#23)
All checks were successful
Release PR / release-pr (push) Successful in 4s
CI / build (push) Successful in 4m37s
fba2d4e6aa
## Problem
Self-update downloads the APK but installation fails. The published `karatv-1.0.1.apk` (and `karatv-0.3.4.apk`) contain only dex files: no `AndroidManifest.xml`, `resources.arsc` or `res/`, so Android cannot install them.

## Root cause
Two Forgejo runners share the `docker` label. v0.3.4 and v1.0.1 were built on the **ARM64** runner, which swaps in the third-party AAPT2 35.0.2 (`scripts/ci-aapt2-arm64.sh`); under AGP 9.5 it silently produces APKs without resources while the build still succeeds. v1.0.0 was built on the **x86_64** runner with Maven AAPT2 and is fine (release runs 20/54 vs 45).

## Changes
- `release.yml`: job runs on `runs-on: amd64` (x86_64 runner only).
- `release.yml`: new **Verify APK** step fails the release if the APK lacks `AndroidManifest.xml`, `resources.arsc` or `classes.dex` (checked against the real 1.0.0 = pass, 1.0.1 = fail).
- `UpdateManager`: before installing, parse the downloaded APK with `getPackageArchiveInfo` and require same package + newer versionCode; otherwise show the retry error instead of a failing system install.
- `docs/release.md`: documents the `amd64` label requirement and why.

## Before merging
- Add label `amd64` to the x86_64 runner (e.g. `amd64:docker://node:20-bookworm`), otherwise the release job waits forever.
- After release, v1.0.2 replaces the broken v1.0.1; consider deleting the v1.0.1 release.

## Verification
- `compileDebugKotlin` + `testDebugUnitTest`: pass (local).
- Not verified on device; release job on the `amd64` runner not run yet.

Co-authored-by: nezumi <123229563+Nezumi-2711@users.noreply.github.com>
Reviewed-on: #23
nezumi merged commit 03f8f52cef into main 2026-11-22 03:33:01 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nezumi/kara-tv-app!22
No description provided.