Created
May 31, 2020 22:20
-
-
Save singh100ful/c143895315003d80063d0b6c7d4db1ae to your computer and use it in GitHub Desktop.
Flipper Network Plugin
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
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); | |
NetworkingModule.setCustomClientBuilder( | |
new NetworkingModule.CustomClientBuilder() { | |
@Override | |
public void apply(OkHttpClient.Builder builder) { | |
// builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); comment here | |
} | |
}); | |
client.addPlugin(networkFlipperPlugin); | |
client.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment