BigMoeOnEdge/examples/android/app
Helldez 727e934022 refactor(android): stream download progress instead of polling from the UI
AddModelSection owned the download control loop: it polled every in-flight
transfer on a 700 ms timer, finalized .part -> .gguf itself, tracked a second
map of ids alongside the progress map, and re-seeded both by hand after every
enqueue and cancel.

ModelDownloader.events() now exposes that as a Flow over WorkManager's own,
emitting the in-flight set plus a Completed/Failed outcome per download, and
finalizing a landed file before it reports it. The composable collects and
renders; the reseed calls and the id map are gone. Work already terminal when
collection starts is finalized but reported silently, so a relaunch does not
replay the last run's downloads as fresh completions.

query() and activeDownloads() had no callers left and are removed.
2026-07-19 11:41:59 +02:00
..
src refactor(android): stream download progress instead of polling from the UI 2026-07-19 11:41:59 +02:00
build.gradle chore(release): 0.11.0 (versionCode 18) 2026-07-19 10:11:07 +02:00