Support forward command [6/n]

Summary: Support the adb forward command

Reviewed By: jameslawson

Differential Revision: D31055957

fbshipit-source-id: bc0593320d0e187ddfc8120c1684746f9e9c4cf5
This commit is contained in:
Michel Weststrate
2021-09-22 09:01:29 -07:00
committed by Facebook GitHub Bot
parent 8cf182cc26
commit 11a27f9e1a
6 changed files with 25 additions and 0 deletions

View File

@@ -233,6 +233,15 @@ export default class BaseDevice {
return this.flipperServer.exec('metro-command', this.serial, command);
}
async forwardPort(local: string, remote: string): Promise<void> {
return this.flipperServer.exec(
'device-forward-port',
this.serial,
local,
remote,
);
}
supportsPlugin(plugin: PluginDefinition | PluginDetails) {
let pluginDetails: PluginDetails;
if (plugin instanceof _SandyPluginDefinition) {