Commit Graph
28 Commits
Author SHA1 Message Date
zarzet 962e582acc chore(flutter): move to Flutter 3.50.0 and the material_ui packages
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.
2026-11-15 23:33:29 +07:00
zarzet fa667d6a0d chore(deps): update packages, Rust 1.100.0 and Gradle 9.9.1
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.
2026-11-15 21:51:31 +07:00
zarzet 20e5b550d9 chore: neutralize UI terminology and clarify code comments 2026-11-04 22:53:56 +07:00
zarzet 8bca89936f feat(cast): Google Cast on iOS and desktop
- 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.
2026-11-04 02:01:11 +07:00
zarzet 6e964bb2d3 feat(player): open audio files and folders directly 2026-11-04 01:35:52 +07:00
zarzet a73f63772d chore(deps): update Flutter, native and Rust dependencies 2026-10-30 01:29:33 +07:00
zarzet 85f7764496 fix(macos): keep one instance for debug builds too
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.
2026-10-27 01:44:51 +07:00
zarzet 1f12076765 feat(search): recognize songs playing nearby
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.
2026-10-26 01:33:56 +07:00
zarzet 8e7d792c29 feat(playback): exclusive output on Windows, macOS and Linux
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.
2026-10-25 15:45:49 +07:00
zarzet f580b5c46c Merge branch 'link/l2-desktop' into link/integration
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.
2026-10-25 03:28:13 +07:00
zarzet 94a016a9fc feat(link): run the Mornye Link host on desktop
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.
2026-10-25 03:25:02 +07:00
zarzet 32fc942a04 feat(link): add the phone client for desktop discovery and pairing
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.
2026-10-25 02:37:07 +07:00
zarzet 6ab91b4599 feat(desktop): add fullscreen and borderless window modes 2026-10-23 03:53:18 +07:00
zarzet 6406e0a561 fix(macos): synchronize mini player window transitions 2026-10-22 02:30:18 +07:00
zarzet d0dd3792f9 feat(macos): add floating mini player with lyrics 2026-10-22 01:53:32 +07:00
zarzet 11a9b9a4ec chore: remove redundant comments across the codebase 2026-10-22 01:41:09 +07:00
zarzet 91e00e8735 fix(macos): give the Window menu the system tiling items
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.
2026-10-22 00:51:13 +07:00
zarzet afaca0f136 feat(desktop): show Now Playing over the whole window, as Music does
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.
2026-10-21 02:27:04 +07:00
zarzet b6c996efee fix(desktop): let macOS and Linux pick library folders
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.
2026-10-21 02:21:37 +07:00
zarzet ff5001df92 feat(desktop): Apple Music style macOS shell
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.
2026-10-20 18:00:06 +07:00
zarzet 382e3856e3 feat(desktop): add dropped music folders to the Library
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.
2026-10-20 17:38:54 +07:00
zarzet 95a11dbda9 fix(desktop): report crashes only with evidence and keep one macOS instance
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.
2026-10-20 17:11:41 +07:00
zarzet f3c05dfbe4 build(macos): sign with a stable self-signed identity when available
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.
2026-10-20 17:04:56 +07:00
zarzet 490e529203 feat(desktop): wire deep links, single instance, keep-awake, Discord, watcher and crash logs
- 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.
2026-10-20 16:14:40 +07:00
zarzet dbb59e7ae5 build(desktop): bundle the staged ffmpeg and ffprobe in desktop apps
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.
2026-10-20 16:13:08 +07:00
zarzet dd513d8f63 build(desktop): bundle the Rust library into the macOS app
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.
2026-10-20 14:26:50 +07:00
zarzet f10c9d88b0 feat(desktop): set Mornye identity, icons, window size and entitlements
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.
2026-10-20 13:33:45 +07:00
zarzet f70bc95595 feat(desktop): add generated macOS, Windows and Linux runners
Output of flutter create --platforms=macos,linux,windows --org com.zarz
with Flutter 3.47.7. Identity, window and entitlement changes follow.
2026-10-20 13:25:29 +07:00