Commit Graph
4893 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 519887151d perf(android): fewer provider queries and disk writes in scans and downloads
- SAF inspection reads a document with one resolver query instead of
  several DocumentFile calls.
- The SAF scan flushes its checkpoint every 32 files or 16 KB, rows
  always before the checkpoint.
- The download service finds a worker item by id through a map and
  keeps the transient progress snapshot in memory. The file written
  on real state changes stays the fallback.
- Library covers are hashed and compared outside the lock and staged
  through a unique temporary file.
- Data jobs that need no request rewrite skip the JSON round trip.
2026-11-22 17:21:02 +07:00
zarzet c753f6a0fb perf(backend): cheaper cover resize, MP3 tag read and Library scan
- Cover resize walks whole rows instead of indexing each pixel, with
  the same arithmetic and output.
- MP3 tags and the embedded cover come from one pass over the file.
- A Library scan skips the lyrics sidecar probe when the folder
  listing holds no file with that stem, and reads its pause and
  failure flags without taking a lock.
- Collection restore reuses one prepared insert per table.
- Desktop data jobs that need no request rewrite go straight through.
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
zarzet b3262b8030 docs(history): state the real lock holder for the write retry
The retry added for issue 948 explained itself with a claim that desktop
connections ignore busy_timeout. That only shows in test runs on Linux; the
same bundled SQLite waits the full timeout elsewhere. The lock that matters
is a Library write transaction, which also write-locks the attached
history.db until it commits.

Also puts the dart: imports first and updates the helper comment that still
spoke of three attempts.
2026-11-22 14:01:17 +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
zarzet 4cd416b799 fix(lyrics): own menu icon for Edit translation
Edit translation sat right above Edit lyrics with the same icon. The Save button of the translation editor also picked the Cupertino indicator by hand; AppLoadingIndicator already does that for the Mornye style, as in the lyrics editor.
2026-11-22 03:34:12 +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 3918d4730f chore: bump version to 5.4.5 (171) 2026-11-22 03:22:23 +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
Vedaant f40db33b12 fix(network): rebind the playback proxy after iOS closes it
iOS closes a suspended app's listening socket w/o telling Dart.
2026-11-22 03:17:18 +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 e9e7c0037f feat(equalizer): desktop scroll arrows on the band faders
The equalizer fader row gets desktop scroll arrows.
2026-11-22 02:14:39 +07:00
zarzet dd583f3f96 feat(track): section card and grouped options on track details
Track details use a section card, and the edit sheet shows its header divider only in Mornye.
2026-11-22 02:14:39 +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 84b5c8751b feat(home): desktop menu and paging for Home shelves
Explore tracks get the desktop context menu, and Quick Picks get page arrows and a height that follows text size.
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 6728278ea8 feat(extensions): store and extension pages without content glass
Store, repository and extension pages drop content glass and custom shapes for grouped rows.
2026-11-22 02:14:38 +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 0af28302cf feat(library): delete from the desktop album selection bar
Desktop album pages offer Delete inline in the selection bar.
2026-11-22 02:14:38 +07:00
zarzet c44304c296 feat(lyrics): start-align plain lyrics
Unsynced lyrics read from the start edge like synced ones.
2026-11-22 02:14:38 +07:00
zarzet 0427834a91 fix(motion): snack bars, banners and lyrics follow Animation speed
Snack bars, the motion header banner, lyrics, the track crossfade and the scan counter follow MotionPace and Reduce Motion. Remaining raw snack bars go through showAppSnackBar.
2026-11-22 02:14:38 +07:00
zarzet 44784372e3 style(material): solid container colors without outlines
Cards, badges and queue actions use solid container roles instead of outlines, translucent fills and custom radii.
2026-11-22 02:14:38 +07:00
zarzet 35139f1b51 fix(a11y): 11 pt text floor and full touch targets
Badges, spectrogram and compare labels no longer go below 11 pt, and small controls get 44/48 dp targets.
2026-11-22 02:14:38 +07:00
zarzet 4ed510ed4f fix(rtl): mirror navigation, sliders and rewind taps
The rail inset, desktop navigation, level sliders, player header and rewind story tap zones follow the text direction; transport controls and time rows stay left to right.
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 105a331015 fix(mornye): no Liquid Glass on content surfaces
Repo cards, detail headers, the inspector, queue and details sheets and settings groups use plain grouped fills; glass stays on navigation chrome. Depth-two settings pages take the grouped settings theme.
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 afccca6d50 feat(theme): Material slider theme and readable Mornye onSecondary
Material sliders use primary on a secondary container track. Mornye picks black or white text on the accent by its luminance, as onPrimary already does. The player artwork theme scopes its slider and navigation colors.
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 d3d91a4a60 perf(rust): keep the speed level for the extension JavaScript engine
QuickJS, which runs extension scripts, was compiled for size and ran a
script benchmark (JSON, regular expressions, sorting, string
shuffling) 17 percent slower: 139 ms against 117 ms on the build
machine. rquickjs-sys goes back to opt-level 3. On Android arm64 the
backend library grows by 0.33 MB, from 17.34 MB to 17.67 MB.

The Android build passed -Os to every C compile, which overrides the
level of a crate. The flag goes: C code already takes its level from
the Cargo profile, and the library has the same size without it.
2026-11-22 00:50:26 +07:00