change device plugin support check
Summary: Invert the way device plugin <-> device support works with the long term goal of supporting user defined device plugins Reviewed By: danielbuechele Differential Revision: D10240765 fbshipit-source-id: 9e886518a2fbfd263c79daa4b805c088ab38ab87
This commit is contained in:
committed by
Facebook Github Bot
parent
069f2be335
commit
7527636a38
@@ -56,9 +56,6 @@ export default class BaseDevice {
|
||||
// serial number for this device
|
||||
serial: string;
|
||||
|
||||
// supported device plugins for this platform
|
||||
supportedPlugins: Array<string> = [];
|
||||
|
||||
// possible src of icon to display next to the device title
|
||||
icon: ?string;
|
||||
|
||||
@@ -69,10 +66,6 @@ export default class BaseDevice {
|
||||
return os.toLowerCase() === this.os.toLowerCase();
|
||||
}
|
||||
|
||||
supportsPlugin = (DevicePlugin: Class<FlipperDevicePlugin<>>): boolean => {
|
||||
return this.supportedPlugins.includes(DevicePlugin.id);
|
||||
};
|
||||
|
||||
toJSON() {
|
||||
return `<${this.constructor.name}#${this.title}>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user