Move crash reporting listener to the server
Summary: Changelog: Move crash watcher to the server. Add 'device-crash' event. Add 'device-start-crash-watcher', 'device-stop-crash-watcher' commands. Add 'onDeviceCrash' method to Plugin Client. Reviewed By: mweststrate Differential Revision: D33089810 fbshipit-source-id: ed62ee7c1129e5e25af18b444744b0796f567b72
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9fd45b96d2
commit
731749b41f
@@ -114,6 +114,10 @@ export type FlipperServerEvents = {
|
||||
serial: string;
|
||||
entry: DeviceLogEntry;
|
||||
};
|
||||
'device-crash': {
|
||||
serial: string;
|
||||
crash: CrashLog;
|
||||
};
|
||||
'client-setup': UninitializedClient;
|
||||
'client-connected': ClientDescription;
|
||||
'client-disconnected': {id: string};
|
||||
@@ -196,6 +200,8 @@ export type FlipperServerCommands = {
|
||||
'device-list': () => Promise<DeviceDescription[]>;
|
||||
'device-start-logging': (serial: string) => Promise<void>;
|
||||
'device-stop-logging': (serial: string) => Promise<void>;
|
||||
'device-start-crash-watcher': (serial: string) => Promise<void>;
|
||||
'device-stop-crash-watcher': (serial: string) => Promise<void>;
|
||||
'device-supports-screenshot': (serial: string) => Promise<boolean>;
|
||||
'device-supports-screencapture': (serial: string) => Promise<boolean>;
|
||||
'device-take-screenshot': (serial: string) => Promise<string>; // base64 encoded buffer
|
||||
@@ -571,3 +577,10 @@ export type ResponseMessage =
|
||||
success?: never;
|
||||
error: ClientErrorType;
|
||||
};
|
||||
|
||||
export type CrashLog = {
|
||||
callstack?: string;
|
||||
reason: string;
|
||||
name: string;
|
||||
date?: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user