Some Client related cleanups
Summary: Client up `client.device` (which had no code references anymore) / `client.deviceSync`. Cleaned up feature code for old SDKs (pre 2, which is 3 years old). This makes decapitating Client a little simpler in the rest of the stack. Reviewed By: passy Differential Revision: D31235436 fbshipit-source-id: 919679c1830e2b9368d0787d7b363c090305edb8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
906578cc01
commit
ef6e802244
@@ -107,7 +107,7 @@ export interface RealFlipperClient {
|
||||
device: string;
|
||||
device_id: string;
|
||||
};
|
||||
deviceSync: Device;
|
||||
device: Device;
|
||||
plugins: Set<string>;
|
||||
isBackgroundPlugin(pluginId: string): boolean;
|
||||
initPlugin(pluginId: string): void;
|
||||
@@ -147,13 +147,7 @@ export class SandyPluginInstance extends BasePluginInstance {
|
||||
pluginKey: string,
|
||||
initialStates?: Record<string, any>,
|
||||
) {
|
||||
super(
|
||||
flipperLib,
|
||||
definition,
|
||||
realClient.deviceSync,
|
||||
pluginKey,
|
||||
initialStates,
|
||||
);
|
||||
super(flipperLib, definition, realClient.device, pluginKey, initialStates);
|
||||
this.realClient = realClient;
|
||||
this.definition = definition;
|
||||
const self = this;
|
||||
@@ -199,7 +193,7 @@ export class SandyPluginInstance extends BasePluginInstance {
|
||||
},
|
||||
selectPlugin(pluginId: string, deeplink?: unknown) {
|
||||
flipperLib.selectPlugin(
|
||||
realClient.deviceSync,
|
||||
realClient.device,
|
||||
realClient,
|
||||
pluginId,
|
||||
deeplink,
|
||||
|
||||
Reference in New Issue
Block a user