Skip to content

Instantly share code, notes, and snippets.

@Velmm
Created December 27, 2017 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Velmm/607a76899a3ad77f7938ef80e7230059 to your computer and use it in GitHub Desktop.
Save Velmm/607a76899a3ad77f7938ef80e7230059 to your computer and use it in GitHub Desktop.
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class LatestRepo {
private static Retrofit retrofit = null;
static Retrofit getInstance(){
retrofit = new Retrofit.Builder().baseUrl("http://velmm.com/apis/").addConverterFactory(GsonConverterFactory.create()).build();
return retrofit;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment