Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package id.co.rumahcoding.neardeal;
- import retrofit2.Retrofit;
- import retrofit2.converter.gson.GsonConverterFactory;
- public class ApiClient {
- public static final String BASE_URL ="http://192.168.1.23";
- private static Retrofit retrofit = null;
- public static Retrofit getClient(){
- if(retrofit == null) {
- retrofit= new Retrofit.Builder()
- .baseUrl(BASE_URL)
- .addConverterFactory(GsonConverterFactory.create())
- .build();
- }
- return retrofit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement