Commit Graph
1716 Commits
Author SHA1 Message Date
zarzet b6bdaf8db4 fix(album): start the description right under the sheet's round edge
On a Material phone the list under an album header rises as a sheet with
a 28 dp round edge. Song rows start right below that edge, but an album
description added 8 dp of its own and the space a 1.4 line height puts
above the first line, so its text sat about 12 dp lower than the rows do
and the sheet looked empty at the top.

As the first thing on that sheet the description now adds no space above
itself: no padding, and the first line without its extra ascent. Mornye
and the desktop, which have no round edge, keep the 8 dp.
2026-11-22 22:52:05 +07:00
zarzet 23d151e4e6 fix(metadata): keep the row's picture on a landed cover until its own is decoded
The cover that flies from a list row into track details lands on the
header's cover, which is decoded at the full width of the screen. The
flight shows the row's picture under it, so a decode still running is not
seen while the cover flies. That only held while the flight outlasted the
decode: the Material page push went from 800 ms to 350 ms, and a large
picture in a file is not decoded by then. The cover landed, went empty and
popped in when its decode finished, the first time a song was opened.
With a 7000 px PNG on the emulator the cover was gone for 0.8 s.

The header's cover now shows the row's picture itself for as long as it
has no frame of its own, so the picture that flew in stays where it
landed and the sharp one takes over when it is there. It is the picture
of the row this song was opened from: moving to another song inside the
page does not show it.
2026-11-22 22:05:55 +07:00
zarzet 38335b81db feat(motion): an arriving Material page fades in with its way in
The push curve covers half its distance in the first four frames, up to
68 px a frame on a 1080 px screen. The page was 70 percent solid by the
third of them, so those steps were plainly seen.

Its opacity now follows its own way in and is full at three quarters of
it (about 130 ms, with 78 px left): faint while it moves fastest, solid
while it slows.
2026-11-22 20:05:37 +07:00
zarzet 4da1dd88f2 fix(motion): a transition that starts late plays whole
A page's first frames are its heaviest, and a ticker counts the time they
took: the frame after them showed the page most of the way in. On the
emulator under load a push that should read 310, 242, 188, 150 px from
rest on consecutive frames read 310, 120, 62.

Routes now run on SteadyStartTicks, which counts a late frame near the
start of a run (more than 2.5 frames at once, within the first 150 ms
shown) as one frame. The transition starts late and plays its whole
length, as a native animator does by moving its start time.

SteadyPageRoute is the material page route with it. Every place the app
pushes a page uses it, and NowPlayingRoute mixes SteadyStartRoute in.
Restarting the controller instead would cancel the push's ticker future,
which makes the navigator drop a replaced route early.

Tests that push a page and then pump one long step now see a late frame,
so they pump frames of 16 ms instead.
2026-11-22 20:05:37 +07:00
zarzet dd139d923b feat(motion): Material pages follow the system back swipe
Going back with the system gesture popped a page only when the finger
was lifted: nothing moved under it. A swipe now seeks the page's own
pop. The page draws in as a card under the finger, evenly, to about 90
percent at a full swipe, over the page below; letting go finishes the
pop from where the finger left it, and a cancelled swipe puts the page
back.

One observer does this for the whole app. It asks the navigators in
the order a back press does (the root first, then the open tab) and
only moves a page that a press would pop, so a dialog, sheet or menu
above a page still closes first and a page that blocks back is left
alone. Per-route observers, as the framework's own builder uses, pick
the wrong navigator in an app with nested ones (flutter#152323).

The page transition now reads which way it plays from the end the
animation left instead of from its status: during a swipe the route's
animation still reports forward while it seeks the pop.
2026-11-22 20:05:37 +07:00
zarzet b2c161d858 feat(player): Material player grows and shrinks as one solid surface
The Material player grows out of the mini player, but the page faded in
over the first 200 ms and faded out over the last 70 percent of the way
back, so the Library was read through a whole screen of player in both
directions, and its header and title crossed the screen as ghosts on the
way down. The controls came in on a timed fade that ended long after the
surface had arrived, and the cover flew on the Hero's own ease, far
behind the surface it belongs to.

Everything now follows how far open the surface is. It is solid from a
fifth of the way, so only the last stretch above the mini player is ever
see-through; the player's content shows from a quarter of the way, in
both directions; and the cover's flight undoes the Hero's ease and runs
on the surface's spring, in a straight line instead of an arc.

The surface opens on the default expressive spatial spring (stiffness
380, damping 0.8) and closes at the same stiffness, critically damped,
so it never passes the mini player: about 430 ms instead of 520.

The Mornye style, the desktop player and a player that slides up
without a mini player keep their motion.
2026-11-22 20:05:37 +07:00
zarzet 898c1b1fdb feat(motion): Material pages push solid and pop as a card
Pushing a page on Android in the Material style used the fade forwards
transition: both pages were half transparent for a third of a second,
so each was read through the other, and the arriving page then kept
fading in for most of the transition. The builder also drew the
arriving page into a picture once and animated that picture, so a cover,
its colours and the song rows that were ready a frame later stayed at
their first-frame state and jumped in when the transition ended.

The new builder never takes a picture of the page. A pushed page comes
from a third of the width away on the standard curve and is solid within
its first tenth of a second, while the page it covers moves a quarter of
the width aside under a scrim. A popped page leaves as a card: it draws
in to 88 percent and rounds its corners first, then slides off on a
cubic curve, over the page below, which is back in place and bright
before the card has gone. Both directions take 350 ms.

Reduced motion and the Animation speed setting keep working through the
wrapper. Desktop, iOS and the Mornye style are unchanged.
2026-11-22 20:05:37 +07:00
zarzet 428e213f6a feat(player): turn External player into a download focus
Some people use the app only to download and play in another app.
With External player chosen, what only works with the built-in player
was partly hidden already (mini player, Continue listening, queue
actions) and partly left in place, shown disabled or doing nothing
useful. It is now hidden everywhere, so the app reads as a downloader
and file manager:

- Home: mixes, Recently Played and On repeat. Shortcuts keep four
  tiles; Shuffle, Equalizer and Listening stats give way to the next
  usable ones and are not offered in the picker. The Shuffle shortcut
  used to start the built-in player with no player on screen.
- Library: Shuffle on the song list, albums, folders and mixes (another
  app takes one song at a time) and the Rewind banner.
- Profile: Now playing, the listening sections and Listening stats.
- Settings: Playback shows the player choice and a note naming the way
  back; its entry says songs open in another app. Lyrics keeps what is
  saved with a download and hides the lyrics view settings. The
  Continue listening and Swipe to queue switches are hidden, and
  Settings search leaves the same entries out.

Nothing is deleted: the queue, the listening record and every hidden
setting keep their values and return with the built-in player.

Screens read playerUiEnabledProvider, which stays on while a remote
device is controlled; settings read AppSettings.usesBuiltInPlayer.
2026-11-22 18:25:42 +07:00
zarzet 2e5599466e perf(app): fewer rebuilds, repaints and preference writes
A broad runtime pass, reviewed hunk by hunk. Kept are the changes
that leave behaviour and appearance as they were:

- Lists and rows: the swipe background, the track card shape morph
  and the queue artwork morph build their animation only while it
  runs; filtered lists and completion lookups are cached or indexed.
- Player: provider watches hoisted out of per-line builders, repaint
  boundaries around the cover, backdrop and controls, idle timers and
  shimmer stop while the route is hidden or the app is paused.
- Painters: the equalizer grid, the compare selection and the squircle
  path no longer redo static work on every frame.
- Startup and settings: extension storage prepares beside the settings
  load, the theme writes only the keys that changed, and one-off
  cleanups record that they ran.
- Scrobbling ignores position-only ticks, a received lyrics
  translation update is compared directly, and large native data job
  payloads encode off the main isolate.

Left out on purpose: SQLite pragmas and a new index (unmeasured),
the search prefilter for albums and artists, the lyric line rework and
word sweep steps, cover fade changes, sheet sizing, audio writer
timing, widget cover caching, and all Swift changes, which cannot be
compiled here.

Fixed on the way in:

- A batched download status update kept the old path and error where
  the direct update clears them.
- The romanizer shortcut skipped 52 letters outside the Latin
  alphabet that sit in symbol blocks, such as the ohm sign.
- The two lazy morph states created a second animation controller on
  a single ticker provider, which asserts the second time a row
  becomes the current song.
2026-11-22 17:21:02 +07:00
zarzet d7fb178288 fix(menu): widen a Material menu to fit its longest label
The Material 3 Expressive popup takes the anchor's width plus 176dp,
capped at 280dp, and cuts longer labels with an ellipsis. Beside an
icon button that is about 224dp, so the Indonesian "Sembunyikan
Terjemahan" in the lyrics menu read "Sembunyikan Terjema...".

showAppMenuPopup now measures its labels with the menu's own label
style, icon, paddings and shadow inset, and asks for that width when
the usual one would cut a label, raising the 280dp cap only when needed
and never past the screen edges. Menus whose labels fit keep their
width.
2026-11-22 17:21:02 +07:00
zarzet f168f5565f fix(lyrics): translation editor rows match the lyrics editor
The translation editor from PR 926 stacked four lines of text in its
header and gave every lyric line its own outlined field under a label,
so it read as a form beside the lyrics editor's connected list in both
styles.

Lines are now one connected list on the lyrics editor's fills and
corners: each row shows the original above a borderless field, and the
row being typed in rounds its ends on secondaryContainer like the lyrics
editor's selected line. A tap anywhere on a row focuses its field. The
header keeps the title and the track only; the target language moves to
a caption under the lines, and the note on word timing and emptied
lines shows there only when there is a translation to change. The
strings of this editor and of the lyrics editor get Indonesian
translations.
2026-11-22 17:21:02 +07:00
zarzet 9a506b8aaf fix(history): let History and Library writes take turns instead of racing
Issue 948: a finished download showed as failed with "database is locked".
The Library connection has history.db attached, and BEGIN IMMEDIATE takes
the write lock on every attached database, so each Library write transaction
(a scan publication can run for a long time) shut History writes out. SQLite
settles that race with a timeout only, and the download's history write was
the one that lost.

Both connections are ours, so they now wait for each other in Dart. A
connection joins a named writer queue (History when it opens, the Library
connection where it attaches history.db) and transactionWithBusyRetry runs
the queue's transactions one after another, in the order they asked. The
download stays in its finalizing state until its history row is written and
then completes.

Guards: a write made inside the holder's own transaction skips the queue, as
it cannot wait for itself; a callback that outlives its transaction queues
again; after two minutes a waiter goes to SQLite anyway, so a stuck holder
cannot stop every later write. The BEGIN retry stays for holders outside the
queue (plain Library transactions, native code).
2026-11-22 14:18:20 +07:00
zarzet 3d9269947a feat(home): lead from the greeting straight into the sections
The Material Home kept a grey prompt between its greeting and the first
section. It was written as the lead into the search field ("What are we
listening to?", "Got a link? Drop it in the search"), and stayed behind
when Search became its own tab, so the page opened on three lines of text
before any content and two of its three prompts pointed at a field that is
no longer there. The row and its strings are gone; the Mornye Home never
had it.

That row was also where a tap showed "Search is here now" above the Search
tab. With the row gone the hint shows by itself instead: once, on Home,
for an install that ran a build with the field on Home. A settings
migration notes that it is owed (a new install is not), and it is settled
when the hint has stayed up for two seconds. A touch dismisses a tooltip,
so one that comes sooner leaves it owed and the next launch shows it
again, still at most once per run.
2026-11-22 14:12:41 +07:00
frpboy 2222960d06 Retry contended history.db writes instead of failing
Port of the fix reviewed and tested in frpboy/Mornye to upstream main.
transactionWithBusyRetry gains an optional retryDelays schedule; the seven
history write paths use a seconds-long schedule sized to outlive native
library-merge lock holds. Adds real cross-process contention tests.
2026-11-22 13:55:22 +07:00
zarzet 20e4a96b3b fix(metadata): fly the row's picture until the track details cover is decoded
The cover that flies from a list row into track details is the header's
own cover, decoded at the full width of the screen. That decode only
started once the page was built, so on a first open the row's cover
vanished, nothing flew, and the header's cover popped in when its decode
finished: a blink on the cover, longer the larger the picture in the file.

On the way in, the flight now keeps the row's picture under the header's
cover, so there is a picture from the first frame and the sharp one takes
over as soon as it is there. The decode of a cover in a file also starts
when the opener readies the page instead of when the page is built, in
both styles; it is not waited for, so opening is not delayed.
2026-11-22 04:01:57 +07:00
zarzet 6ddd0639d1 feat(home): point at the Search tab from where the search field was
The Material Home carried the search field under its greeting until
Search became its own destination, so people still tap that spot out of
habit. A tap there now shows "Search is here now" above the Search
destination for five seconds, or until the next touch. It shows once per
app run and is never saved, so it cannot repeat during a session but can
help again after a restart. A request made while the Search icon is off
screen does not count as shown.
2026-11-22 03:41:35 +07:00
re-code a550b31073 feat(lyrics): edit and add translations by hand 2026-11-22 03:34:12 +07:00
itzSho3aib cec4460a36 fix(windows): allow absolute Windows download directories in extension sandbox 2026-11-22 03:34:12 +07:00
zarzet a44424bb40 fix(preview): take a preview from any extension that knows the song
Reading a dead preview link again only asked the extension the song came
from. An extension without previews of its own, which carries a borrowed
link on some songs, has nothing newer to give, so its songs still ended in
"Preview unavailable".

When the song's own extension has no newer link, every enabled extension
is searched for the song and the first result that is the same recording
gives its preview: the same ISRC when both carry one, else the same title
and first artist. The lookup fails only when no extension could be asked,
so a song is not marked unavailable while offline.
2026-11-22 03:31:28 +07:00
zarzet 5694a9a188 fix(preview): read a preview link again when it no longer plays
A preview link is a snapshot of the moment a song was read. One service
signs its links for 15 minutes, while the Recommended shelf on Home keeps
its songs for a day, and an extension without previews of its own can
carry such a borrowed link on some songs. Pressing the button then waited
on a dead link twice, up to the player's 30 second prepare wait each
time, and ended in "Preview unavailable".

- When a link fails to start, the song's own extension is searched for
  the song and the link it has now is played instead. The button keeps
  owning the preview under the link it was built with, and the next press
  starts from the link that worked.
- A link that still does not play although its extension answered, or
  that its extension resolves to nothing, is not offered again while the
  app runs: its button hides instead of failing on every press.
- Starting a preview gives up after 10 seconds instead of the player's
  own wait.
2026-11-22 03:22:23 +07:00
zarzet b8aff389cd feat(sheets): connected option rows on every Material sheet
The Now Playing More menu lists its actions as one connected group: each
row its own surface, 2dp from the next, large corners only at the ends of
the group. Other sheets still put flat rows straight on the sheet, or one
card split by dividers, so the sheets did not look alike.

- AppSheetOptions wraps a run of AppSheetOption rows in that group, and
  showAppChoiceSheet uses it, so every choice sheet follows.
- ConnectedGroupRow gives the same surface to a row of a lazily built
  list (languages, countries, folders, playlists, an album's custom
  order). The lyrics language list is built lazily again through it.
- The song page's More menu is a connected group of SettingsItem rows
  under its fixed song header and sits in AppScrollableSheet. Its
  dividers and its own tile are gone; SettingsItem takes a titleColor for
  the destructive row.
- Up Next rows are the same group: the playing song is filled in the
  group's shape, the rows sit 16dp from the sheet's edges, and the strips
  under a swipe follow the row's corners. Opening at the playing song
  counts the gap between rows.
- The editor's option picker and the re-enrich results join their rows
  too.

Mornye keeps its rows on the sheet's glass.
2026-11-22 03:22:23 +07:00
zarzet aa23152787 test(network): rebind a proxy whose listener the system closed
A test hook closes the playback proxy's listener the way iOS does to a
suspended app; resolve must then bind a new proxy that accepts
connections, and keep a proxy that still listens. The test fails
without the fix from #947.
2026-11-22 03:20:45 +07:00
zarzet cce7fd3c82 fix(lyrics): lyric line reads as sung, translation by its own setting
The lyric line under the player title showed the translation instead of
the sung line whenever the full lyrics' translation switch was on, so a
Japanese song read in English there. It now shows the sung line, and a
new "Translation in lyric line" switch in Lyrics settings (off by
default) shows the translation instead.

A shown translation is passed on with its own word timing, so it sweeps
word by word as it does in the full lyrics; before, it fell back to
plain text whenever the translation replaced the line.
2026-11-22 02:57:59 +07:00
zarzet bc17ab91cc fix(metadata): follow the Metadata Priority when opening an artist or album
A tester asked that opening an artist go to the provider at the top of
their Metadata Priority instead of another one.

Opening an artist or an album from a name (the player, the Library, a
credit) asked the search provider first and the Metadata Priority list
only after it, although that setting says providers are tried from top to
bottom. The list now comes first, then the search provider and the other
extensions that can search. An item that names its own provider, such as a
search result, still opens there.

"Open in Other Services" lists the services that found the item in the
same order, instead of by name.
2026-11-22 02:29:46 +07:00
zarzet eaac5e9794 fix(sheets): size every sheet to its content
A sheet whose body was a list that fills the space it is given (a
ListView, ReorderableListView or CustomScrollView without shrinkWrap)
stayed at 85% of the screen however few rows it had, because the fitted
sheet only measured its content box and the scroll overflow. The Details
sheet of the player showed it: a handful of rows, then empty space down
to the bottom of the screen.

AppScrollableSheet now also subtracts the part of such a list's viewport
that its rows leave empty, so the sheet ends at the last row. It takes
initialSize and maxSize caps, which lets the sheets that used a fixed
DraggableScrollableSheet share the same fitting:

- Up Next (60%, grows to 90%); it asks for a new fit when the queue
  changes length, since a list that loses rows reports no change.
- The Mornye Details sheet (75%, grows to 90%) and its desktop dialog.
- The convert sheet, which follows the options of the chosen format.

Plain sheets with a filling list are fixed where they are built: the
re-enrich results and the Add to playlist list shrink-wrap, the playlist
loading state no longer takes the full list height, and the full album
description is as tall as its text instead of always 90%.

Edit metadata and the lyrics editor keep their fixed height: their forms
are longer than the sheet on phones.
2026-11-22 02:29:46 +07:00
zarzet 2e43ec775a feat(artists): connected rows for artists, releases, concerts and stats
Favorite artists, weekly releases and concerts use connected rows with empty states, statistics periods are a segmented choice, and artist and album headers follow the header palette.
2026-11-22 02:14:39 +07:00
zarzet c8c7990a0f feat(search): plain result rows and a sort that applies on tap
Mornye search results use plain rows and chips; the sort sheet applies a choice on tap without Reset and Apply.
2026-11-22 02:14:39 +07:00
zarzet c5cd9acaf7 feat(settings): Mornye grouped lists on settings pages
Settings, profile, logs, cache, backup, Link, network storage and recognition pages use the grouped settings theme, adaptive icons and the nav bar spacer.
2026-11-22 02:14:38 +07:00
zarzet 23c86bee2f feat(settings): value headers and continuous sliders
AutoMix, lyrics size and normalization show their value in a header above a continuous slider. The normalization mode is a segmented choice that shows its disabled state.
2026-11-22 02:14:38 +07:00
zarzet 0a21b07bb5 feat(mornye): Cupertino buttons, menus and activity indicator
ExpressiveButton draws a CupertinoButton in Mornye, AppMenuButton and the lyrics options open the Mornye context menu (Material gets an anchored M3 popup), the view toggle is a segmented control and AppLoadingIndicator draws the activity indicator. Destructive actions use the error color in Material and system red in Mornye.
2026-11-22 02:14:38 +07:00
zarzet 5fadb285d9 feat(mornye): map more Material icons to Cupertino symbols
Shared icons (headers, error cards, sheets) go through AppIcon.adaptive, and the Mornye map covers playback, files, privacy, status and navigation glyphs. link_off maps to a minus circle rather than the plain link.
2026-11-22 02:14:38 +07:00
zarzet afb5bee33c feat(motion): Mornye lists show rows at once
The staggered row entrance is a Material pattern, so Mornye skips it. The
stagger delay in Material follows Animation speed.
2026-11-22 00:46:25 +07:00
zarzet bd4161d365 feat(motion): exits follow each style and Animation speed
Leaving motion used ad hoc ease curves and fixed durations. Mornye exits
now use its fast spring (from the current velocity where a controller
drives them) and Material exits use the standard accelerate curve, paced
by Animation speed: dialogs, the desktop inspector and now playing pane,
queue row removal, the selection bar, the Mornye snack bar, desktop page
pops, the recognition switcher and the theme change.

Material dialogs always take the app's dialog route, which shows at once
under Reduce Motion.
2026-11-22 00:46:25 +07:00
zarzet beab979c0a feat(motion): shared Liquid Glass springs and style-aware sheet motion
MornyeMotion gains glassPress and glassMorph springs, so the glass press,
the folding tab bar and the pouring context menu share one tuned spring
each instead of private constants, and follow Animation speed. The menu
opening now runs on the glassMorph curve over the route's progress.

AppMotion.surfaceEntrance also covers Mornye sheets and menus (slow spring
in, fast spring out), gives Material a fastest-first exit curve and turns
the transition off under Reduce Motion.
2026-11-22 00:46:25 +07:00
zarzet 43112cb9e5 feat(home): recommend songs outside the Library
Home gains a "Recommended for you" shelf in both styles, after Recently
added: songs the person does not have that resemble the ones they play
most, added last and loved.

The songs come from the machinery behind "Suggested songs": an extension
that suggests related songs, else a metadata provider searched by artist.
Three seeds are taken from a pool of up to 45 Library songs, and each day
starts from other songs of the pool. One request is made per day; the
answer is kept for the day, and a failed request falls back on the last
day's songs. Songs already in the Library are left out when the shelf is
shown, so a recommended song leaves it once downloaded. Seeds from files
carry no ID, since a file's ID may be its path.

As on search results, a tap downloads the song and a long press or a right
click opens its actions; a song with a preview has a preview button on its
cover. The shelf is absent while it has nothing to show.

Appearance > Layout has a switch for the shelf, on by default.
loadCollectionSuggestions takes the number of songs to return.
2026-11-22 00:34:47 +07:00
zarzet f4c9766bf0 feat(home): keep Home personal and open Search on the extension feed
Home showed either the chosen extension's feed or the person's own
sections, never both, so anyone with a feed extension lost the
shortcuts, mixes and Library shelves, and the Material Home also carried
the search field.

Home is now the person's own page in both styles and never asks for a
feed. Search is a destination in both styles (Home, Library, Store,
Search, Settings; Mornye phones keep Settings as a page) and opens on
the feed before anything is typed. Recent searches wait for the field
while a feed fills the page; a tap beside the empty field, Back, or the
Search destination pressed again returns to the feed. Without a feed
Search opens on recent searches, and with neither a provider nor a feed
it shows the provider prompt under the field. The Mornye bar's search
button opens the feed first and focuses the field when pressed on
Search, or at once when there is no feed. The Mornye desktop Search page
keeps its recents row and Browse tiles.

Both styles now share one destination order, so the search tab flag of
the shell navigation service and the style argument of the tab order
helpers go. The Material rail and Cmd/Ctrl+1..5 gain Search.

With an empty Library and nothing played, Home says so in both styles
and offers a "Find music" button that opens Search; the Library's empty
state on Mornye leads there too. The feed setting is renamed from Home
feed to Search feed (English and Indonesian; other languages keep the
old wording until translated). The feed no longer repeats the greeting
or Top Picks, which Home already shows.
2026-11-22 00:34:47 +07:00
zarzet 2139e777e2 fix(lyrics): load the pinyin data on Android
Chinese lyrics showed no pinyin on Android. With Flutter 3.50 the
Android build passes Flutter assets through the Android asset merger,
which unpacks a file ending in .gz and drops the extension. The APK
held assets/romanization/pinyin.txt, the app asked for pinyin.txt.gz,
and the missing asset left romanization off without an error.

The file is now assets/romanization/pinyin.bin, still gzipped inside,
which the merger leaves alone. On an emulator the same lyric file shows
no pinyin in the build before this change and pinyin after it.
2026-11-22 00:17:34 +07:00
zarzet eb00d26725 build(icons): bundle only the icons the app draws
material_symbols_icons ships whole icon fonts and relies on Flutter's
icon tree shaker, which left 334 KB of the Rounded font in the APK.
third_party/mornye_symbols holds that font cut down to the 253 symbols
lib/theme/material_symbols.dart names, with the upstream code points
and the FILL and opsz axes; it takes 71 KB in the APK.

scripts/optimize_fonts.py regenerates the package from the upstream
one after an icon is added.
2026-11-22 00:15:00 +07:00
zarzet 5d24a76e85 build(l10n): generate only the shipped languages, compactly
flutter gen-l10n wrote a class for each of the 21 ARB files, and every
class repeated the English text of each message its language has not
translated. The app only offers the 13 languages of
supported_locales.dart.

scripts/gen_l10n.dart writes those 13 only. Each language class extends
the English one and overrides just the messages whose text differs, and
the bare es, pt and zh classes are left out where only a country
variant ships. For the 13 languages every message resolves to the same
text as before (compared across all 2989 messages).

Flutter no longer generates the files: l10n.yaml is gone and pubspec
sets generate: false, because a root l10n.yaml makes every build run
Flutter's own generator. Run `dart scripts/gen_l10n.dart` after ARB
changes and once in a new checkout; build_android.sh does it too. The
script also drops the records of earlier Flutter-generated outputs from
.dart_tool, which made the next build delete the files as stale.

locale_config.xml lists the same 13 languages for Android's per-app
language setting. The Arabic layout test brings its own delegate, as
the app ships no right-to-left language. build_android.sh also passes
MORNYE_MOBILE, which a later commit reads.
2026-11-22 00:14:03 +07:00
zarzet 58861aad8e test(player): switch Local Library on for the Resume card tests
Since cf68a7d94 the Resume card asks History and the Library whether
the saved song is a scanned one while Local Library is off, which is
the default. The two runtime tests read the card with default settings
and the real download History, which never opens in a unit test, so
both waited until the two minute timeout. Give their containers
settings with Local Library on; the filter has its own tests in
playback_session_restore_test.
2026-11-21 23:07:20 +07:00
zarzet afcaca40ed test(desktop): tap a settings category instead of the profile row
The fade test taps the first row that is not Appearance, which is the
profile row. The profile page now shows a loading indicator until its
listening overview has loaded, which never happens in this test, so
pumpAndSettle timed out in Material. Leave the profile row out: the
test is about moving between categories.
2026-11-21 23:07:20 +07:00
zarzet ad525ba4ba test(files): scroll to the folder template row on a phone
The Files settings list is built lazily. The folder cover and motion
cover rows added above it pushed the folder template row out of the
part a phone sized window builds, so ensureVisible found no element.
Scroll until the row exists instead.
2026-11-21 23:07:20 +07:00
zarzet 4004a76c23 test(metadata): read the cover checks from the header part
13a2d9c73 rebuilt the track details header and moved the cover code
from the cards part to the header part. The source check still read the
cards part and looked for the old one line cover helper. Read the
header part and match the call it makes now.
2026-11-21 23:07:20 +07:00
zarzet 1be4755ad7 test(native): skip the symlink statistics test without the library
The group of tests against the real backend library is skipped unless
the library path is set. Its symlink test passed "skip: false" on every
platform but Windows, which overrides the group and ran it without a
library. Pass null there so the group decides.
2026-11-21 23:07:20 +07:00
zarzet 5ac7b651f5 test(auto): initialize the binding for the browser cover test
The cover store names a fetched cover by its hash. Since ab7157aa0 the
hash goes over the backend channel first and falls back to Dart only on
a MissingPluginException. This file never initialized the test binding,
so the channel call threw another error, the fetch counted as failed
and the test met a null path.
2026-11-21 23:07:20 +07:00
zarzet bd01be76ef test(library): give the v14 upgrade fixture the columns it indexes
The rollback test builds a cut down version 14 Library table. The
upgrade to version 21 creates the album key and album artist indexes
again, and the fixture had neither column, so the retry failed with
"no such column: album_key". A real version 14 database has both since
version 7.
2026-11-21 23:07:20 +07:00
zarzet 866445926e test(library): give the History fixtures the origin file column
The Library hides a scanned song that a download already holds, and
since 6e07941b3 that check also reads history.origin_file_path. Five
test fixtures build the History table by hand without that column, so
every Library read in them failed with "no such column:
offline.origin_file_path". The CUE split fixture had no History table
at all and failed with "no such table: history_db.history".

Add the column to the search, paging, directory entries and Windows
path key fixtures, and a minimal History table to the CUE split test.
The file size test uses the paging fixture and passes again with it.
2026-11-21 23:07:20 +07:00
zarzet 3582a58d3a perf(library): redraw only the rows whose cover changed
One counter made every visible cover in the Library rebuild whenever a
single embedded cover was extracted. EmbeddedCoverVersions keeps the
listeners by file, so a new cover reaches the rows of that file only,
and it hands the cover resolver one callback per file instead of a new
closure on every build.

The fade of a decoded local cover drops its backdrop once it is over,
and the cover warm-up decodes by width alone, as the grid cell does, so
the cell reuses what was warmed. The Library remembers its playlist
order and its artist and genre sections between builds, and a cover file
found on disk is trusted for 30 seconds before it is looked at again.
2026-11-21 21:59:11 +07:00
zarzet 5be1786d8a fix(link): keep a typed computer address instead of the one discovery finds
A computer paired by typing its address, for example a VPN address, lost
that address as soon as the phone saw the same computer on the local
network: discovery moved the saved record to the address found there
without checking that it answers. Discovery runs again whenever the app
comes back to the front, the network changes or the connection drops, so
the move happened some time after pairing. When the found address is
blocked by a firewall that lets the VPN through, or the phone later leaves
that network, the computer could not be reached any more, and restarting
either app did not help because the typed address was gone. Only removing
and pairing again brought it back (issue 945).

The record now remembers that its address was typed, and discovery leaves
such a record where it is. Seeing the computer on the network still makes
the phone try the typed address again at once. Pairing again keeps the
typed address; choosing the computer from the nearby list makes it follow
discovery as before. Records saved earlier were never marked and behave as
they did.
2026-11-21 21:34:08 +07:00
zarzet 7ac57ea618 feat(automix): choose how often songs are mixed on their beats
AutoMix mixes two songs on their beats only when it is sure of both beat
grids, and otherwise crossfades. Measured offline over 64 songs of a mixed
library in every order, that was 0.8% of the pairs: 96% failed because one
of the two grids was not certain enough, 3% because the tempos were too far
apart, and none because of a late first beat.

Lowering the confidence a single analysis window needs was not the way: of
the songs whose first window scored 0.25 to 0.35, fewer than half kept the
same tempo six seconds later. Agreement between two windows is the better
evidence, and the analyzer already asked for it, but only from a second
window that was itself certain. A grid recovered that way is now marked
confirmed, and the new Beat matching setting chooses how certain the
confirming window must be and how far the incoming tempo may move:

  Standard     0.55, 8%   0.8% of pairs (unchanged behaviour, the default)
  More often   0.40, 10%  3.7%
  Most often   0.30, 12%  6.2%

The tempo and phase agreement the analyzer requires is unchanged, and so
are the first beat limit and the alignment check when the mix starts.

The setting rests while the transition effect is Crossfade, travels with
Link sound sync (a peer without it ignores the key), and falls back to
Standard for a value it does not know.
2026-11-21 21:20:02 +07:00