Re-enable physical iOS device support in mobile SDK

Summary: Only usable with a desktop app that supports physical iOS devices, which isn't released yet.

Reviewed By: passy

Differential Revision: D14132413

fbshipit-source-id: 376d1db06e46ae06346974f2acc95c3d2ff6825d
This commit is contained in:
John Knox
2019-02-19 10:23:53 -08:00
committed by Facebook Github Bot
parent 9c87dfe230
commit ce7287f08b

View File

@@ -29,8 +29,8 @@ using WrapperPlugin = facebook::flipper::FlipperCppWrapperPlugin;
folly::ScopedEventBaseThread sonarThread; folly::ScopedEventBaseThread sonarThread;
folly::ScopedEventBaseThread connectionThread; folly::ScopedEventBaseThread connectionThread;
#if !TARGET_OS_SIMULATOR #if !TARGET_OS_SIMULATOR
// FKPortForwardingServer *_secureServer; FKPortForwardingServer *_secureServer;
// FKPortForwardingServer *_insecureServer; FKPortForwardingServer *_insecureServer;
#endif #endif
} }
@@ -123,12 +123,12 @@ using WrapperPlugin = facebook::flipper::FlipperCppWrapperPlugin;
- (void)start; - (void)start;
{ {
#if !TARGET_OS_SIMULATOR #if !TARGET_OS_SIMULATOR
// _secureServer = [FKPortForwardingServer new]; _secureServer = [FKPortForwardingServer new];
// [_secureServer forwardConnectionsFromPort:8088]; [_secureServer forwardConnectionsFromPort:8088];
// [_secureServer listenForMultiplexingChannelOnPort:8078]; [_secureServer listenForMultiplexingChannelOnPort:8078];
// _insecureServer = [FKPortForwardingServer new]; _insecureServer = [FKPortForwardingServer new];
// [_insecureServer forwardConnectionsFromPort:8089]; [_insecureServer forwardConnectionsFromPort:8089];
// [_insecureServer listenForMultiplexingChannelOnPort:8079]; [_insecureServer listenForMultiplexingChannelOnPort:8079];
#endif #endif
_cppClient->start(); _cppClient->start();
} }
@@ -138,10 +138,10 @@ using WrapperPlugin = facebook::flipper::FlipperCppWrapperPlugin;
{ {
_cppClient->stop(); _cppClient->stop();
#if !TARGET_OS_SIMULATOR #if !TARGET_OS_SIMULATOR
// [_secureServer close]; [_secureServer close];
// _secureServer = nil; _secureServer = nil;
// [_insecureServer close]; [_insecureServer close];
// _insecureServer = nil; _insecureServer = nil;
#endif #endif
} }