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
Migrate to RxJava 3 #441
Migrate to RxJava 3 #441
Conversation
Codecov Report
@@ Coverage Diff @@
## RxJava3.x #441 +/- ##
===============================================
+ Coverage 83.36% 83.59% +0.22%
- Complexity 118 131 +13
===============================================
Files 11 11
Lines 457 451 -6
Branches 38 36 -2
===============================================
- Hits 381 377 -4
+ Misses 51 49 -2
Partials 25 25
Continue to review full report at Codecov.
|
Hi @MrAsterisco, Thanks for this PR! Could you please squash your commits into one and set target branch to Regards, |
I already changed target branch (base) to |
Ok, great! Before squashing my commits, would you like me to go through the process of updating the Changelog file and generating the new documentation? |
You can update changelog and documentation in |
Ok, done! I'm assuming that this will be a 4.0.0, since there is a (small) breaking change in the |
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.
Changes look fine. I have a few issues with the documentation in README.md
. Moreover, I have a question: Did you use code formatter / code style described here: https://github.com/pwittchen/ReactiveNetwork#code-style ? If not, then please apply it and reformat code with it.
2cc2a09
to
e18e76a
Compare
OK! I've reformatted the code using the AndroidSquare style (about 30 files were not formatted correctly) and I've also updated the README as you asked (I've also changed the references to the RxJava2.x and the name of the artifact). I noticed there's a Contributors section, so I've added myself in there; hope that's ok. |
Looks good. There's one more change required for migration to the new RxJava version. In the
to:
|
Fix code style Update README and CHANGELOG Apply code style, update README Update artifact name Update artifact name, proguard rules, version and version code
Done! To be sure, I've also searched for "rx2" in the whole project and I've updated the proguard rules files to point to the correct package. I've also updated |
Merged. It will be available in the next release for RxJava3.x. Thanks for your contribution @MrAsterisco! |
This PR introduces the following update: support for RxJava 3 (potentially closing #365 ).
I wanted to use ReactiveNetwork in a new project that targets RxJava 3, so I figured I might as well make the transition myself.
A few major things have changed:
onError
method of theNetworkObservingStrategy
interface is now using aThrowable
instead of a simpleException
. This had to be changed because a lot of methods inside the various implementations of the interface can throw a genericThrowable
.android.enableUnitTestBinaryResources
has been removed because it is no longer supported.The rest of the changes are just related to the new version of RxJava (mainly changing the package references).
All unit tests pass, all code styles checks pass. Both example apps work perfectly (I had to add the Java compatibility option to the Kotlin app to make it build). The build on Travis works.
Please, let me know if you're interested in merging this PR and, if so, what would be the next steps.