Skip to content

Commit f611901

Browse files
author
Kaushik Gopal
committed
Merge branch 'marukami-retrofit-update'
* marukami-retrofit-update: upgrade: retrofit 2.0.0-beta3 -> 2.0.0
2 parents 8da6098 + 30f190a commit f611901

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

app/build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ apply plugin: 'com.android.application'
1818
apply plugin: 'me.tatarka.retrolambda'
1919

2020
ext {
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

2527
dependencies {
@@ -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'

app/src/main/java/com/morihacky/android/rxjava/retrofit/GithubService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
import okhttp3.OkHttpClient;
66
import okhttp3.Request;
7-
import retrofit2.GsonConverterFactory;
7+
import okhttp3.Response;
88
import retrofit2.Retrofit;
9-
import retrofit2.RxJavaCallAdapterFactory;
9+
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
10+
import retrofit2.converter.gson.GsonConverterFactory;
1011

1112
import static java.lang.String.format;
1213

0 commit comments

Comments
 (0)