The app reported favorite artists as ids it computed with a looser
normalization than the catalog, so some never matched. getStarred now
sends artist names and the server maps them with its own rule; unstar
matches favorites by name as well.
Phones find Mornye on a computer over mDNS (bonsoir, _mornye._tcp),
pair with its 6-digit PIN and keep a live session with the chosen
desktop.
- Pinned HTTPS: first contact records the presented certificate and
checks it against info and the mDNS fingerprint; later requests and
the WebSocket accept only that SHA-256.
- Pairing posts the PIN proof, maps bad_proof, pairing_closed and 429
to clear errors, saves a Subsonic API-key network connection, adds it
to Library and scans it. Re-pairing replaces the key in place.
- LinkClientSession: Bearer JSON get/post with timeouts and
LinkException mapping, WebSocket hello/welcome, backoff from 1 s
doubling to 30 s, pause in the background, reconnect when discovery
sees the desktop again, address updates when it moves.
- LinkClientController publishes the active session through
linkActiveClientProvider and rescans on catalog.changed.
- Settings entry "Mornye on your computer" on Android and iOS with
nearby and paired computers, PIN and manual address dialogs, forget,
and local network permission, Wi-Fi and certificate warnings.
- iOS NSBonjourServices and the Android multicast permission.
registerLinkSyncHandlers answers the collections and history endpoints
and the Subsonic playlist, star, getStarred and scrobble ops on the
desktop, and announces changes through linkCollectionsChangedHookProvider.
linkSyncRunnerProvider keeps the phone in sync on connect, on
collections.changed and after local edits, with per-server cursors.
Collections schema v3 adds link_sync_state and link_sync_changes with
SQLite triggers on every collection table, so Dart, native publication
and restore writes are all recorded, one coalesced row per key with
tombstones. Existing rows are seeded on upgrade. Native jobs keep
reading and staging v2 copies of the collection tables.
Listening statistics v2 adds per-author running totals with a stable
(origin, day, track key) id. Stores page changes by cursor and apply
peer changes by last writer wins without echoing them as local.
Index the NDJSON catalog export into albums, artists, genres and a
case- and diacritic-insensitive search, with contract ids (al-/ar- +
16 hex of SHA-256). Answer the catalog endpoints in OpenSubsonic JSON
or Subsonic XML, stream and download files with single-range support,
transcode through ffmpeg when asked (killed when the client goes
away), resize and cache cover art, and forward playlists, stars,
scrobbles and the play queue to the app with song ids expanded both
ways.
Implements the Mornye Link server core (unit L1a) in mornye-link:
- tls: self-signed ECDSA P-256 certificate for mornye.local, generated
once into cert.pem/key.pem, pinned by its SHA-256 fingerprint
- store: server.json and devices.json, atomic private writes
- auth: Subsonic apiKey, salted token and password schemes, Bearer keys
- pairing: 6-digit PIN window with HMAC proof, attempt limit, expiry
and a per-address rate limit
- server/api: own Tokio runtime, port policy with persistence, dual-stack
TLS listener, /rest routing to the Subsonic layer, /mornye/v1 info,
pair, ws and forwarding with a request timeout
- ws: hello/welcome sessions, client list events, pushes, pings and
idle drop, newest connection per device wins
- mdns: _mornye._tcp advertisement, best effort
mornye-desktop gains the link* methods and bridges forwarded requests
to Dart as linkRequest inbound calls answered by linkReply.
Mornye Link lets the phone app use the desktop app over the local
network. This adds the mornye-link crate with the types its server and
Subsonic layers share, and the Dart protocol models, desktop request
router and phone client interface the feature units build on.
An invalidated keystore made reading or deleting the retired secret
throw and block settings from loading. The cleanup now logs the error
and continues without touching the other stored credentials.
Library shuffle pages through the queue Library query, so it plays
downloads as well as enabled scanned sources. It starts on a random
song with shuffle on and keeps the Library order underneath, so
turning shuffle off returns to it. The unused getAll query is gone.
When a shuffled queue wraps under repeat all, the next pass opens with
a random queued song other than the one that just finished and plays
in a new order, instead of looping the same order. AutoMix into the
wrap prepares that opener and starts the reshuffled pass.
The Library toolbar's connected button group moves to a shared
ToolButtonGroup, and Material search results use it for Sort and the
list or grid tool. Mornye keeps its text Sort and icon buttons.
A playlist link now replaces the Library page at once, before the tab
switches, so the Library root no longer flashes for a frame and the
page does not slide in.
Home, Library, Repo and Settings now take the Playlists rows' fill,
hover and ink ripple. On collapse the expanded row narrows with the
rail and fades while the compact indicator fades in around a fixed
icon, instead of morphing one pill that flattened into a line.
Desktop and short landscape windows shortened the page header, so the
large title ran into the back button. Pages with a back button keep the
full 120dp header; tab roots keep the shorter one.
Wide windows now open with the rail expanded. A menu button on top and
the sidebar shortcut toggle it, and the choice is kept across launches.
Collapsed, the rail shows icons alone, named by tooltips. Expanded, its
pills span the rail, and a Playlists section (All Playlists and the
user's playlists) fills the space under the destinations. Library
returns to the Library root while a playlist is open.
The Material phone player moves shuffle and repeat out of the transport
into a connected two-segment group in the footer, between the lyrics
toggle and the output button. The selected segment fills its own shape
with primaryContainer, and the pressed one widens. Without them the
transport spans the timeline. The title, artist and lyrics now start at
the leading edge, as in Mornye; a duet's second voice keeps the end.
Selected mode buttons take the content colour of their fill, so the icon
stays legible on light neutral cover schemes.
Playlist membership no longer removes tracks from library pages while their counts still include them. Keep the cached page content independent of playlist membership.
Verified with 43 library tests covering both styles, mobile and desktop layouts, list and grid views, and switching from Mornye to Material. Related to #726.
The phone Now Playing menu gains Hide volume and Show volume in both
styles, saved as the playerShowVolume setting. Mornye drops the slider in
portrait and landscape and moves the transport into its place; Material
keeps the gap above the footer. Desktop keeps its volume controls.
open_filex 5 ships a Swift package, so it leaves the Podfile lock; the
lock also picks up the current Podfile and podspec checksums. dbus and
connectivity_plus stay on dbus 0.7 because desktop_drop 0.8.4 still
needs it, and desktop_drop stays below 0.9 while share_plus needs
cross_file 0.3.
Rust 1.99.1, Tokio 1.54.1, zip 9.0.5, libc 0.2.191 and
rustls-native-certs 0.8.5. scraper 0.29 moves to html5ever 0.40, so
the parser pin follows it. The Unicode 15 table pins and the vendored
rustix, cap-std and libusb1-sys sources stay as they are.
Extensions that require the new deferredPreview runtime feature return
mornye-preview:<extension>/<track> links instead of a sample URL. The
preview player resolves such a link through the extension's
resolvePreview function when the preview starts, so a search no longer
waits for one sample lookup per track.
Wide screens now open search results as the phone rows, as before the
cover layout landed. A list or grid button after Sort, like the Library's
view button, switches to the cover grids and shelves, and the choice is
kept in settings (searchViewMode). Phones never show the button.
A provider could label a download as FLAC while returning other bytes,
and the backend then wrote FLAC tags into them and failed with "fLaC
head incorrect" (Mornye-Desktop issue #6), ending the whole download.
The download probe now reads the container from the file itself: FLAC,
including behind an ID3v2 tag, MP4 or MP3. A FLAC label on MP4 or MP3
bytes yields to the bytes, so the file is published with its real
suffix and FLAC in MP4 is still remuxed by the app. Unrecognized bytes
behind a FLAC label, such as an error page, fail that provider with a
clear message so the next provider can try.
The narrow suite compares what the Search tab paints on phones, a
landscape phone, a portrait tablet and a narrow desktop window, in both
styles, against fingerprints recorded on the previous layout. The wide
suite covers the cover grid (tap, cover saving, sort, keys, RTL), the
All view songs and shelves with their Show all controls, the desktop
song table activating like a phone row, and skeleton geometry.
Once the results are 840dp wide on a tablet or desktop window, the
album, artist and playlist filters show an adaptive grid of covers, and
the All view lists the first five songs, then one shelf per kind with
Show all switching to that filter. Songs use the desktop song table on
desktop and keep their rows elsewhere. Loading skeletons follow the
same geometry. Phones and narrow windows keep their rows unchanged.
Search songs move to TrackListTable on wide desktop windows. The table
can now show a dense preview button beside the title and save a row's
cover on a long press of its artwork, as the phone search rows do.
Preserve the system audio mode and speakerphone route when only player settings change. Apply explicit global routing changes using the incoming context instead of the previous defaults.
Verified with three native routing regression tests and 34 Dart player tests. The Android build and audioplayers lint checks pass. Related to #721.
Eight one-line re-export files remained from an earlier move into controllers, models and providers. Every import now points at the real file, so the shims are deleted.