Skip to content

Migrate from RxJava to Kotlin Coroutines and Flow - #714

Merged
rafaelekol merged 1 commit into
masterfrom
rx-remove
Sep 2, 2026
Merged

rafaelekol merged 1 commit into
masterfrom
rx-remove

Conversation

@rafaelekol

Copy link
Copy Markdown
Contributor
  • Replace RxJava Single returns with suspend functions in AbstractKit, BitcoinCore, and DashKit.
  • Replace PublishSubject and Disposable with MutableSharedFlow and CoroutineScope in DataProvider.
  • Transition ApiSyncer and BlockchairApiSyncer to use CoroutineScope and launch for background tasks.
  • Update BlockHashDiscoveryBatch to return results synchronously.
  • Remove rxjava and room-rxjava2 dependencies across all modules.
  • Add kotlinx-coroutines-core, kotlinx-coroutines-android, and lifecycle-viewmodel-ktx dependencies.
  • Update demo app MainViewModel to use viewModelScope.
  • Remove RxTestRule and update documentation to reflect the new suspend function API.

* Replace RxJava `Single` returns with `suspend` functions in `AbstractKit`, `BitcoinCore`, and `DashKit`.
* Replace `PublishSubject` and `Disposable` with `MutableSharedFlow` and `CoroutineScope` in `DataProvider`.
* Transition `ApiSyncer` and `BlockchairApiSyncer` to use `CoroutineScope` and `launch` for background tasks.
* Update `BlockHashDiscoveryBatch` to return results synchronously.
* Remove `rxjava` and `room-rxjava2` dependencies across all modules.
* Add `kotlinx-coroutines-core`, `kotlinx-coroutines-android`, and `lifecycle-viewmodel-ktx` dependencies.
* Update demo app `MainViewModel` to use `viewModelScope`.
* Remove `RxTestRule` and update documentation to reflect the new `suspend` function API.
@rafaelekol
rafaelekol merged commit c2b1480 into master Sep 2, 2026
1 check passed
@rafaelekol
rafaelekol deleted the rx-remove branch September 2, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants