mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 06:52:18 +02:00
Rust is the only backend, so several single-backend switches had become constants and their other branches could never run: - CoreBackend.supportsOutputDescriptors was always false. The descriptor branch in SafDownloadHandler and its pfd/detachFd cleanup never ran, and the Rust planner rejects output_fd anyway. - routesApplication was always true on Android and iOS. Drop the member, the "go" value of getBackendImplementations (the reply keys and the "rust" value Dart receives are unchanged), the iOS routing guard and the interface defaults that threw for unrouted methods. - cleanupExtensions(), waitForDownloadProgressDelta and scanCueForLibrary had no production caller. Dart reaches cleanup through the cleanupExtensions channel method, and RustCoreBackend overrides openDownloadProgress, so the polling default goes too. The UniFFI exports DownloadState.wait_progress_delta and ExtensionManager.scan_cue_file_for_library were used only by those Kotlin overrides. Bindings are generated at build time by scripts/build_rust_backend.sh; no generated binding is tracked.