Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created October 25, 2016 11:11
Show Gist options
  • Select an option

  • Save mplacona/5018e194c012817c3ffe762550238bb9 to your computer and use it in GitHub Desktop.

Select an option

Save mplacona/5018e194c012817c3ffe762550238bb9 to your computer and use it in GitHub Desktop.
OkHttpClient okClient = new OkHttpClient
.Builder()
.addNetworkInterceptor(new StethoInterceptor())
.build();
mPicasso = new Picasso.Builder(getApplicationContext())
.downloader(new OkHttp3Downloader(okClient))
.loggingEnabled(true)
.build();
if (BuildConfig.DEBUG) {
Stetho.initializeWithDefaults(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment