Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/migrate to rxjva 3 #317

Merged
merged 5 commits into from
May 24, 2020

Conversation

klamborowski
Copy link
Contributor

Working on migration to rxjva3. Currently WIP and waiting for navi migration: trello-archive/navi#106

Issue #315

@klamborowski
Copy link
Contributor Author

klamborowski commented May 20, 2020

@dlew alternatively we can just remove rxlifecycle-navi module and drop navi support.

EDIT:

Found this: 69b8a11#diff-04c6e90faac2675aa89e2176d2eec7d8R141

It's time to remove navi ;)

@klamborowski klamborowski marked this pull request as ready for review May 20, 2020 18:19
@dlew
Copy link
Contributor

dlew commented May 20, 2020

Thanks for the PR - just a warning that I'm very busy right now and probably won't be able to review it for a bit. I'll put it on my queue, just know I'm not ignoring this.

@nongdenchet
Copy link

nongdenchet commented May 21, 2020

Thank you for your contribution @klamborowski. Before merging this to master, should we create a separate branch for 2.x something similar to 1.x version https://github.com/trello/RxLifecycle/tree/1.x

Copy link
Contributor

@dlew dlew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice that all this really required were some class import changes.

POM_DEVELOPER_NAME=Dan Lew

android.enableJetifier=true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's causing us to need the Jetifier?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not required, I will remove it in next push.

@@ -1,5 +1,5 @@
GROUP=com.trello.rxlifecycle3
VERSION_NAME=3.1.0-SNAPSHOT
VERSION_NAME=3.3.0-SNAPSHOT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should bump to 4.0.0 (since this is a major change).

(Yeah, it's disappointing that it'll be out-of-sync with RxJava3 but... it already was, since RxLifecycle 3.x was compatible with RxJava 2.x!)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -42,7 +42,6 @@ public void noEvents() {
stream.onNext("1");
stream.onNext("2");
testSubscriber.assertValues("1", "2");
testSubscriber.assertNotTerminated();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertNotTerminated() was removed, but assertNotComplete() remains. As far as I can tell, that would be the best replacement, since other tests in the same class call assertComplete() - the complete/not complete dichotomy is one worth testing as a result.

(Making this comment here, but assertNotTerminated() has been removed from a bunch of tests.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@klamborowski klamborowski force-pushed the feature/migrate-to-rxjva-3 branch from 14312a8 to c183d22 Compare May 23, 2020 20:03
Copy link
Contributor

@dlew dlew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for the work!

I'll work on getting a release out soon.

@dlew dlew merged commit ab18240 into trello-archive:master May 24, 2020
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.

3 participants