Commit Graph
420 Commits
Author SHA1 Message Date
zarzet 2fe3bf7ab8 fix(link): recover remote covers and retire cancelled playback errors 2026-10-27 17:55:36 +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 eb6e4bb1a8 feat(autoplay): analyze how songs sound
Analyze each Library song once in the background, on the device, and
let Autoplay pick songs that sound like the session and flow into each
other.

- Decode two 24 s mono windows at about 30% and 60% of a song with one
  FFmpeg thread, describe them natively, and delete the PCM at once.
  Documents are opened through FFmpegKit's SAF parameter, not copied.
- Keep features in a small database of their own, keyed by path with
  the file's size, modification time and the analysis version. Failed
  songs are recorded and tried again only once the file or the version
  changes; rows of songs the Library no longer has are removed.
- Sweep one song at a time with rests four times the work, never in
  the first 20 s of a song or while AutoMix mixes. Android sweeps only
  while charging unless the listener allows battery, desktop sweeps
  at that pace, iOS analyzes only the song playing. The song playing
  is analyzed 20 s after it starts, on battery too.
- Add a sound signal: up to +5 for sounding like the latest songs,
  with timbre weighing most over features standardized across the
  songs at hand; each pick loses up to 1.5 for a tempo jump (octaves
  folded) and 1.5 for an energy jump, and gains 0.5 for a neighboring
  key. Unanalyzed songs score and follow as an average analyzed one.
2026-10-25 23:36:14 +07:00
zarzet 74f01b6f93 feat(android): add Android TV remote navigation 2026-10-25 16:36:32 +07:00
zarzet 40ec34b793 Merge branch 'main' into link/integration 2026-10-25 04:33:00 +07:00
zarzet 4682990e6d feat(player): browse and play the Library from Android Auto
Android Auto showed only the current queue, had no search, and could not
love songs or browse until the app was opened on the phone: Dart startup
waited for an Activity, so AudioService never configured and the star
had no handler.

- audio_service: add setFlutterEngineConfigurator so the app registers
  its playback plugins and a playback subset of the backend channel on
  the shared engine whichever component creates it. MainActivity replaces
  that handler with the full backend when it attaches. SAF playback
  leases now belong to the process.
- Start the player, restore the session and set up the media controls
  without an Activity. The star loves songs straight in the collections
  database until the app shell takes the controls over.
- Add MediaLibraryBrowser: Songs (with Shuffle library), Albums, Artists
  and Playlists (Loved first) tabs, grouped search results, paging, and
  voice requests that play songs or the album, artist or playlist asked
  for. Choosing a song plays the folder it came from.
- Return the playing song for media resumption after a cold start.
- Move playable media factories, track file resolution, media identity
  and locale lookup out of the providers so the headless path shares
  them.

Local covers stay out of browse lists because a car cannot open the
app's own files; songs that play keep their artwork.
2026-10-25 04:32:46 +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 fdc94673e1 chore(android): update Gradle to 9.8.2 and android-junit5 to 2.0.2 2026-10-24 12:12:27 +07:00
zarzet 4bdd22d2e8 fix(android): preserve audio routing during player initialization
Preserve the system audio mode and speakerphone route when only player settings change. Apply explicit global routing changes using the incoming context instead of the previous defaults.

Verified with three native routing regression tests and 34 Dart player tests. The Android build and audioplayers lint checks pass. Related to #721.
2026-10-24 10:30:12 +07:00
zarzet 720f34f193 fix(android): coalesce background work progress notifications 2026-10-23 22:35:26 +07:00
zarzet 30c3e42d7d fix(lyrics): recover download lyrics after provider failures 2026-10-23 17:37:43 +07:00
zarzet 30a5c82f0f feat(library): list the files a scan could not read
A finished scan only reported how many files it skipped. The Rust
scanner and the Android SAF scan now record the first 100 failed files
with the reader's reason and include them in the finished progress
report.

Library settings show the count under each folder, and its actions
open a sheet listing each file, its folder and the reason. The list is
kept per folder across restarts, cleared by a clean scan and removed
with the folder. Network folders keep only the count.

Validation: provider, model and Rust scan tests, and the full Flutter
suite on a clean tree with only this series applied.
2026-10-23 03:50:05 +07:00
zarzet 1c2cca6659 fix(library): index songs whose tags fail to parse
Android Library scans counted a file as an error whenever its tag reader
failed, even when the audio was fine, so mixed folders that other
players list cleanly reported dozens of errors.

- Opus and Vorbis files with a comment header but no title or artist
  read as untagged songs instead of failing.
- The comment header is read up to 16 MiB instead of 80 pages, so a
  large cover written on small pages no longer hides the tags.
- Raw ADTS .aac files read ID3 or APEv2 tags, a cover, and quality from
  their frame headers. MP4 .aac files keep the MP4 reader.
- An ID3v2 tag in front of a FLAC stream is skipped.
- Interrupted and short reads from provider descriptors are retried
  instead of failing the read, and the last direct SAF read waits
  400 ms before its retry.

Damaged FLAC, MP3 and AAC streams are still rejected.

Validation: 7 new mornye-core format tests (6 fail without this
change), mornye-core, mornye-extensions and mornye-mobile tests, clippy,
and 17 SafMetadataReadPolicyTest cases.
2026-10-23 03:50:00 +07:00
zarzet 463c2ce938 fix(android): refresh media controls when track metadata changes
Publish metadata and artwork on the main looper, then refresh the playback media ID while preserving position and playback controls. Cover delayed metadata with playing and paused Android session tests.
2026-10-23 02:48:04 +07:00
zarzet 10b561486e fix(library): read tagless audio without losing document names
Distinguish readable MP3 and MP4 streams without tags from failed metadata reads. Preserve partial ID3 and MP4 tags, use the original display name for tagless documents, and expose parser failures to Android SAF scanning. Cover tagless files, partial tags, invalid data, cancellation, and revoked documents.
2026-10-22 21:23:03 +07:00
zarzet d859d3bfda fix(android): resolve SAF audio paths when saving lyrics
Stage content URIs before reading audio for Save LRC, preserve the requested output, and clean up temporary input. Return an explicit failure when the source document is inaccessible.
2026-10-22 19:12:54 +07:00
zarzet 11a9b9a4ec chore: remove redundant comments across the codebase 2026-10-22 01:41:09 +07:00
zarzet cc12080a78 fix(android): avoid Samsung Vulkan crash on SM-S711B Android 16 2026-10-21 19:25:51 +07:00
zarzet 876d4a4766 fix(library): keep scanning when a row has no scan time or is invalid
The Android DSD/WavPack reader built its library row without scannedAt.
Since the native staging validates required fields (d1de8331), one such
file failed the whole import with "Library scan row requires string
scannedAt", so a library containing a .dsf, .dff or .wv file could not
be scanned at all.

Stamp that row in Kotlin and fill a missing scannedAt during native
staging. A row that still cannot be encoded is counted, reported through
invalid_rows, invalid_row_error and invalid_row_paths, and skipped; the
owner logs it and protects the file's previous entry during publication,
as it does for a platform read error, instead of discarding the scan.
2026-10-21 14:22:46 +07:00
zarzet af500a737d feat(lyrics): choose lyrics from each provider in the metadata editor
"Find lyrics online" in the editor's lyrics section opens a sheet that
asks every enabled provider, extensions included, and lists each
answer in priority order with its timing and a preview. The chosen
lyrics fill the field and are saved with the other edits.

The backend gains getLyricsFromProvider, which asks one enabled
provider directly without the cache or the priority race, and
getEnabledLyricsProviders, wired for desktop, Android and iOS.
Provider display names move to a shared helper.
2026-10-21 11:35:19 +07:00
zarzet c9732fe440 fix(downloads): keep finalized FLAC paths and container names consistent 2026-10-21 01:48:14 +07:00
zarzet f72fe69e0f feat(branding): adopt the Mornye logo across the app
Add the Mornye brand kit and regenerate the Android and iOS launcher
icons on the Deep Teal background with a dedicated monochrome layer.
Replace the in-app logo assets, point the README banner at the new
lockup, and drop the old README banners. Download notifications now use
the monochrome mark, matching the playback notification.
2026-10-20 12:29:01 +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 00b7cf9979 fix(crash): reduce repeated notices and retain diagnostics 2026-10-20 03:01:06 +07:00
zarzet 9acaa760a3 fix(haptics): render music pulses on basic motors and add tuning sliders
Phones without tuned haptic primitives often use an eccentric mass motor
that needs tens of milliseconds to spin up. The previous 12 ms on/off
pulses and low-amplitude one-shots were mostly not felt, so only the
loudest hits produced any vibration. On/off motors now play hits from
intensity 0.35 for 25 to 50 ms, and amplitude-controlled motors play
20 to 40 ms pulses with a minimum amplitude.

Analysis keeps every candidate hit with its threshold score, so a new
Sensitivity setting reselects pulses without decoding the song again.
The midpoint reproduces the previous selection exactly. A Strength
setting scales pulse intensity from 0.4x to 1.6x.
2026-10-20 00:24:12 +07:00
zarzet a3b14a285b fix(downloads): embed enriched artwork across audio formats 2026-10-19 23:47:40 +07:00
zarzet 931b10918f fix(crash): exclude system memory kills from crash notices
Ignore low-memory, resource-reclamation, and ordinary kill exits when recovering Android crash reports. Apply the same policy to saved reports from earlier versions while preserving Java/native crashes, ANRs, and fatal signals.

Include process importance and session duration in confirmed crash diagnostics. Validate with 8 Android unit tests, 9 Flutter tests, analyzer, formatting, and diff checks.
2026-10-19 23:30:20 +07:00
zarzet 205e178e5b fix(android): apply renderer compatibility before shared engine creation
Pass renderer arguments when audio_service creates its cached Flutter engine so existing compatibility rules take effect. Use Skia for Xiaomi 25053PC47I on Android 15 as a scoped workaround for the reported Impeller raster crash.

Add tests that keep the new workaround limited to the affected manufacturer, model, and Android SDK.
2026-10-19 20:39:44 +07:00
zarzet cb51d08939 feat(crash): show persistent crash reports on Home 2026-10-19 16:17:58 +07:00
zarzet 378c8f3749 fix(library): recover interrupted scans and stale notifications
Serialize scan notifications and surface failures even when database error persistence fails. Recover interrupted scans independently of auto-scan, retain their checkpoints, and collect matching Android process-exit details on restart.
2026-10-19 15:43:00 +07:00
zarzet a70abf8f76 docs(android): document the native channel contract
Add android/README.md: backend channel routing, the 70 nativeBackendMethods with handler file and reply kind, host-to-Dart events, the __json_file spill, progress EventChannels (400 ms Android, 800 ms iOS), the two foreground services, the SAF model, the Rust bridge files, and the iOS routing differences.

Derived from MainActivity.kt and the MainActivity*.kt handler files, MainActivityProgressStreams.kt, SelectedCoreBackend.kt, RustCoreBackendApplication.kt, NativeDataJobs.kt, SpillJsonWriter, DownloadService.kt, BackgroundWorkService.kt, MainActivitySafScan.kt, MainActivitySafIo.kt, android/app/build.gradle.kts, proguard-rules.pro, ios/Runner/AppDelegate.swift, CoreBackend.swift and lib/services/platform_bridge*.dart.
2026-10-19 05:27:36 +07:00
zarzet e80ae1b1da refactor(android): share the SAF scan percent and CUE helpers
The two SAF scans repeated the same progress arithmetic and CUE steps.
Only the runs that are identical are shared:

- safScanProgressPct(done, total) is the Int/Int to Double * 100.0
  expression all six percent sites used. The incremental scan keeps its
  zero-total guard (100.0), the full scan's call sites keep relying on a
  non-zero total as before.
- reportScanned() replaces the two identical scanned/error/percent
  updates in scanSafTree. The CUE-referenced audio skip keeps its own
  update, which never set errorCount.
- reportProcessed() moves above the changed-CUE loop, whose inline copy
  of its body it now replaces.
- resolveCueSheetAudio() covers the FILE line extraction plus sibling
  lookup that both changed-CUE loops and the unchanged-CUE loop ran.
- scanSafCueTracks() covers the audio name, timestamp, cover key and
  scanCueFromUri steps. The scans fall back to different timestamps
  when the audio's own cannot be read, so the fallback is a lambda and
  still runs only on that failure.

Cancellation checks, checkpoint writes, flushes, the copy/delete of the
temporary CUE file and every counter update stay in place and order;
progress values and the scan output are unchanged.
2026-10-19 05:16:33 +07:00
zarzet eeda955363 refactor(android): move SAF batch exists and modtime queries out of MainActivitySafScan.kt
safExistsBatch and getSafFileModTimes answer per-URI document queries
for library and history checks and do not take part in the scan, so
they move verbatim into SafBatchQueries.kt. The file header of
MainActivitySafScan.kt now describes what is left there.
2026-10-19 05:16:33 +07:00
zarzet 671b5a2502 refactor(android): move SAF tree listing and executors out of MainActivitySafScan.kt
Child listing (with the provider-loading retry), readable tree
resolution, the listing prefetcher and the ordered read pool are the
I/O layer under both scans and the history inspection, so they move
verbatim into SafTreeListing.kt together with their pool size
constants (4 listing threads, 6 read workers, unchanged).
SafTreeLister and runSafReadsInOrder become internal because the scans
stay behind. The pause poll constant stays with safScanStopRequested.
2026-10-19 05:16:33 +07:00
zarzet 2af0fa95e5 refactor(android): move SAF CUE helpers out of MainActivitySafScan.kt
The CUE sheet helpers used by both SAF scans (FILE line extraction,
the per-directory child lookup cache and the audio sibling resolver)
move verbatim into SafCueScan.kt. rememberCueDirectoryListing becomes
internal because the scans stay behind; the sibling extension list and
the lookup builder are only used in the new file and stay private.
2026-10-19 05:16:33 +07:00
zarzet bb930827fa refactor(android): move SAF scan checkpointing out of MainActivitySafScan.kt
The resumable-scan checkpoint helpers (state file path, load,
reconcile against written rows, row count and output repair) are a
self-contained unit, so they move verbatim into SafScanCheckpoint.kt.
They were file-private and become internal because scanSafTree stays
in MainActivitySafScan.kt. The checkpoint file name, its line format
and the reconciled NDJSON keys are unchanged.
2026-10-19 05:16:33 +07:00
zarzet 461e449eb2 refactor(android): move SAF file inspection out of MainActivitySafScan.kt
MainActivitySafScan.kt mixes the library scan with unrelated SAF
helpers. resolveSafFile and inspectSafFiles (with its private request
class) serve history file checks, not the scan, so they move verbatim
into SafFileInspection.kt. Signatures and visibility are unchanged.
2026-10-19 05:16:33 +07:00
zarzet 202923fbd9 test(android): pin the extension and MIME tables
ExtensionMimeTablesTest fixes the outputs of extFromFileName,
extFromMimeType, SafDownloadHandler.normalizeExt and mimeTypeForExt, and
NativeFinalizationPolicy.normalizeExtension for every table entry plus
unknown, blank, uppercase and dotted inputs. The expected values come
from reading the code; the tables are not inverse maps, so each keeps
its own entries.

The two normalizers trim, lowercase with Locale.ROOT and add one leading
dot, with "" for blank input; checking the dot before or after
lowercasing cannot differ. normalizeExt now delegates to
normalizeExtension, which becomes internal. The test passed against
both original bodies before the delegation.
2026-10-19 04:58:25 +07:00
zarzet a19a528735 refactor(android): put the SAF IO helpers on Context receivers
The MainActivitySafIo helpers declared a MainActivity receiver although
they only use Context members and the core backend. They now take a
Context receiver, and the ones that reach the backend take it as an
explicit first parameter, so a service can call them with its own
backend. buildLibraryCoverCacheKey used neither and is now a plain
function.

Bodies are unchanged apart from passing the backend through to the
helpers they call. Activity callers pass their own coreBackend, so the
same instances reach the same code. The finalizer keeps using
SafDownloadHandler.copyContentUriToTemp; switching it would add the
MediaStore fallback and MIME-based extension, which is a behavior change.
2026-10-19 04:58:25 +07:00
zarzet 071d72b255 refactor(android): share the foreground wake lock and start helper between the two services
DownloadService and BackgroundWorkService each built the same partial
wake lock (30-minute timeout, 15-minute renew, not reference-counted),
the same dataSync startForeground SDK branch and the same content
PendingIntent to MainActivity. ForegroundWorkLock now holds the lock and
the shared constants, and two small helpers cover the start branch and
the intent.

The renew strategies stay per service: DownloadService renews on its
progress and maintenance calls once 15 minutes have passed, while
BackgroundWorkService re-acquires from a main-thread Handler timer.
Wake-lock tags, channel IDs, notification IDs, intent flags and request
codes are unchanged, and the verification intent keeps its own request
code and extras.
2026-10-19 04:58:25 +07:00
zarzet f88217dde4 refactor(android): move the lifecycle backend calls into MainActivityLifecycleCalls.kt
MainActivity.kt is now the dispatcher only. The screen wake,
verification notification, install marker, runtime state, exit,
backend implementation and memory release cases keep their labels and
order in the backend `when` and now call MainActivity.handle<Name>
functions in MainActivityLifecycleCalls.kt; processPendingExtensionCallbacks
stays inline.

Bodies move verbatim. prepareRuntimeState takes the backend that
configureFlutterEngine selected as a parameter, as the case body
captured it before, and flutterBackCallback is widened to internal for
exitApp.
2026-10-19 01:24:48 +07:00
zarzet 00b661be21 refactor(android): move the download service and worker backend calls into MainActivityServiceCalls.kt
MainActivity.kt should be the dispatcher only. downloadByStrategy, the
download foreground service, background work and native download worker
cases keep their labels and order in the backend `when`; the multi-line
ones now call MainActivity.handle<Name> functions in
MainActivityServiceCalls.kt, and the one-line stop/pause/resume/cancel
cases stay inline.

Bodies move verbatim apart from the receiver label for this@MainActivity.
2026-10-19 01:24:48 +07:00
zarzet cbf41441ff refactor(android): move the library scan backend calls into MainActivityLibraryScanCalls.kt
MainActivity.kt should be the dispatcher only. The cover cache, folder
and SAF tree scan, and scan progress/cancel/pause/resume cases keep
their labels and order in the backend `when` and now call
MainActivity.handle<Name> functions in MainActivityLibraryScanCalls.kt.
Bodies move verbatim. Every handler takes (call, result) so the
dispatch lines stay uniform, even where a body ignores the call.
2026-10-19 01:24:48 +07:00
zarzet 5d0f274414 refactor(android): move the metadata and tag backend calls into MainActivityMetadataCalls.kt
MainActivity.kt should be the dispatcher only. The metadata, tag,
cover, re-enrich, post-processing and CUE cases keep their labels and
order in the backend `when` and now call MainActivity.handle<Name>
functions in MainActivityMetadataCalls.kt.

Bodies move verbatim apart from the receiver label for this@MainActivity
and re-indenting the FLAC copy-back lines of editFileMetadata, which sat
at the wrong depth.
2026-10-19 01:24:48 +07:00
zarzet 01c51bf751 refactor(android): move the SAF backend calls into MainActivitySafCalls.kt
MainActivity.kt should be the dispatcher only. The backend `when` keeps
every case label in the same order, so the routing set check and the
dispatch order are unchanged, and each SAF case now calls a
MainActivity.handle<Name> function in MainActivitySafCalls.kt.

Bodies move verbatim; the only edit is this@MainActivity becoming the
extension function's own receiver label.
2026-10-19 01:24:48 +07:00
zarzet cf4c05cd93 refactor(android): move install state, extension intents, SAF leases and small channels out of MainActivity.kt
MainActivity.kt mixed the Activity lifecycle and the backend dispatcher
with several self-contained helpers. Give each its own file as
MainActivity extension functions, following the W2-N split:

- MainActivityInstallState.kt: ensureInstallMarker, prepareRuntimeState
- MainActivityExtensionIntents.kt: verification and OAuth intent
  handling, processPendingExtensionCallbacks, session-grant events
- MainActivitySafLeases.kt: SAF playback descriptor leases
- MainActivitySmallChannels.kt: the concert_calendar and audio_output
  MethodChannels, still registered at the same point and in the same
  order in configureFlutterEngine

The state these helpers touch stays in MainActivity and is widened from
private to internal. Bodies move verbatim except that companion members
are qualified with MainActivity. outside the class.
2026-10-19 01:24:48 +07:00
zarzet 20b4c73b8d refactor(android): move RustCoreBackend.invokeApplication into its own file
NT-16 Kotlin part. The application method dispatch (about 290 lines) moves
verbatim into RustCoreBackendApplication.kt as an internal extension
`RustCoreBackend.dispatchApplication`. The `invokeApplication` override
stays in SelectedCoreBackend.kt as a one-line delegate. `synchronized(this)`
still locks the RustCoreBackend object.

The object state and helpers the dispatch uses are widened from private to
internal; method names, argument keys, results and error strings are
unchanged.
2026-10-19 00:21:34 +07:00
zarzet b6b609f334 refactor(android): move Impeller helpers, the SAF tree picker and progress streams out of MainActivity.kt
First NT-12 seam group, following the MainActivitySafScan.kt and
MainActivitySafIo.kt receiver-function shape. Bodies are moved verbatim.

- ImpellerCompatibility.kt: the device lists and shouldDisableImpeller /
  getGpuRenderer, now file-level. ImpellerAwareFlutterFragment stays nested
  in MainActivity because proguard-rules.pro keeps it by that name.
- MainActivitySafTreePicker.kt: the pickSafTree launch (the case now calls
  launchSafTreePicker), the activity-result handler, and the storage id and
  display path helpers. The launcher registration stays a MainActivity
  property so it is still registered at construction.
- MainActivityProgressStreams.kt: both progress EventChannels, their
  start/stop/poll helpers and the channel name and polling constants.

Stream state, the picker store, the launcher, the coroutine scope, the
backend channel and the companion's pending picker result are widened from
private to internal so the receiver functions can reach them. Channel
names, payload keys, error codes and dispatch order are unchanged.
2026-10-19 00:21:34 +07:00
zarzet cc9b9f1162 test(android): assert the backend routing set matches the dispatch cases
MainActivity handles a backend call in its own `when` only when the method
name is listed in `nativeBackendMethods`; any other name falls through to the
selected core backend. A name added to only one of the two silently changes
where the call is handled. This JVM test reads MainActivity.kt as source,
extracts the set literal and the top-level string case labels of
`when (call.method)`, and fails with the symmetric difference when they drift.
2026-10-19 00:21:34 +07:00
zarzet b5cf97881f refactor(android): move finalizer history into NativeFinalizerHistory.kt
Move worker request contract validation and the download history row
and JSON mapping out of NativeDownloadFinalizer into a sibling file of
extension functions. Bodies are verbatim. NATIVE_WORKER_CONTRACT_VERSION
stays on the object with its value, so its contract test is unchanged.
The history column contract test now reads buildHistoryRow from the new
file. normalizeOptional moves with the row builder, so
cleanMetadataString widens from private to internal.
2026-10-19 00:14:47 +07:00