-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Migrate to RxJava 3 and RxBinding 4 fixes #317 #326
Conversation
Hi @tbruyelle and @epool , I've prepared here migration to RxJava 3 and move sample to use RxBinding 4 that also uses RxJava 3. Tests are passing so I think this PR should be OK. This should fix #317 Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this backward compatible with apps still using RxJava2?
@@ -513,7 +488,6 @@ public void eachSubscriptionCombined_trigger_granted() { | |||
mRxPermissions.onRequestPermissionsResult(new String[]{permission}, result); | |||
|
|||
sub.assertNoErrors(); | |||
sub.assertNotTerminated(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why these deletions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @epool ,
Those methods were removed in RxJava 3 from TestObservable. See here:
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-3.0#test-support-methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, thanks!
@epool answering your question on compatibility with RxJava 2 if anyone would need their Observable to be V2 not V3 they can use bridge library called RxJavaBridge which is available here: |
Thx @epool for the review |
No description provided.