Rename SonarDiagnosticActivity to FlipperDiagnosticActivity
Summary: Per title. Reviewed By: danielbuechele Differential Revision: D9966619 fbshipit-source-id: 52934813903f1d48c1ee35938848320b54a50a0f
This commit is contained in:
committed by
Facebook Github Bot
parent
ab4f4ed02b
commit
8780cff8ca
@@ -24,7 +24,7 @@
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="com.facebook.flipper.android.diagnostics.SonarDiagnosticActivity"
|
||||
<activity android:name="com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity"
|
||||
android:exported="true"/>
|
||||
</application>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.facebook.litho.annotations.LayoutSpec;
|
||||
import com.facebook.litho.annotations.OnCreateLayout;
|
||||
import com.facebook.litho.annotations.OnEvent;
|
||||
import com.facebook.litho.widget.Text;
|
||||
import com.facebook.flipper.android.diagnostics.SonarDiagnosticActivity;
|
||||
import com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity;
|
||||
|
||||
import java.io.IOException;
|
||||
import okhttp3.Call;
|
||||
@@ -109,7 +109,7 @@ public class RootComponentSpec {
|
||||
|
||||
@OnEvent(ClickEvent.class)
|
||||
static void openDiagnostics(final ComponentContext c) {
|
||||
Intent intent = new Intent(c, SonarDiagnosticActivity.class);
|
||||
Intent intent = new Intent(c, FlipperDiagnosticActivity.class);
|
||||
c.startActivity(intent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application>
|
||||
<activity android:name="com.facebook.flipper.android.diagnostics.SonarDiagnosticActivity"
|
||||
<activity android:name="com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity"
|
||||
android:exported="true" />
|
||||
</application>
|
||||
</manifest>
|
||||
|
||||
@@ -14,7 +14,7 @@ import android.view.View;
|
||||
import android.widget.TextView;
|
||||
import android.widget.ScrollView;
|
||||
|
||||
public class SonarDiagnosticActivity extends Activity implements FlipperStateUpdateListener {
|
||||
public class FlipperDiagnosticActivity extends Activity implements FlipperStateUpdateListener {
|
||||
|
||||
private TextView summaryView;
|
||||
private TextView logView;
|
||||
@@ -33,7 +33,7 @@ Add the following permissions to your AndroidManifest.xml. The SDK needs these t
|
||||
It's recommended that you add the following activity to the manifest too, which can help diagnose integration issues and other problems:
|
||||
|
||||
```xml
|
||||
<activity android:name="com.facebook.sonar.android.diagnostics.SonarDiagnosticActivity"
|
||||
<activity android:name="com.facebook.sonar.android.diagnostics.FlipperDiagnosticActivity"
|
||||
android:exported="true"/>
|
||||
```
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@ The Flipper SDK includes an in-app connection diagnostics screen to help you dia
|
||||
Replace `<APP_PACKAGE>` below with the package name of your app, e.g. `com.facebook.flipper.sample`.
|
||||
On a terminal, run the following:
|
||||
```bash
|
||||
adb shell am start -n <APP_PACKAGE>/com.facebook.sonar.android.diagnostics.SonarDiagnosticActivity
|
||||
adb shell am start -n <APP_PACKAGE>/com.facebook.sonar.android.diagnostics.FlipperDiagnosticActivity
|
||||
```
|
||||
This will only work if you added `SonarDiagnosticActivity` to your `AndroidManifest.xml`. See [getting started](getting-started.html) for help.
|
||||
This will only work if you added `FlipperDiagnosticActivity` to your `AndroidManifest.xml`. See [getting started](getting-started.html) for help.
|
||||
|
||||
#### iOS
|
||||
You'll need to manually add this [ViewController](https://github.com/facebook/flipper/blob/master/iOS/SonarKit/FlipperDiagnosticsViewController.m) to your app to see the in-app diagnostics.
|
||||
|
||||
Reference in New Issue
Block a user