Created
August 18, 2016 19:54
-
-
Save orhanobut/a7e82343c666c567e5a9fd43680cbcf0 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 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