Created
January 8, 2019 07:47
-
-
Save muzafakar/e215506c69aa390f25e5e1aa87c394ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RetrofitClient { | |
private static Retrofit retrofit = null; | |
public static String BASE_URL = ""; | |
public static Retrofit getClient(String url) { | |
retrofit = new Retrofit.Builder().baseUrl(BASE_URL) | |
.addConverterFactory(GsonConverterFactory.create()) | |
.build(); | |
return retrofit; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment