mirror of
https://github.com/WuXiaolong/AndroidMVPSample.git
synced 2025-12-20 18:45:39 +08:00
1. rxjava1.0 -> rxjava2.0
2. png -> webp
This commit is contained in:
@@ -5,7 +5,7 @@ import com.wuxiaolong.androidmvpsample.BuildConfig;
|
||||
import okhttp3.OkHttpClient;
|
||||
import okhttp3.logging.HttpLoggingInterceptor;
|
||||
import retrofit2.Retrofit;
|
||||
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
|
||||
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
|
||||
import retrofit2.converter.gson.GsonConverterFactory;
|
||||
|
||||
/**
|
||||
@@ -32,7 +32,7 @@ public class ApiClient {
|
||||
mRetrofit = new Retrofit.Builder()
|
||||
.baseUrl(ApiStores.API_SERVER_URL)
|
||||
.addConverterFactory(GsonConverterFactory.create())
|
||||
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
|
||||
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
|
||||
.client(okHttpClient)
|
||||
.build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user