Revert D13434177: [Docs] Updated the website docs with the information of crash reporter plugin
Differential Revision: D13434177 Original commit changeset: bb8b14e989c9 fbshipit-source-id: 36e501b0ca7031956b57c93429084a7bc673ef77
This commit is contained in:
committed by
Facebook Github Bot
parent
1bc566f813
commit
a1541b1c81
Binary file not shown.
|
Before Width: | Height: | Size: 135 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 121 KiB |
@@ -1,50 +0,0 @@
|
||||
---
|
||||
id: crash-reporter-plugin
|
||||
title: Crash Reporter Plugin
|
||||
---
|
||||
|
||||
The Crash Reporter Plugin shows a notification in Flipper whenever an app crashes. You can click on the notification to see crash information like stacktrace and other metadata. For Android, you can also use the "Open in Logs" action to find the relevant point in the logs view, so that it is easy to investigate what had happend before the crash.
|
||||
|
||||
Since this is an alpha release, it doesn't fire notification on all kind of crashes. It fires notifications on uncaught exceptions for both Android and iOS applications, whereas it fires crash notification for signal errors just for iOS and currently not for Android. We are still working on it, but do try out this plugin. Feedback and issues are welcome!
|
||||
|
||||
The plugin looks like the following
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Setup
|
||||
|
||||
### iOS
|
||||
|
||||
Add crash reporter plugin to the client.
|
||||
|
||||
#### Objective-C
|
||||
|
||||
```objectivec
|
||||
#import <FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h>
|
||||
|
||||
[client addPlugin:[FlipperKitCrashReporterPlugin sharedInstance]];
|
||||
|
||||
```
|
||||
|
||||
#### Swift
|
||||
|
||||
```swift
|
||||
import FlipperKit
|
||||
|
||||
client?.add(FlipperKitCrashReporterPlugin.sharedInstance());
|
||||
|
||||
```
|
||||
|
||||
### Android
|
||||
|
||||
Add crash reporter plugin to the client.
|
||||
|
||||
```java
|
||||
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
|
||||
|
||||
client.addPlugin(CrashReporterPlugin.getInstance());
|
||||
|
||||
```
|
||||
|
||||
@@ -100,10 +100,10 @@ target 'MyApp' do
|
||||
platform :ios, '9.0'
|
||||
|
||||
pod 'FlipperKit', '~>' + flipperkit_version
|
||||
# Layout and network plugins are not yet supported for swift projects
|
||||
pod 'FlipperKit/FlipperKitLayoutComponentKitSupport', '~>' + flipperkit_version
|
||||
pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version
|
||||
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version
|
||||
pod 'FlipperKit/FlipperKitCrashReporterPlugin', '~>' + flipperkit_version
|
||||
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
"network-plugin",
|
||||
"sandbox-plugin",
|
||||
"shared-preferences-plugin",
|
||||
"leak-canary-plugin",
|
||||
"crash-reporter-plugin"
|
||||
"leak-canary-plugin"
|
||||
],
|
||||
"Plugins: Desktop part": [
|
||||
"js-setup",
|
||||
|
||||
Reference in New Issue
Block a user