Commit Graph
86 Commits
Author SHA1 Message Date
zarzet a73f63772d chore(deps): update Flutter, native and Rust dependencies 2026-10-30 01:29:33 +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 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 420bd14111 chore(flutter): update packages and refresh the iOS pod lock
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.
2026-10-24 12:12:27 +07:00
zarzet 2899be8a53 fix(android): keep background playback resumable
Keep the media service foreground while paused, release CPU wake locks on pause, and demote the service on stop. Await native state publication before requesting audio focus, honor focus denial, and apply the initial MediaPlayer wake mode.

Validated with 141 playback tests and an Android 17 screen-off pause, resume, and stop integration test.
2026-10-23 20:52:10 +07:00
zarzet 8f553c7aa3 feat(windows): prepare native ARM64 builds and packages
Add architecture-specific CI jobs, native playback dependencies and bundle validation. Native Windows ARM64 compilation and runtime testing are still pending.
2026-10-22 23:10:34 +07:00
zarzet b4751c29c8 fix(linux): build FFmpegKit without its bundle on arm64
ffmpeg_kit_flutter_new_audio publishes a Linux bundle for x86_64 only and
its CMake stopped any other build with a fatal error, so the Linux arm64
bundle could not be built. Vendor 2.5.7 with one patch: on an
architecture without a bundle the plugin is built without
libffmpegkit.so, which it already loads with dlopen() and treats as
optional. Desktop runs the bundled ffmpeg CLI and never calls FFmpegKit's
native layer. x86_64 builds keep upstream behavior.
2026-10-21 19:50:27 +07:00
zarzet 268de6ee20 fix(windows): pin flutter_rust_bridge to the version smtc_windows uses
smtc_windows 1.1.0 is generated by and links flutter_rust_bridge =2.11.1
but accepts any 2.x runtime. With 2.13.0 its version check failed at
start and Windows had no media transport controls.
2026-10-21 18:28:59 +07:00
zarzet 5f4bb7ccee fix(lyrics): keep line timers aligned with playback
Sample the current playback clock when a lyric boundary timer fires late and scale boundary delays by playback speed. Cover both themes at normal and accelerated playback speeds.
2026-10-21 03:49:04 +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 bcb1ee8b90 feat(desktop): play through media_kit with MPRIS and SMTC sessions
Windows and Linux now create a libmpv deck through media_kit; macOS,
Android and iOS keep audioplayers. Without libmpv the runtime falls back
to audioplayers.

- The equalizer becomes one libavfilter graph behind mpv's lavfi filter
  (input gain, peaking bands, balance, compressor, -0.5 dBFS limiter)
  after a planar float conversion. Changes set the af property again.
  Filters a libmpv build lacks are probed once and left out; the input
  gain then moves to mpv's volume. Filter failures are reported per player.
- Deck volume is scaled by the in-app output volume on mpv's cubic curve,
  position updates run on a timer, DSD sources throw when libmpv cannot
  open them, and exclusive output has a hook for a later setting.
- The in-app output volume persists across launches on every desktop OS.
- Previews go through the runtime's preview deck, so desktop previews
  follow the in-app volume.
- Linux publishes MPRIS over D-Bus and Windows uses SMTC through
  smtc_windows, both driven by the audio handler.
- The Linux CI job installs libmpv-dev.
2026-10-20 16:55:01 +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 bd4f827a88 Merge branch 'desktop/d4-storage' 2026-10-20 13:44:59 +07:00
zarzet 6aeed936b4 feat(desktop): use plain folders and SQLite FFI on desktop
Windows and Linux open databases through sqflite_common_ffi with the
bundled SQLite; macOS keeps sqflite_darwin. Desktop databases live in
the application support directory. Downloads default to <Music>/Mornye,
and setup and the Files settings pick plain folders without permission,
SAF or bookmark steps.
2026-10-20 13:44:25 +07:00
zarzet f502edd1f2 feat(desktop): route the backend channel through Rust FFI on desktop
Introduce BackendChannel with a MethodChannel implementation for Android
and iOS and a dart:ffi implementation for desktop builds. PlatformBridge
and NativeLogSource select the backend through isDesktopPlatform; mobile
keeps the same channels and call sites. The desktop library loads lazily,
so a missing library fails calls with backend_unavailable instead of
crashing at startup.
2026-10-20 13:38:13 +07:00
zarzet 37e21b5712 feat(branding): rename app and native backend to Mornye
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases.

Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
2026-10-20 12:00:44 +07:00
zarzet 66d480dbdc fix(storage): retain legacy Android cipher migration support 2026-10-18 04:09:16 +07:00
zarzet 317cd254c1 test: declare the path provider interface dependency 2026-10-18 00:46:10 +07:00
zarzet ecf594aac2 feat(equalizer): add multiband EQ and per-player native audio processing 2026-10-17 16:18:30 +07:00
zarzet e56d59c798 feat(theme): adopt Material Symbols and expressive components
The Material theme now draws its main surfaces with rounded Material
Symbols: navigation, player, mini player, queue, settings, sheets,
dialogs and shared controls. AppIcon maps legacy Icons to their symbol
and keeps outlined glyphs unfilled. Mornye keeps its original icons.

Icon buttons, text and filled buttons, dialog actions, sliders, the setup
FAB and indeterminate spinners use the Material 3 Expressive components.
Each wrapper falls back to the standard Flutter widget for Mornye, reduced
motion and custom sizing, so existing layouts and hit areas stay intact.
2026-10-13 18:27:38 +07:00
zarzet 5caa2ed588 chore(flutter): update SDK and packages with glass and navigation compatibility 2026-10-11 14:32:03 +07:00
zarzet d693e1a479 perf(theme): extract cover palettes with native quantization
Port the pinned Material quantizer and Dart RNG compatibility to Rust while keeping Material Score and final color schemes in Dart. Include exact palette fixtures, licenses, and Kotlin worker ABI coverage.
2026-10-06 23:27:38 +07:00
zarzet 541bfc4002 perf(media): shrink FFmpeg while preserving HTTPS motion artwork 2026-10-04 01:35:48 +07:00
zarzet 84cac92983 feat(network): add SMB and WebDAV libraries with streaming and uploads 2026-10-03 04:27:47 +07:00
zarzet 0914e7d978 feat(mornye): restore liquid glass with continuous draggable navigation 2026-10-03 04:24:54 +07:00
zarzet 0b2cf0e4e5 feat(discord): add opt-in mobile rich presence with track artwork 2026-10-03 02:14:11 +07:00
zarzet bbe2caa754 fix(android): preserve remote SAF descriptors for audio and artwork 2026-10-03 02:14:06 +07:00
zarzet d390a214c3 feat(material): adopt expressive controls across the app 2026-09-27 17:01:11 +07:00
zarzet 2d554998b1 chore(deps): update Flutter Rust and Android dependencies 2026-09-26 11:55:51 +07:00
zarzet 7d7716cd6f feat(albums): show formatted editorial descriptions 2026-09-26 03:50:37 +07:00
zarzet 5259c86365 feat(player): add Mornye media notification controls
Sync notification favorites with Library, add Mornye transport icons and an output action on legacy Android, and expose the iOS favorite command. Preserve playback position when controls refresh.

Vendor audio_service 0.18.19 with a small Android patch for custom notification actions. Modern Android keeps its system output switcher and transport layout.
2026-09-26 03:07:38 +07:00
zarzet a9898e8b30 feat(artists): show provider-neutral upcoming concerts 2026-09-25 10:58:19 +07:00
zarzet 63e1a9b9c8 feat(ui): add Mornye glass theme and adaptive music player
Add a selectable Mornye theme with shared glass controls, dialogs, sheets, notifications, and collection headers while retaining Material components.

Update player artwork, lyrics transitions and highlighting, synchronized rolling time labels, volume controls, and compact navigation. Unify metadata, Library, search, and extension surfaces; preserve restored artwork and report extension load failures.

Validation: full Flutter analyzer clean; 713 tests passed and 4 skipped; pinned Dart formatting and diff checks passed; signed ARM64 and ARM32 release APKs built and verified.
2026-09-19 12:10:10 +07:00
zarzet e7cf7e6335 chore(deps): update Flutter and iOS plugin dependencies 2026-09-17 02:59:14 +07:00
zarzet c056bd60a6 build(deps): add archive and crypto dependencies 2026-08-30 23:17:41 +07:00
zarzet d2325dbcbf chore(deps): update Flutter and Go packages 2026-08-30 18:25:59 +07:00
zarzet 4fa0ab860b chore(deps): upgrade Flutter Go and Android dependencies 2026-08-27 10:42:14 +07:00
zarzet cee3d75655 chore(deps): bump locked Flutter dependencies 2026-08-19 21:24:59 +07:00
zarzet bdb10a2ae6 chore(deps): update Flutter and Go dependencies 2026-08-19 11:59:28 +07:00
zarzet 6742fe886f fix(a11y): label interactive controls 2026-08-04 16:40:48 +07:00
zarzet 7972fd64a4 chore(deps): update Flutter and Go dependencies 2026-08-01 18:46:11 +07:00
zarzet 1bf61884cd chore(deps): update FFmpeg and notifications 2026-07-28 20:52:57 +07:00
zarzet a41074d271 chore(deps): update Flutter, Go, and native dependencies 2026-07-24 20:37:07 +07:00
zarzet aa2cdef1d2 refactor: remove dead code across Dart and Go layers
- drop unused widgets (AnimatedStateSwitcher, GridSkeleton,
  adjacentHorizontalPageRoute, buildRemovalAnimation, SwingIcon,
  BottomSheetOptionTile) and empty _buildInfoCard placeholders
- drop test-only Go wrapper methods (GetDownloadURL, MatchTrack,
  CheckAvailability 7-arg, CustomSearchForItemID) and their parsers
- drop unused httputil getters/validators and hand-rolled base64
  decoder in favor of encoding/base64
- remove unused riverpod_generator dev dependency
2026-07-12 09:35:11 +07:00
zarzet d7df859f1e chore(deps): upgrade Flutter packages
Notable: ffmpeg_kit_flutter_new_full 2.1.0 -> 2.2.2 (new native FFmpeg
binaries on both platforms), file_picker 12.0.0-beta.5 -> beta.7,
audio_service 0.18.19, video_player platform packages 2.11.0.
2026-07-10 10:18:02 +07:00
zarzet 3a2481e8b2 feat: add new playback experience and media integration 2026-06-28 22:22:33 +07:00
zarzet 95f5ae610e feat(banner): HLS motion-artwork header banners and audio-quality badges
Add a MotionHeaderBanner (video_player) that plays a looping muted HLS header video with a static image fallback for artist, album, and playlist screens. The Go backend now exposes header_video, header_image, and audio_traits from extensions. Album/playlist headers show the release year and Dolby Atmos / Lossless badges inline, full date and song count in a footer, a centered square cover when no video is present, and a full-bleed video when one is.
2026-06-28 06:06:54 +07:00
zarzet 2f4a62e03c build(android): bump compileSdk to 37 and pin file_picker to beta.5
Pin file_picker to exact 12.0.0-beta.5 since beta.7's published artifact fails to compile on Android. Set compileSdk = 37 so receive_sharing_intent 1.9.0 (compiles against SDK 37) builds against a stable platform.
2026-06-26 21:40:04 +07:00
zarzet e64bea41e6 fix(deps): keep file_picker on 12.x beta to stay win32 6 compatible
file_picker has no stable release compatible with win32 ^6.x (required by device_info_plus/share_plus/connectivity_plus). Its Windows FFI code is compiled even for Android builds, so a win32 override breaks compilation. Revert file_picker to 12.0.0-beta and restore the original pickFile usage. Other Flutter/Go dependency updates remain on latest stable.
2026-06-26 21:33:13 +07:00