AndroidSonarClient -> AndroidFlipperClient

Summary:
Per title.

The controller you requested could not be found.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9966768

fbshipit-source-id: 224ff9d02d6a01a6f7ee28788ddd9167d15aafee
This commit is contained in:
Pascal Hartig
2018-09-21 17:31:28 -07:00
committed by Facebook Github Bot
parent 8780cff8ca
commit 470ac6f6f7
6 changed files with 13 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ public class MyApplication extends Application {
SoLoader.init(this, false);
if (BuildConfig.DEBUG && SonarUtils.shouldEnableSonar(this)) {
final SonarClient client = AndroidSonarClient.getInstance(this);
final SonarClient client = AndroidFlipperClient.getInstance(this);
client.addPlugin(new InspectorSonarPlugin(this, DescriptorMapping.withDefaults()));
client.start();
}

View File

@@ -13,8 +13,8 @@ Plugins are identified by the string that their identifier method returns, in th
### Android
```java
final SonarClient client = AndroidSonarClient.getInstance(context);
// Client may be null if AndroidSonarClient.createInstance() was never called
final SonarClient client = AndroidFlipperClient.getInstance(context);
// Client may be null if AndroidFlipperClient.createInstance() was never called
// which is the case in production builds.
if (client != null) {
final MySonarPlugin plugin = client.getPlugin("MySonarPlugin");