Make crash reporter plugin device only
Summary: Makes a crash reporter plugin as a device plugin Reviewed By: passy Differential Revision: D13203954 fbshipit-source-id: 02ef2aff05d5a240eaff588f9b515d3d610fc182
This commit is contained in:
committed by
Facebook Github Bot
parent
7ffdb36cc5
commit
14431e6b76
@@ -55,7 +55,14 @@ export class FlipperBasePlugin<
|
||||
static keyboardActions: ?KeyboardActions;
|
||||
static screenshot: ?string;
|
||||
static defaultPersistedState: PersistedState;
|
||||
|
||||
static persistedStateReducer: ?(
|
||||
persistedState: PersistedState,
|
||||
method: string,
|
||||
data: Object,
|
||||
) => $Shape<PersistedState>;
|
||||
static getActiveNotifications: ?(
|
||||
persistedState: PersistedState,
|
||||
) => Array<Notification>;
|
||||
// forbid instance properties that should be static
|
||||
title: empty;
|
||||
id: empty;
|
||||
@@ -129,13 +136,6 @@ export class FlipperPlugin<S = *, A = *, P = *> extends FlipperBasePlugin<
|
||||
A,
|
||||
P,
|
||||
> {
|
||||
static persistedStateReducer: ?(
|
||||
persistedState: P,
|
||||
method: string,
|
||||
data: Object,
|
||||
) => $Shape<P>;
|
||||
static getActiveNotifications: ?(persistedState: P) => Array<Notification>;
|
||||
|
||||
constructor(props: Props<*>) {
|
||||
super(props);
|
||||
const {id} = this.constructor;
|
||||
|
||||
Reference in New Issue
Block a user