Disable peertalk

This commit is contained in:
Pritesh Nandgaonkar
2018-06-01 18:01:28 +01:00
parent 0619529f34
commit 8d48f5a3eb
9 changed files with 18 additions and 23 deletions

View File

@@ -11,7 +11,7 @@ target 'Sample' do
pod 'DoubleConversion', :podspec => '../third-party-podspecs/DoubleConversion.podspec' pod 'DoubleConversion', :podspec => '../third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../third-party-podspecs/glog.podspec' pod 'glog', :podspec => '../third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../third-party-podspecs/Folly.podspec' pod 'Folly', :podspec => '../third-party-podspecs/Folly.podspec'
pod 'PeerTalk', :git => 'https://github.com/rsms/peertalk' # pod 'PeerTalk', :git => 'https://github.com/rsms/peertalk'
pod 'ComponentKit', :podspec => '../third-party-podspecs/ComponentKit.podspec' pod 'ComponentKit', :podspec => '../third-party-podspecs/ComponentKit.podspec'
pod 'Yoga','~>1.8.1', :modular_headers => true pod 'Yoga','~>1.8.1', :modular_headers => true
pod 'Sonar', :podspec => '../../xplat/Sonar/SonarKitCPP.podspec' pod 'Sonar', :podspec => '../../xplat/Sonar/SonarKitCPP.podspec'

View File

@@ -1,5 +1,5 @@
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0' folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
yoga_version = '1.8.1' yoga_version = '~> 1.8'
yogakit_version = '1.8.1' yogakit_version = '1.8.1'
Pod::Spec.new do |spec| Pod::Spec.new do |spec|
@@ -9,6 +9,7 @@ Pod::Spec.new do |spec|
spec.homepage = 'https://github.com/facebook/Sonar' spec.homepage = 'https://github.com/facebook/Sonar'
spec.summary = 'Sonar iOS podspec' spec.summary = 'Sonar iOS podspec'
spec.authors = 'Facebook' spec.authors = 'Facebook'
spec.static_framework = true
# spec.prepare_command = 'mv src double-conversion' # spec.prepare_command = 'mv src double-conversion'
spec.source = { :git => 'https://github.com/facebook/Sonar.git', spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:branch=> "master" } :branch=> "master" }
@@ -16,7 +17,7 @@ Pod::Spec.new do |spec|
spec.dependency 'Folly' spec.dependency 'Folly'
spec.dependency 'Sonar' spec.dependency 'Sonar'
spec.dependency 'CocoaAsyncSocket', '~> 7.6' spec.dependency 'CocoaAsyncSocket', '~> 7.6'
spec.dependency 'PeerTalk' # spec.dependency 'PeerTalk', '~> 0.0'
spec.dependency 'OpenSSL-Universal', '~> 1.0' spec.dependency 'OpenSSL-Universal', '~> 1.0'
spec.source_files = 'iOS/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/**/*.{h,cpp,m,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h, mm}', spec.source_files = 'iOS/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/**/*.{h,cpp,m,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h, mm}',
spec.public_header_files = 'iOS/SonarKit/CppBridge/*.{h}', spec.public_header_files = 'iOS/SonarKit/CppBridge/*.{h}',
@@ -28,12 +29,10 @@ Pod::Spec.new do |spec|
'iOS/SonarKit/SonarConnection.h', 'iOS/SonarKit/SonarConnection.h',
'iOS/SonarKit/SKMacros.h' 'iOS/SonarKit/SKMacros.h'
spec.private_header_files = 'iOS/Sample/'
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0' spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/ComponentKit\"/**" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/ComponentKit\"/**" }
spec.platforms = { :ios => "8.0", :tvos => "9.2" } spec.platforms = { :ios => "8.0" }
spec.subspec "SonarKitLayoutPlugin" do |ss| spec.subspec "SonarKitLayoutPlugin" do |ss|
ss.dependency "Yoga", yoga_version ss.dependency "Yoga", yoga_version
@@ -64,7 +63,6 @@ Pod::Spec.new do |spec|
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}" ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
end end
@@ -75,7 +73,6 @@ Pod::Spec.new do |spec|
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h' 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}" ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
end end
@@ -86,7 +83,6 @@ Pod::Spec.new do |spec|
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h' 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}" ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
end end
@@ -95,7 +91,6 @@ Pod::Spec.new do |spec|
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h' ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}" ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
end end
end end

View File

@@ -15,7 +15,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#if !TARGET_OS_SIMULATOR #if !TARGET_OS_SIMULATOR
#import "SKPortForwardingServer.h" // #import "SKPortForwardingServer.h"
#endif #endif
using WrapperPlugin = facebook::sonar::SonarCppWrapperPlugin; using WrapperPlugin = facebook::sonar::SonarCppWrapperPlugin;
@@ -24,7 +24,7 @@ using WrapperPlugin = facebook::sonar::SonarCppWrapperPlugin;
facebook::sonar::SonarClient *_cppClient; facebook::sonar::SonarClient *_cppClient;
folly::ScopedEventBaseThread eventBaseThread; folly::ScopedEventBaseThread eventBaseThread;
#if !TARGET_OS_SIMULATOR #if !TARGET_OS_SIMULATOR
SKPortForwardingServer *_server; // SKPortForwardingServer *_server;
#endif #endif
} }
@@ -103,9 +103,9 @@ using WrapperPlugin = facebook::sonar::SonarCppWrapperPlugin;
- (void)start; - (void)start;
{ {
#if !TARGET_OS_SIMULATOR #if !TARGET_OS_SIMULATOR
_server = [SKPortForwardingServer new]; // _server = [SKPortForwardingServer new];
[_server forwardConnectionsFromPort:8088]; // [_server forwardConnectionsFromPort:8088];
[_server listenForMultiplexingChannelOnPort:8078]; // [_server listenForMultiplexingChannelOnPort:8078];
#endif #endif
_cppClient->start(); _cppClient->start();
} }
@@ -114,8 +114,8 @@ using WrapperPlugin = facebook::sonar::SonarCppWrapperPlugin;
{ {
_cppClient->stop(); _cppClient->stop();
#if !TARGET_OS_SIMULATOR #if !TARGET_OS_SIMULATOR
[_server close]; // [_server close];
_server = nil; // _server = nil;
#endif #endif
} }

View File

@@ -13,6 +13,6 @@ Pod::Spec.new do |spec|
spec.libraries = "stdc++" spec.libraries = "stdc++"
spec.compiler_flags = '-std=c++1y' spec.compiler_flags = '-std=c++1y'
# Pinning to the same version as React.podspec. # Pinning to the same version as React.podspec.
spec.platforms = { :ios => "8.0", :tvos => "9.2" } spec.platforms = { :ios => "8.0" }
end end

View File

@@ -12,6 +12,6 @@ Pod::Spec.new do |spec|
spec.libraries = "stdc++" spec.libraries = "stdc++"
spec.compiler_flags = '-std=c++1y' spec.compiler_flags = '-std=c++1y'
# Pinning to the same version as React.podspec. # Pinning to the same version as React.podspec.
spec.platforms = { :ios => "8.0", :tvos => "9.2" } spec.platforms = { :ios => "8.0"}
end end

View File

@@ -112,5 +112,5 @@ Pod::Spec.new do |spec|
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\"" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\"" }
# Pinning to the same version as React.podspec. # Pinning to the same version as React.podspec.
spec.platforms = { :ios => "8.0", :tvos => "10.0" } spec.platforms = { :ios => "8.0"}
end end

View File

@@ -48,6 +48,6 @@ Pod::Spec.new do |spec|
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14", "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/DoubleConversion\"/**" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/DoubleConversion\"/**" }
spec.platforms = { :ios => "8.0", :tvos => "9.2" } spec.platforms = { :ios => "8.0" }
end end

View File

@@ -36,6 +36,6 @@ Pod::Spec.new do |spec|
} }
spec.compiler_flags = '-std=c++1y' spec.compiler_flags = '-std=c++1y'
spec.libraries = "stdc++" spec.libraries = "stdc++"
spec.platforms = { :ios => "8.0", :tvos => "9.2" } spec.platforms = { :ios => "8.0"}
end end

View File

@@ -17,7 +17,7 @@ Pod::Spec.new do |spec|
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
-std=c++14 -std=c++14
-Wno-global-constructors' -Wno-global-constructors'
spec.platforms = { :ios => "8.0", :tvos => "9.2" } spec.platforms = { :ios => "8.0" }
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14", "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" } "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"/usr/local/include\" \"/usr/local/Cellar/openssl/1.0.2o_1/include\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }