fbshipit-source-id: cad5f527363fe09c2eea5b05ce1f3f2ecb86941b
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
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'
|
||||
|
||||
Pod::Spec.new do |spec|
|
||||
spec.name = 'SonarKit'
|
||||
spec.version = '1.0.0'
|
||||
spec.version = '0.0.1'
|
||||
spec.license = { :type => 'MIT' }
|
||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
||||
spec.summary = 'Sonar iOS podspec'
|
||||
spec.authors = 'Facebook'
|
||||
# spec.prepare_command = 'mv src double-conversion'
|
||||
spec.static_framework = true
|
||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
||||
:branch=> "master" }
|
||||
spec.module_name = 'SonarKit'
|
||||
@@ -17,7 +17,8 @@ Pod::Spec.new do |spec|
|
||||
spec.dependency 'Sonar'
|
||||
spec.dependency 'CocoaAsyncSocket', '~> 7.6'
|
||||
spec.dependency 'PeerTalk'
|
||||
spec.source_files = 'iOS/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/**/*.{h,cpp,m,mm}'
|
||||
spec.dependency 'OpenSSL-Static', '1.0.2.c1'
|
||||
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}',
|
||||
'iOS/SonarKit/SonarClient.h',
|
||||
'iOS/SonarKit/SonarDeviceData.h',
|
||||
@@ -26,12 +27,10 @@ Pod::Spec.new do |spec|
|
||||
'iOS/SonarKit/SonarConnection.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.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/ComponentKit\"/**" }
|
||||
spec.platforms = { :ios => "8.0", :tvos => "9.2" }
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\" \"$(PODS_ROOT)/ComponentKit\"/**" }
|
||||
spec.platforms = { :ios => "8.0" }
|
||||
|
||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
||||
ss.dependency "Yoga", yoga_version
|
||||
@@ -62,7 +61,6 @@ Pod::Spec.new do |spec|
|
||||
|
||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
||||
end
|
||||
|
||||
@@ -73,18 +71,6 @@ Pod::Spec.new do |spec|
|
||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
|
||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
||||
end
|
||||
|
||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKDispatchQueue.h',
|
||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
|
||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
||||
end
|
||||
|
||||
@@ -93,7 +79,6 @@ Pod::Spec.new do |spec|
|
||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user