File tree Expand file tree Collapse file tree
src/main/java/com/rengwuxian/rxjavasamples/network Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ dependencies {
2727 compile ' com.android.support:support-v13:23.2.1'
2828 compile ' com.android.support:design:23.2.1'
2929 compile ' com.android.support:cardview-v7:23.2.1'
30- compile ' com.squareup.okhttp :okhttp:2.7.4 '
31- compile ' com.squareup.retrofit :retrofit:2.0.0-beta2 '
32- compile ' com.squareup.retrofit:adapter-rxjava :2.0.0-beta2 '
33- compile ' com.squareup.retrofit:converter-gson :2.0.0-beta2 '
30+ compile ' com.squareup.okhttp3 :okhttp:3.2.0 '
31+ compile ' com.squareup.retrofit2 :retrofit:2.0.0'
32+ compile ' com.squareup.retrofit2:converter-gson :2.0.0'
33+ compile ' com.squareup.retrofit2:adapter-rxjava :2.0.0'
3434 compile ' com.github.bumptech.glide:glide:3.7.0'
3535 compile ' com.jakewharton:butterknife:7.0.1'
3636 compile ' io.reactivex:rxjava:1.1.0'
Original file line number Diff line number Diff line change 55import com .rengwuxian .rxjavasamples .network .api .FakeApi ;
66import com .rengwuxian .rxjavasamples .network .api .GankApi ;
77import com .rengwuxian .rxjavasamples .network .api .ZhuangbiApi ;
8- import com .squareup .okhttp .OkHttpClient ;
98
10- import retrofit .CallAdapter ;
11- import retrofit .Converter ;
12- import retrofit .GsonConverterFactory ;
13- import retrofit .Retrofit ;
14- import retrofit .RxJavaCallAdapterFactory ;
9+ import okhttp3 .OkHttpClient ;
10+ import retrofit2 .CallAdapter ;
11+ import retrofit2 .Converter ;
12+ import retrofit2 .Retrofit ;
13+ import retrofit2 .adapter .rxjava .RxJavaCallAdapterFactory ;
14+ import retrofit2 .converter .gson .GsonConverterFactory ;
1515
1616public class Network {
1717 private static ZhuangbiApi zhuangbiApi ;
Original file line number Diff line number Diff line change 44
55import com .rengwuxian .rxjavasamples .model .GankBeautyResult ;
66
7- import retrofit .http .GET ;
8- import retrofit .http .Path ;
7+ import retrofit2 .http .GET ;
8+ import retrofit2 .http .Path ;
99import rx .Observable ;
1010
1111public interface GankApi {
Original file line number Diff line number Diff line change 66
77import java .util .List ;
88
9- import retrofit .http .GET ;
10- import retrofit .http .Query ;
9+ import retrofit2 .http .GET ;
10+ import retrofit2 .http .Query ;
1111import rx .Observable ;
1212
1313public interface ZhuangbiApi {
You can’t perform that action at this time.
0 commit comments