Make sure sandy device plugins are rendered

Summary: Now that we can load device plugins, let's make sure they are rendered as well.

Reviewed By: passy, nikoant

Differential Revision: D22693927

fbshipit-source-id: 22574ec6e629e6dd66e42193b406ceb7dfcf1836
This commit is contained in:
Michel Weststrate
2020-08-04 07:05:57 -07:00
committed by Facebook GitHub Bot
parent 489dd1521e
commit b621dcf754
4 changed files with 163 additions and 18 deletions

View File

@@ -42,6 +42,7 @@ export type DevicePluginPredicate = (device: Device) => boolean;
export type DevicePluginFactory = (client: DevicePluginClient) => object;
// TODO: better name?
export interface DevicePluginClient {
readonly device: Device;
@@ -59,6 +60,8 @@ export interface DevicePluginClient {
* The counterpart of the `onActivate` handler.
*/
onDeactivate(cb: () => void): void;
// TODO: support onDeeplink!
}
export interface RealFlipperDevice {