Flutter 3.50 deprecates its built-in Material and Cupertino libraries in
favour of the material_ui and cupertino_ui packages. The imports move
with the official fix (dart fix, migrate_design_widgets); the app's old
two-library theme bridge collapses into one Theme type.
- MaterialExpressiveScope keeps the complete host theme nearest its
child. The reduced copy made for the expressive widgets now shares the
app's Theme type and would hide component themes and extensions.
- LegacyThemeBrightness hands the brightness to the glass package, which
still reads Flutter's built-in theme.
- appLocalizationsDelegates lists the material_ui localization delegates;
the generated list still names the built-in ones.
- Tests: findByTooltip and pageBack replace the flutter_test helpers that
only know the built-in widgets, and several tests that had gone stale
against earlier app changes are repaired.
Dart packages move to their newest compatible releases, among them
dart_smb2 0.4.1 (libsmb2-r13: uploads that reconnect can rename their
temporary file, no wait for ever on a reply that stops, OpenSSL
signing), record 7.2.0, archive 4.7.1, file_picker 13.3.3 and
material_ui 1.11.0. Rust moves to 1.100.0 with rusqlite 0.43.0,
zip 9.6.0, notify 8.2.2 and the transitive crates. Gradle moves to
9.9.1.
Held back on purpose: flutter_secure_storage 11 (the extension storage
key lives there), flutter_rust_bridge (smtc_windows needs 2.11.1), the
Unicode 15 crates, and desktop_drop, dbus and connectivity_plus, which
wait for cross_file 0.4 in file_picker and share_plus.
- iOS: a Swift plugin drives the Rust sender on the existing cast
channels. A silent mixable loop keeps the app serving audio while a
session is connected. Audio output now opens the same sheet as
Android, with AirPlay and Bluetooth opening the system route picker.
- Desktop: CastOutput talks to the Rust sender through the backend
channel. Material shows a Cast button in the player bar that gives
way after the volume slider in narrow windows; the Mornye capsule
puts Cast in its volume popover.
- iOS and desktop pick receivers in a new app sheet that looks for
devices while open and connects on tap.
- Android keeps Google's sender and dialog, and now serves media from
the Rust server. The Dart CastMediaServer is removed.
A debug build running next to a release copy shared its databases. Hand over to the running instance in every build, as Windows and Linux already do, and say why on stderr so flutter run does not quit silently.
A microphone button in the empty search field listens to the room and
names the song, on phones and desktop.
- The audio fingerprint and the Shazam request run in Rust behind a new
recognize_song data job, so every platform shares one path.
- Listening sends the audio so far at 4, 8 and 12 seconds and stops at
the first match; quiet or short clips are reported instead of sent.
- A match can be played from the library (by ISRC, then title and
artist), searched in Mornye, or opened in Shazam. Recent matches are
kept in a local history.
- Android asks for the microphone only when listening starts; iOS and
macOS gain the microphone usage description and entitlement. The Linux
package recommends pulseaudio-utils for capture.
Add a desktop "exclusive output" option that takes the output device for
the music player alone, bypassing the system mixer. It always plays
through libmpv:
- Windows: WASAPI exclusive mode, with ao-reload when the option changes
mid-track.
- macOS: AVPlayer cannot play while the app holds Core Audio hog mode, so
macOS bundles libmpv (media_kit_libs_macos_audio, through CocoaPods)
and ExclusiveOutputDeck moves the player from AVPlayer to a libmpv deck
with audio-exclusive while the option is on, reopening a playing track
where it was. Turning it off disposes that deck, releasing the device.
- Linux: an ALSA hw: device opened directly, chosen from /proc/asound or
the first card.
A refused or busy device reopens the track in shared mode at the same
position and the settings page reports it. AutoMix and previews stay off
while the option is on.
Both settings entries are kept (computer on phones, phones on desktops).
The desktop's 'nothing playing' string for a connected phone becomes
linkDesktopPhoneNothingPlaying, since the phone sheet already uses
linkDesktopNothingPlaying with a name. The desktop host now registers
the sync handlers and announces collection changes to phones.
Add the Dart side of the desktop link server: bridge calls and inbound
events for the link backend, a keep-alive host service that keeps the
enabled flag and device name, starts and stops the server, answers
forwarded requests through the shared router and pushes player and
download changes to connected phones.
The catalog exporter pages the Library Songs rows, maps them off the UI
isolate to the NDJSON catalog and builds the identity index the router
features resolve tracks with. The L2 ops cover player state, commands,
handoff, downloads, open, resolve and the Subsonic play queue.
The macOS app declares local network use and the Bonjour service.
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.
Flutter's menu bar replaces the main menu, and its Window menu was never
registered as the app's windows menu. macOS therefore left out Fill,
Center, Move & Resize and Full Screen Tile, and their keyboard shortcuts
did nothing in Mornye.
The app delegate now points NSApp.windowsMenu at the menu holding Bring
All to Front, found by its action so any localized title works, and does
so again whenever Flutter rebuilds the menu bar.
Now Playing covers the shell, sidebar included, over a backdrop drawn
from the artwork: the cover, title and transport on one side, and lyrics
or Up Next on the other, toggled from a capsule in the corner. The
timeline and transport line up with the cover's edges.
The macOS runner reports full screen to Flutter. Opening lyrics in a
full screen window, or entering full screen with lyrics open, shows
them in Now Playing instead of the side panel.
The macOS file picker checks the user-selected files entitlement even
outside the sandbox and silently returned nothing without it. Linux
reaches the picker through the desktop portal, so the package recommends
xdg-desktop-portal and the settings page reports a picker failure
instead of doing nothing.
The macOS window now draws content under a transparent title bar with
the traffic lights centered in a 52pt row, and Flutter drag areas move
and zoom the window there.
Mornye on desktop follows Music: an inset 210pt sidebar panel tinted by
the page's artwork color, with Search, Home, Store, the Library pages,
All Playlists and each playlist, and an account row with Settings pinned
at the bottom. The sidebar hides completely from its button, the menu
or below 900pt, and the content then leaves room for the window
controls. The player is a floating 48pt glass capsule centered over the
content pane with shuffle, transport, repeat, the LCD, downloads,
lyrics, queue and a volume popover; pages scroll under it.
Material keeps its docked player bar, which now holds downloads, so the
top bar steps aside on Home instead of stacking a second search field.
The expanded rail spaces its indicators 8dp apart.
Dropping music files or folders onto the window adds them as Library folders through the existing add-folder and scan path; a dropped file adds the folder that holds it. Uses desktop_drop 0.8.4. Tests cover the folder selection, the hover play button and the source-sorted table.
A leftover session marker alone means a force quit, kill or power loss, so it
is now logged instead of shown as a crash; SIGTERM quits cleanly. Release
builds on macOS hand over to an already running copy of the app.
Ad hoc signatures change on every build, so macOS asks for the keychain
password again after each rebuild or update. A self-signed certificate keeps
the designated requirement stable; Gatekeeper behavior is unchanged.
- mornye:// URLs arrive through app_links and go to the backend callback
inbox (queueExtensionCallbackUrl); extension auth opens the system
browser on desktop.
- Single instance: a named mutex plus app_links WM_COPYDATA forwarding on
Windows (with the installer's AppUserModelID), a unique GApplication
forwarding its command line on Linux; macOS handles reopen itself.
- The download queue holds a sleep inhibitor from start until it stops.
- Discord Rich Presence runs on desktop through a channel adapter over the
backend IPC methods, without an account link.
- Library folder changes trigger a debounced incremental source scan.
- Desktop rotating log files, a session marker that turns an unclean exit
into the existing crash report, and runtime errors recorded for it.
An Xcode "Embed FFmpeg" phase copies build/ffmpeg/macos-universal (or
the host architecture) into Contents/Resources/ffmpeg and signs the
tools; MORNYE_REQUIRE_FFMPEG=1 turns a missing stage into an error.
Linux installs them into lib/ffmpeg and Windows into ffmpeg\, warning
when nothing is staged. A macOS integration test converts and probes
with the bundled tools.
Add an "Embed Rust Backend" Run Script phase to the Runner target. It
builds libmornye_desktop.dylib with build_rust_backend.sh when the staged
copy is missing or older than the Rust sources, copies it into
Contents/Frameworks and signs it (ad hoc unless an identity is set), so
the app loads the backend without MORNYE_DESKTOP_LIB.
MORNYE_SKIP_RUST_BUILD=1 embeds a prebuilt staged library as is.
Name the app Mornye with the com.zarz.mornye identifier on all three
runners and generate macOS and Windows icons from the brand badge; the
Linux bundle installs the badge PNG as the window icon. Open at
1280 x 800 with a minimum of 800 x 600. Register the mornye:// scheme on
macOS and run outside the App Sandbox.