Use tag in podspecs (#152)

Summary:
This diff uses `tag` instead of master branch and also updates the version number to the desktop sdk.
Pull Request resolved: https://github.com/facebook/Sonar/pull/152

Reviewed By: danielbuechele

Differential Revision: D8820016

Pulled By: priteshrnandgaonkar

fbshipit-source-id: ff2e554be55254b77c4e130b35b7299abbafa77d
This commit is contained in:
Pritesh Nandgaonkar
2018-07-12 10:13:50 -07:00
committed by Facebook Github Bot
parent 9a7017298c
commit 73c830fc1b
7 changed files with 176 additions and 112 deletions

View File

@@ -0,0 +1,23 @@
Pod::Spec.new do |spec|
spec.name = 'Sonar'
spec.version = '0.6.12'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/facebook/sonar'
spec.summary = 'SonarKit core cpp code with network implementation'
spec.authors = 'Facebook'
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:tag => 'v0.6.12' }
spec.module_name = 'Sonar'
spec.public_header_files = 'xplat/Sonar/*.h'
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
spec.libraries = "stdc++"
spec.dependency 'Folly', '~>1.0'
spec.dependency 'RSocket', '~>0.10'
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
-Wno-global-constructors'
spec.platforms = { :ios => "8.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)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
end

View File

@@ -0,0 +1,94 @@
folly_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'
yoga_version = '~> 1.9'
yogakit_version = '~>1.8'
Pod::Spec.new do |spec|
spec.name = 'SonarKit'
spec.version = '0.6.12'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/facebook/Sonar'
spec.summary = 'Sonar iOS podspec'
spec.authors = 'Facebook'
spec.static_framework = true
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:tag=> "v0.6.12" }
spec.module_name = 'SonarKit'
spec.platforms = { :ios => "8.4" }
spec.subspec "Core" do |ss|
ss.dependency 'Folly', '~>1.0'
ss.dependency 'Sonar', '~>0.6'
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
ss.dependency 'PeerTalk', '~>0.0.2'
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
ss.source_files = 'iOS/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/**/*.{h,cpp,m,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h, mm}'
ss.public_header_files = 'iOS/SonarKit/CppBridge/*.{h}',
'iOS/SonarKit/SonarClient.h',
'iOS/SonarKit/SonarDeviceData.h',
'iOS/SonarKit/SonarPlugin.h',
'iOS/SonarKit/SonarResponder.h',
'iOS/SonarKit/SonarConnection.h',
'iOS/SonarKit/SKMacros.h'
ss.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'
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\" \"$(PODS_ROOT)/ComponentKit\"/**" }
end
spec.subspec "SonarKitLayoutPlugin" do |ss|
ss.dependency 'SonarKit/Core'
ss.dependency 'Yoga', yoga_version
ss.dependency 'YogaKit', yogakit_version
ss.compiler_flags = folly_compiler_flags
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
end
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
ss.dependency 'SonarKit/Core'
ss.dependency 'Yoga', yoga_version
ss.dependency 'ComponentKit'
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
ss.compiler_flags = folly_compiler_flags
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
end
spec.subspec "SonarKitNetworkPlugin" do |ss|
ss.dependency 'SonarKit/Core'
ss.compiler_flags = folly_compiler_flags
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",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
end
spec.subspec "SKIOSNetworkPlugin" do |ss|
ss.dependency 'SonarKit/Core'
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
ss.compiler_flags = folly_compiler_flags
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",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
end
end

View File

@@ -74,7 +74,7 @@ swift_version = "4.1"
target 'MyApp' do
pod 'SonarKit', '~>0.0.1'
pod 'SonarKit', '~>0.6'
post_install do |installer|
installer.pods_project.targets.each do |target|

View File

@@ -7,7 +7,7 @@ swift_version = "4.1"
target 'Sample' do
pod 'SonarKit', '~>0.0.1'
pod 'SonarKit', '~>0.6'
post_install do |installer|
installer.pods_project.targets.each do |target|

View File

@@ -2,143 +2,90 @@ PODS:
- boost-for-react-native (1.63.0)
- CocoaAsyncSocket (7.6.3)
- CocoaLibEvent (1.0.0)
- ComponentKit (0.21):
- Yoga
- DoubleConversion (3.0.0)
- ComponentKit (0.23):
- Yoga (~> 1.6)
- DoubleConversion (1.1.5)
- Folly (1.0.0):
- boost-for-react-native
- CocoaLibEvent (~> 1.0)
- DoubleConversion
- glog
- OpenSSL-Static (= 1.0.2.c1)
- glog (0.3.5)
- glog (0.3.4)
- OpenSSL-Static (1.0.2.c1)
- PeerTalk (1.0.0)
- PeerTalk (0.0.2)
- RSocket (0.10.0):
- Folly
- Sonar (0.0.1):
- Sonar (0.6.12):
- Folly
- RSocket
- SonarKit (0.0.1):
- SonarKit (0.6.12):
- SonarKit/Core (= 0.6.12)
- SonarKit/SKIOSNetworkPlugin (= 0.6.12)
- SonarKit/SonarKitLayoutComponentKitSupport (= 0.6.12)
- SonarKit/SonarKitLayoutPlugin (= 0.6.12)
- SonarKit/SonarKitNetworkPlugin (= 0.6.12)
- SonarKit/Core (0.6.12):
- CocoaAsyncSocket (~> 7.6)
- Folly
- Folly (~> 1.0)
- OpenSSL-Static (= 1.0.2.c1)
- PeerTalk
- Sonar
- SonarKit/SKIOSNetworkPlugin (= 0.0.1)
- SonarKit/SonarKitLayoutComponentKitSupport (= 0.0.1)
- SonarKit/SonarKitLayoutPlugin (= 0.0.1)
- SonarKit/SonarKitNetworkPlugin (= 0.0.1)
- SonarKit/SKIOSNetworkPlugin (0.0.1):
- CocoaAsyncSocket (~> 7.6)
- Folly
- OpenSSL-Static (= 1.0.2.c1)
- PeerTalk
- Sonar
- PeerTalk (~> 0.0.2)
- Sonar (~> 0.6)
- SonarKit/SKIOSNetworkPlugin (0.6.12):
- SonarKit/Core
- SonarKit/SonarKitNetworkPlugin
- SonarKit/SonarKitLayoutComponentKitSupport (0.0.1):
- CocoaAsyncSocket (~> 7.6)
- SonarKit/SonarKitLayoutComponentKitSupport (0.6.12):
- ComponentKit
- Folly
- OpenSSL-Static (= 1.0.2.c1)
- PeerTalk
- Sonar
- SonarKit/Core
- SonarKit/SonarKitLayoutPlugin
- Yoga (~> 1.9)
- SonarKit/SonarKitLayoutPlugin (0.6.12):
- SonarKit/Core
- Yoga (~> 1.9)
- YogaKit (~> 1.8)
- SonarKit/SonarKitNetworkPlugin (0.6.12):
- SonarKit/Core
- Yoga (1.9)
- YogaKit (1.9):
- Yoga (~> 1.8)
- SonarKit/SonarKitLayoutPlugin (0.0.1):
- CocoaAsyncSocket (~> 7.6)
- Folly
- OpenSSL-Static (= 1.0.2.c1)
- PeerTalk
- Sonar
- Yoga (~> 1.8)
- YogaKit (= 1.8.1)
- SonarKit/SonarKitNetworkPlugin (0.0.1):
- CocoaAsyncSocket (~> 7.6)
- Folly
- OpenSSL-Static (= 1.0.2.c1)
- PeerTalk
- Sonar
- Yoga (1.8.1)
- YogaKit (1.8.1):
- Yoga (~> 1.8.1)
DEPENDENCIES:
- ComponentKit (from `../third-party-podspecs/ComponentKit.podspec`)
- DoubleConversion (from `../third-party-podspecs/DoubleConversion.podspec`)
- Folly (from `../third-party-podspecs/Folly.podspec`)
- glog (from `../third-party-podspecs/glog.podspec`)
- PeerTalk (from `../third-party-podspecs/PeerTalk.podspec`)
- RSocket (from `../third-party-podspecs/RSocket.podspec`)
- Sonar (from `../../xplat/Sonar/Sonar.podspec`)
- SonarKit (from `../SonarKit.podspec`)
- SonarKit/SKIOSNetworkPlugin (from `../SonarKit.podspec`)
- SonarKit/SonarKitLayoutComponentKitSupport (from `../SonarKit.podspec`)
- Yoga (~> 1.8.1)
- SonarKit (~> 0.6)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- boost-for-react-native
- CocoaAsyncSocket
- CocoaLibEvent
- ComponentKit
- DoubleConversion
- glog
- OpenSSL-Static
https://github.com/facebook/Sonar.git:
- Folly
- PeerTalk
- RSocket
- Sonar
- SonarKit
- Yoga
- YogaKit
EXTERNAL SOURCES:
ComponentKit:
:podspec: "../third-party-podspecs/ComponentKit.podspec"
DoubleConversion:
:podspec: "../third-party-podspecs/DoubleConversion.podspec"
Folly:
:podspec: "../third-party-podspecs/Folly.podspec"
glog:
:podspec: "../third-party-podspecs/glog.podspec"
PeerTalk:
:podspec: "../third-party-podspecs/PeerTalk.podspec"
RSocket:
:podspec: "../third-party-podspecs/RSocket.podspec"
Sonar:
:podspec: "../../xplat/Sonar/Sonar.podspec"
SonarKit:
:podspec: "../SonarKit.podspec"
CHECKOUT OPTIONS:
ComponentKit:
:commit: 89c5e28e4ccc02927187a8aac6b7196f533cf86d
:git: https://github.com/facebook/ComponentKit.git
Folly:
:commit: 1ed5d00ca4f43d5c81f4d731119e71509179dc99
:git: https://github.com/facebook/folly.git
PeerTalk:
:commit: 588303b43efa5082d654b6f75d1b84a6ba4b5b9e
:git: https://github.com/rsms/PeerTalk.git
RSocket:
:commit: 7f4fc67b1dc085e41cd89193077a70d994cb8500
:git: https://github.com/rsocket/rsocket-cpp.git
Sonar:
:commit: 54fa6aa8f2777304d923a9e9425e53bd5a3eab43
:git: https://github.com/facebook/Sonar.git
SonarKit:
:commit: 54fa6aa8f2777304d923a9e9425e53bd5a3eab43
:git: https://github.com/facebook/Sonar.git
SPEC CHECKSUMS:
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
CocoaAsyncSocket: eafaa68a7e0ec99ead0a7b35015e0bf25d2c8987
CocoaLibEvent: 2fab71b8bd46dd33ddb959f7928ec5909f838e3f
ComponentKit: 7bd0ad508946aeb68dd52ed8739ced9846ff3671
DoubleConversion: 9bd61b1134a393694e95e0950c5bf3f99534817f
Folly: 65270e20aba2ebbb87febbf1f9052ccd28571ea4
glog: fdb5d40eb83acd6a4d5d61d95ecc583f5970a119
ComponentKit: bf8b4c4e7448bd15b3a8e5a71174ea7aa6cea98d
DoubleConversion: e22e0762848812a87afd67ffda3998d9ef29170c
Folly: ac702dfbe9294be1002f9cddaa0c2ddb99b16288
glog: 1de0bb937dccdc981596d3b5825ebfb765017ded
OpenSSL-Static: bd17e34564a8591ad76b740318683a6caa19a13e
PeerTalk: aadc42bc7d7f19e89f817b59ef8196305a711504
RSocket: e9ee232080f995ba8f403ccf4cb61238a5646cb6
Sonar: 29d8fb9b010e56fa1358be996d68d4b436dd8c21
SonarKit: 5f67fab955cfebd1d47e711606eff97d18f6013c
Yoga: e6f1fed82138c17da5332e15e5770abf0e9cc386
YogaKit: bb90d11e297e06abef7e0cfb20e035a6bd00cdc4
PeerTalk: 77481b0a8136f226b90ccf828d6061f70139ffde
RSocket: 4fdb7e562db30a2d4fceddefdc601749ffc9ebe2
Sonar: b9f8907eecc20d5be742806ce57667a837bd7d65
SonarKit: a2d44c52729acb2bd60c4b94af3559aa178bc27b
Yoga: 73760f4a586236028db67df7f8373b30f3cf2bf5
YogaKit: c3e9ab94d9fbb548d861eb65985aa01e3a1fffe6
PODFILE CHECKSUM: 6d021549fc806a559ec83f4086fadb9d8dc59e00
PODFILE CHECKSUM: 09df00fabd58860485ad428096003778865f468d
COCOAPODS: 1.5.2

View File

@@ -4,20 +4,20 @@ yogakit_version = '~>1.8'
Pod::Spec.new do |spec|
spec.name = 'SonarKit'
spec.version = '0.0.1'
spec.version = '0.6.12'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/facebook/Sonar'
spec.summary = 'Sonar iOS podspec'
spec.authors = 'Facebook'
spec.static_framework = true
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:branch=> "master" }
:tag=> "v0.6.12" }
spec.module_name = 'SonarKit'
spec.platforms = { :ios => "8.4" }
spec.subspec "Core" do |ss|
ss.dependency 'Folly', '~>1.0'
ss.dependency 'Sonar', '~>0.0.1'
ss.dependency 'Sonar', '~>0.6'
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
ss.dependency 'PeerTalk', '~>0.0.2'
ss.dependency 'OpenSSL-Static', '1.0.2.c1'

View File

@@ -1,18 +1,18 @@
Pod::Spec.new do |spec|
spec.name = 'Sonar'
spec.version = '0.0.1'
spec.version = '0.6.12'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/facebook/sonar'
spec.summary = 'SonarKit core cpp code with network implementation'
spec.authors = 'Facebook'
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:branch => 'master' }
:tag => 'v0.6.12' }
spec.module_name = 'Sonar'
spec.public_header_files = 'xplat/Sonar/*.h'
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
spec.libraries = "stdc++"
spec.dependency 'Folly'
spec.dependency 'RSocket'
spec.dependency 'Folly', '~>1.0'
spec.dependency 'RSocket', '~>0.10'
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
-Wno-global-constructors'