Closed sevar83 closed 7 years ago
Well, now I made it compilable at least...
val loadFeed: Observable<PartialStateChanges> = RxJavaInterop.toV1Observable(intent(RxInteropViewIntentBinder(TvFeedView::loadFeedIntent))
.toFlowable(BackpressureStrategy.DROP))
But don't know if it gonna work. I hope so. Otherwise I have to migrate the project to RxJava2.
Isn't it much simpler to use RxJava Interop when creating the intent()
method on View layer for example in your activity/fragment?
Not sure what do you mean exactly, but intent()
is a method of MviBasePresenter
and it returns v2 Observable
. If I use Interop on the View layer, I should change my view interfaces to v2. Anyway, now it compiles, let's see if it works. crosses fingers
yes, I meant that the View interface already returns a v2 Observable
.
Anyway, converting my apps based on RxJava1 to RxJava2 was pretty straight forward. Basically it was a Replace in Path
to replace
import rx
to
import io.reactivex
definitely an option to consider ...
I already tried with RxJava2 in the first place, but some libraries were RxJava1 only and I didn't know the existence of RxJavaInterop. I'm going to migrate as soon I stabilize it. Thanks.
Hi, my project is still RxJava. I can't do the interop with the RxJava2
Observable
parameter required byintent()
.What I have:
Could someone help?