Repository navigation
refactor: clean up the codebase against the project rules - #6
Merged
Merged
Conversation
Anthonyy232
force-pushed
the
cleanup/main
branch
from
December 1, 2026 18:30
6735bd0 to
01cd60e
Compare
A version bump dropped every saved server, sign-in and setting, and a settings row from another build crashed every launch.
The cache only serves ten-minute-fresh items, so a table that outlives the process bought nothing and forced the domain to be serializable. The stored server version was never read. Migration 14 to 15 drops both and keeps servers, sign-ins and settings.
Nothing stores domain types any more; settings keep their own serializer in the application layer.
The keyboard's Done skipped the button's rule and showed an error line instead, so the form rule now lives in the state and guards both paths.
A new item that replaces one the headset holds starts held too while the headset is still off. A pause from the player or a remote client while the next episode loads now starts it paused instead of being ignored.
forceSdr and autoplayNext become isSdrForced and isAutoplayEnabled with no migration: existing installs fall back to the defaults for those two settings.
Anthonyy232
marked this pull request as ready for review
December 1, 2026 20:49
Anthonyy232
force-pushed
the
cleanup/main
branch
from
December 1, 2026 20:49
437bb7d to
6aa0d63
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A cleanup of the whole codebase against AGENTS.md. Production code is roughly net-zero in lines (+1,280 / −1,112 over 106 files); tests grew by about 1,900 lines.
server.versioncolumn); servers, accounts, device ids and settings survive. Settings decode leniently and an unreadable row loads defaults instead of crashing every launch. The item cache is in memory, so the domain is no longer serializable.:infra:testingout of the app; CI runs the same command as AGENTS.md; unused plugin aliases, dependencies and module descriptions removed.infra/jellyfinis a plain JVM module on the SDK's JVM artifact (identical bytecode apart from the Context-derived default device info Hotaru never used); the expect/actual files are gone. The app's ProGuard file carries the two keep rules the SDK's Android artifact used to ship, so R8 gets the same input as the shipped build.Why
One source of truth per rule, errors as values across layers, logic in the lowest layer that can own it, no dead code — and to remove the data-loss and crash paths found on the way.
User-visible changes
How it was checked
./gradlew check :app:quest:assembleDebugwith zero warnings on every item and on the final tree (also once uncached with--rerun-tasks).14.json.:app:quest:minifyReleaseWithR8runs clean (unsigned).assembleReleasewas not run (needs the keystore). The token-origin rule lives inMedia3Playerand has no unit test.Headset steps still to do
Left for a later decision
jellyfin-coreis LGPL-3.0 andass-ktbundles FriBidi (LGPL-2.1+). AGENTS.md forbids GPL only; worth stating whether LGPL is accepted.