Technical requirements

You can find the examples from this chapter on GitHub, at the following link: https://github.com/PacktPublishing/Learn-Spring-for-Android-Application-Development/tree/master/app/src/main/java/com/packt/learn_spring_for_android_application_development/chapter8.

To integrate the Reactor library into your project, add the following line to the repositories section of the build.gradle file:

maven { url 'https://repo.spring.io/libs-milestone' }

Add the following line to the dependencies section:

implementation "io.projectreactor:reactor-core:3.2.2.RELEASE"

The Reactor library works with a version of the Java Development Kit (JDK), 8 or above. So, we should add the following line to the Android section:

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

To integrate the RxJava library, add the following line to the dependencies section:

implementation "io.reactivex.rxjava2:rxjava:2.2.3"

To integrate the RxAndroid library, add the following line to the dependencies section:

implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'

To integrate the RxBinding library, you should add the following line to the dependencies section:

implementation 'com.jakewharton.rxbinding3:rxbinding:3.0.0-alpha1'
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.37.191