mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
c4699d8b73
Summary:FBPortForwarding is incomplete and flaky implementation of `adb reverse` functionality for iOS. We haven't worked on it internally for a while now, but I think it might be a very usefull tool for the community. Some external contributors (hello philikon!) expressed interest in maintaining it. This diff moves it over to OSS RN `Libraries` folder. Reviewed By: vjeux Differential Revision: D3056293 fb-gh-sync-id: 9ced61fa8480a923771bba26fe09337c344ab3b3 shipit-source-id: 9ced61fa8480a923771bba26fe09337c344ab3b3
24 lines
653 B
Objective-C
24 lines
653 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <FBPortForwarding-Mac/FBPortForwardingClient.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
FBPortForwardingClient *client = [FBPortForwardingClient new];
|
|
[client forwardConnectionsToPort:8081];
|
|
[client connectToMultiplexingChannelOnPort:8025];
|
|
|
|
[[NSRunLoop currentRunLoop] run];
|
|
client = nil;
|
|
return 0;
|
|
}
|