mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 06:52:18 +02:00
RustCoreBackend.invokeApplication handled readFileMetadata, editFileMetadata and cancelNativeDataJob, but MainActivity intercepts all three first: the metadata methods are in nativeBackendMethods and dispatchBackendApplication answers cancelNativeDataJob before it calls invokeApplication. No Kotlin code calls invokeApplication with those names. Dart never sends these channel methods, so their handlers go on every platform: - shareMultipleContentUris (Android) and getAvailableLyricsProviders (Android and iOS) have no Dart caller. - scanLibraryFolderIncrementalFromSnapshot and scanSafTreeIncrementalFromSnapshot are called only from the Dart host branch of the library scan, which runs only when supportsCoreBackend is false, that is never on Android or iOS. The unreachable Dart wrappers are removed separately. The allowlist and the when cases in MainActivity stay in sync (70 names). The UniFFI exports get_available_lyrics_providers_json and scan_library_folder_incremental_from_snapshot were used only by the removed handlers; the backend methods behind them stay.