mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -04:00

* Removed duplicate method in `DownloadRoomDao` for fetching all downloads. * Refactored `DownloadManagerMonitor` to use `Coroutines` instead of `RxJava`. * Improved coroutine usage in `DownloadMonitorService`. * Updated `LanguageViewModel` to use `Coroutine Flows` instead of `RxJava`. * Refactored `NewLanguagesDao` to expose Coroutine Flows instead of `RxJava` observables. * Updated `SaveLanguagesAndFinish` to use coroutines instead of `RxJava`. * Created a `FlowExtension` utility class to add custom flow-related extensions. In this PR, added the `collectSideEffectWithActivity` extension function, which allows collecting `SideEffects` and handling them with the current Activity in a Compose UI. This also moved the `SideEffect` collection from the Fragment layer to the Compose screen, improving separation of concerns. * Refactored the unit test cases according to this change.