File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
src/main/java/com/morihacky/android/rxjava/retrofit Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ apply plugin: 'com.android.application'
1818apply plugin : ' me.tatarka.retrolambda'
1919
2020ext {
21- supportLibVersion = " 24.2.1"
21+ okhttpVersion = " 3.0.1"
22+ retrofitVersion = " 2.0.0"
2223 sdkVersion = 24
24+ supportLibVersion = " 24.2.1"
2325}
2426
2527dependencies {
@@ -37,11 +39,11 @@ dependencies {
3739 compile ' com.jakewharton:butterknife:7.0.1'
3840 compile ' com.jakewharton.rxrelay:rxrelay:1.2.0'
3941 compile ' com.jakewharton.timber:timber:2.4.2'
40- compile ' com.squareup.retrofit2:retrofit:2.0.0-beta3 '
41- compile ' com.squareup.retrofit2:adapter-rxjava:2.0.0-beta3 '
42- compile ' com.squareup.retrofit2:converter-gson:2.0.0-beta3 '
43- compile ' com.squareup.okhttp3:okhttp:3.0.1 '
44- compile ' com.squareup.okhttp3:okhttp-urlconnection:3.0.1 '
42+ compile " com.squareup.retrofit2:retrofit:${ retrofitVersion } "
43+ compile " com.squareup.retrofit2:adapter-rxjava:${ retrofitVersion } "
44+ compile " com.squareup.retrofit2:converter-gson:${ retrofitVersion } "
45+ compile " com.squareup.okhttp3:okhttp:${ okhttpVersion } "
46+ compile " com.squareup.okhttp3:okhttp-urlconnection:${ okhttpVersion } "
4547 compile ' com.mcxiaoke.volley:library:1.0.19'
4648
4749 debugCompile ' com.squareup.leakcanary:leakcanary-android:1.3'
Original file line number Diff line number Diff line change 44
55import okhttp3 .OkHttpClient ;
66import okhttp3 .Request ;
7- import retrofit2 . GsonConverterFactory ;
7+ import okhttp3 . Response ;
88import retrofit2 .Retrofit ;
9- import retrofit2 .RxJavaCallAdapterFactory ;
9+ import retrofit2 .adapter .rxjava .RxJavaCallAdapterFactory ;
10+ import retrofit2 .converter .gson .GsonConverterFactory ;
1011
1112import static java .lang .String .format ;
1213
You can’t perform that action at this time.
0 commit comments