retrofil gjstatus lanuage
implementation 'com.squareup.retrofit2:retrofit:2.5.0' implementation 'com.squareup.retrofit2:converter-gson:2.5.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1' public class ApiClient { public static String BASE_URL = "https://sktechnocastt.000webhostapp.com/"; private static Retrofit retrofit = null; public static Retrofit getClient(Context context) { if (retrofit == null) { HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(); interceptor.setLevel(HttpLoggingInterceptor.Level.BODY); OkHttpClient httpClient = new OkHttpClient.Builder() .connectTimeout(30, TimeUnit.SECONDS) ...
Comments
Post a Comment