Skip to content

Instantly share code, notes, and snippets.

View ronakmob's full-sized avatar

Ronak Mehta ronakmob

  • Mobiquity, Inc.
View GitHub Profile
@ronakmob
ronakmob / ApiModule.java
Created September 15, 2016 09:35 — forked from koesie10/ApiModule.java
Retrofit 1 error handling behaviour in Retrofit 2
// Dagger 1 example
@Module(
complete = false,
library = true
)
public final class ApiModule {
@Provides
@Singleton
Retrofit provideRetrofit(Gson gson, Application app) {
return new Retrofit.Builder()