Skip to content
RxJava 3 adapter for Retrofit 2
Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Initial port Sep 2, 2019
src Initial port Sep 2, 2019
.gitattributes Initial port Sep 2, 2019
.gitignore Initial port Sep 2, 2019
.travis.yml Initial port Sep 2, 2019
HEADER Initial port Sep 2, 2019
LICENSE Initial commit Sep 2, 2019
README.md Initial port Sep 2, 2019
build.gradle Don't show standard error Sep 2, 2019
gradle.properties Initial port Sep 2, 2019
gradlew Initial port Sep 2, 2019
gradlew.bat Initial port Sep 2, 2019
settings.gradle Initial port Sep 2, 2019

README.md

RxJavaRetrofitAdapter

RxJava 3 adapter for Retrofit 2

Port of Retrofit/RxJava2 adapter: https://github.com/square/retrofit/tree/master/retrofit-adapters/rxjava2

codecov.io Maven Central

Retrofit 2: Maven Central

RxJava 3: Maven Central

dependencies {
    implementation "com.github.akarnokd:rxjava3-retrofit-adapter:3.0.0-RC2"
}

Usage

import retrofit2.*;
import hu.akarnokd.rxjava3.retrofit.*;
import io.reactivex.rxjava3.core.*;

Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://example.com/")
    .addCallAdapterFactory(RxJava3CallAdapterFactory.create())
    .build();

interface MyService {
  @GET("/user")
  Observable<User> getUser();
}
You can’t perform that action at this time.