Rename network plugin

Summary: Sonar -> Flipper. Class names only for now.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9991029

fbshipit-source-id: b96dbab7acc89586c1ee67b64bef1c9490b560b5
This commit is contained in:
Pascal Hartig
2018-09-22 16:35:16 -07:00
committed by Facebook Github Bot
parent 52fb0fc1b8
commit c7f6893cb4
4 changed files with 15 additions and 15 deletions

View File

@@ -14,9 +14,9 @@ To use the network plugin, you need to add the plugin to your Flipper client ins
### Android
```java
import com.facebook.sonar.plugins.network.NetworkSonarPlugin;
import com.facebook.sonar.plugins.network.NetworkFlipperPlugin;
NetworkSonarPlugin networkSonarPlugin = new NetworkSonarPlugin();
NetworkFlipperPlugin networkSonarPlugin = new NetworkFlipperPlugin();
client.addPlugin(networkSonarPlugin);
```
@@ -25,10 +25,10 @@ client.addPlugin(networkSonarPlugin);
If you are using the popular OkHttp library, you can use the Interceptors system to automatically hook into your existing stack.
```java
import com.facebook.sonar.plugins.network.SonarOkhttpInterceptor;
import com.facebook.sonar.plugins.network.FlipperOkhttpInterceptor;
new OkHttpClient.Builder()
.addNetworkInterceptor(new SonarOkhttpInterceptor(networkSonarPlugin))
.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkSonarPlugin))
.build();
```