remove PortForwarder
Summary: Removing PortForwarderMacApp as it is not used anymore. Before it was used to allow us to debug physical iOS device. However, the support for physical iOS device was removed a while ago for security reasons. The PortForwarder was not in use anymore so it is safe to remove it. Reviewed By: passy Differential Revision: D10337888 fbshipit-source-id: 93f508ec524a0fc055141176c06d7e7169d83f16
This commit is contained in:
committed by
Facebook Github Bot
parent
22e3017cdc
commit
e86a756e3c
@@ -5,13 +5,11 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import type {ChildProcess} from 'child_process';
|
||||
import type {Store} from '../reducers/index.js';
|
||||
import type Logger from '../fb-stubs/Logger.js';
|
||||
|
||||
import {promisify} from 'util';
|
||||
import child_process from 'child_process';
|
||||
const exec = promisify(child_process.exec);
|
||||
const execFile = promisify(child_process.execFile);
|
||||
import IOSDevice from '../devices/IOSDevice';
|
||||
|
||||
@@ -24,14 +22,6 @@ type iOSSimulatorDevice = {|
|
||||
|
||||
type IOSDeviceMap = {[id: string]: Array<iOSSimulatorDevice>};
|
||||
|
||||
// start port forwarding server for real device connections
|
||||
const portForwarder: ChildProcess = exec(
|
||||
'PortForwardingMacApp.app/Contents/MacOS/PortForwardingMacApp -portForward=8088 -multiplexChannelPort=8078',
|
||||
);
|
||||
window.addEventListener('beforeunload', () => {
|
||||
portForwarder.kill();
|
||||
});
|
||||
|
||||
function querySimulatorDevices(store: Store): Promise<IOSDeviceMap> {
|
||||
const {connections} = store.getState();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user