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
@@ -100,6 +100,12 @@ export class FlipperDevicePlugin<S = *, A = *, P = *> extends FlipperBasePlugin<
|
||||
_init() {
|
||||
this.init();
|
||||
}
|
||||
|
||||
static supportsDevice(device: BaseDevice) {
|
||||
throw new Error(
|
||||
'supportsDevice is unimplemented in FlipperDevicePlugin class',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export class FlipperPlugin<S = *, A = *, P = *> extends FlipperBasePlugin<
|
||||
|
||||
Reference in New Issue
Block a user