Refactor CrashReporter plugin

Summary: This diff refactors CrashReporter Plugin. The business logic of crash reporter plugin was placed in the `iOSDevice.js` as it gets the hook to the initialisation of iOSDevice. This diff moves the business logic to the Crash Reporter plugin files under the plugins folder. To get the hook, so that we can add our watcher, I have added a static function over `FlipperBasePlugin`, which if exists, will be called once `REGISTER_PLUGIN` event is dispatched

Reviewed By: danielbuechele

Differential Revision: D13529035

fbshipit-source-id: 28216b273b4032727859107d8a6751c6465af9ac
This commit is contained in:
Pritesh Nandgaonkar
2018-12-21 06:58:31 -08:00
committed by Facebook Github Bot
parent 780ac863b8
commit 9d4bb45dbc
8 changed files with 282 additions and 192 deletions

View File

@@ -19,6 +19,9 @@ export * from './fb-stubs/constants.js';
export * from './utils/createPaste.js';
export {connect} from 'react-redux';
export {selectPlugin} from './reducers/connections';
export {getPluginKey, getPersistedState} from './utils/pluginUtils.js';
export {default as BaseDevice} from './devices/BaseDevice.js';
export type {Store} from './reducers/index.js';
export {
default as SidebarExtensions,