GeezerVison is showing github.com — fix: merge conflict + ref: version number · alanwgeorge/Android-RxJava@30f190a
File tree
Expand file treeCollapse file tree
Open diff view settings
src/main/java/com/morihacky/android/rxjava/retrofit
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: app/build.gradle +8-6Lines changed: 8 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,8 +18,10 @@ apply plugin: 'com.android.application' |
18 | 18 | apply plugin: 'me.tatarka.retrolambda' |
19 | 19 |
|
20 | 20 | ext { |
21 | | - supportLibVersion = "24.2.1" |
| 21 | + okhttpVersion = "3.0.1" |
| 22 | + retrofitVersion = "2.0.0" |
22 | 23 | sdkVersion = 24 |
| 24 | + supportLibVersion = "24.2.1" |
23 | 25 | } |
24 | 26 |
|
25 | 27 | dependencies { |
@@ -37,11 +39,11 @@ dependencies { |
37 | 39 | compile 'com.jakewharton:butterknife:7.0.1' |
38 | 40 | compile 'com.jakewharton.rxrelay:rxrelay:1.2.0' |
39 | 41 | 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}" |
45 | 47 | compile 'com.mcxiaoke.volley:library:1.0.19' |
46 | 48 |
|
47 | 49 | debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3' |
|
Collapse file
Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/retrofit/GithubService.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 |
|
5 | 5 | import okhttp3.OkHttpClient; |
6 | 6 | import okhttp3.Request; |
7 | | -import retrofit2.GsonConverterFactory; |
| 7 | +import okhttp3.Response; |
8 | 8 | import retrofit2.Retrofit; |
9 | | -import retrofit2.RxJavaCallAdapterFactory; |
| 9 | +import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory; |
| 10 | +import retrofit2.converter.gson.GsonConverterFactory; |
10 | 11 |
|
11 | 12 | import static java.lang.String.format; |
12 | 13 |
|
|