File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/src/main/java/com/morihacky/android/rxjava/retrofit Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .util .List ;
4
4
5
+ import io .reactivex .Observable ;
5
6
import retrofit2 .http .GET ;
6
7
import retrofit2 .http .Path ;
7
- import rx .Observable ;
8
8
9
9
public interface GithubApi {
10
10
Original file line number Diff line number Diff line change 2
2
3
3
import android .text .TextUtils ;
4
4
5
+ import com .jakewharton .retrofit2 .adapter .rxjava2 .RxJava2CallAdapterFactory ;
6
+
5
7
import okhttp3 .OkHttpClient ;
6
8
import okhttp3 .Request ;
7
- import okhttp3 .Response ;
8
9
import retrofit2 .Retrofit ;
9
- import retrofit2 .adapter .rxjava .RxJavaCallAdapterFactory ;
10
10
import retrofit2 .converter .gson .GsonConverterFactory ;
11
11
12
12
import static java .lang .String .format ;
@@ -17,7 +17,7 @@ private GithubService() {
17
17
}
18
18
19
19
public static GithubApi createGithubService (final String githubToken ) {
20
- Retrofit .Builder builder = new Retrofit .Builder ().addCallAdapterFactory (RxJavaCallAdapterFactory .create ())
20
+ Retrofit .Builder builder = new Retrofit .Builder ().addCallAdapterFactory (RxJava2CallAdapterFactory .create ())
21
21
.addConverterFactory (GsonConverterFactory .create ())
22
22
.baseUrl ("https://api.github.com" );
23
23
You can’t perform that action at this time.
0 commit comments