Docs in the RxKotlin repository on GitHub doesn't specify a way to explicitly depend on the latest RxJava versionn.
If we see the build.gradle
file of the library, it as of now uses compile 'io.reactivex.rxjava2:rxjava:2.1.0'
But what if we want to keep up with the latest RxJava releases and not the one present in the library.
You can override the version of RxJava in your projects build.gradle
.
The specified version of RxJava will be chosen (and override RxKotlin's) if you just explicitly specify it like this in Gradle/Maven:
dependencies {
compile 'io.reactivex.rxjava2:rxjava:2.1.1'
compile 'io.reactivex.rxjava2:rxkotlin:2.1.0'
}
This is also stated in the RxAndroid readme file. I had a little chat with one of the contributors of the RxKotlin and he said that just like RxAndroid, they also internally use the same policy.