Skip to content

Instantly share code, notes, and snippets.

@orhanobut
Created August 18, 2016 19:54
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 orhanobut/a7e82343c666c567e5a9fd43680cbcf0 to your computer and use it in GitHub Desktop.
Save orhanobut/a7e82343c666c567e5a9fd43680cbcf0 to your computer and use it in GitHub Desktop.
public class StethoUtils {
private StethoUtils() {
// no instance
}
public static void init(Context context) {
Stetho.initializeWithDefaults(context);
}
public static void interceptNetwork(OkHttpClient.Builder builder) {
builder.addNetworkInterceptor(new StethoInterceptor());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment