-
- Downloads
Moves ProtoRPC.podspec into gRPC.podspec
So the root of the repository doesn’t have 2 podspecs. All four libraries are subspecs now. Adjusts the generated code to account for that.
Showing
- ProtoRPC.podspec 0 additions, 17 deletionsProtoRPC.podspec
- gRPC.podspec 49 additions, 30 deletionsgRPC.podspec
- src/objective-c/examples/Sample/Podfile 0 additions, 1 deletionsrc/objective-c/examples/Sample/Podfile
- src/objective-c/examples/Sample/RemoteTestClient/RemoteTest.podspec 1 addition, 1 deletion...ive-c/examples/Sample/RemoteTestClient/RemoteTest.podspec
- src/objective-c/examples/Sample/RemoteTestClient/Test.pb.h 1 addition, 1 deletionsrc/objective-c/examples/Sample/RemoteTestClient/Test.pb.h
- src/objective-c/examples/Sample/RemoteTestClient/Test.pb.m 1 addition, 1 deletionsrc/objective-c/examples/Sample/RemoteTestClient/Test.pb.m
ProtoRPC.podspec
deleted
100644 → 0
Pod::Spec.new do |s| | |||
s.name = 'ProtoRPC' | |||
s.version = '0.0.1' | |||
s.summary = 'RPC library for ProtocolBuffers, based on gRPC' | |||
s.homepage = 'https://github.com/grpc/grpc/tree/master/src/objective-c/ProtoRPC' | |||
s.license = 'New BSD' | |||
s.authors = { 'Jorge Canizales' => 'jcanizales@google.com' } | |||
# s.source = { :git => 'https://github.com/grpc/grpc.git', :tag => 'release-0_5_0' } | |||
s.source_files = 'src/objective-c/ProtoRPC/*.{h,m}' | |||
s.platform = :ios | |||
s.ios.deployment_target = '6.0' | |||
s.requires_arc = true | |||
s.dependency 'gRPC', '~> 0.0' | |||
end |
... | @@ -7,15 +7,13 @@ Pod::Spec.new do |s| | ... | @@ -7,15 +7,13 @@ Pod::Spec.new do |s| |
s.authors = { 'Jorge Canizales' => 'jcanizales@google.com' } | s.authors = { 'Jorge Canizales' => 'jcanizales@google.com' } | ||
# s.source = { :git => 'https://github.com/grpc/grpc.git', :tag => 'release-0_5_0' } | # s.source = { :git => 'https://github.com/grpc/grpc.git', :tag => 'release-0_5_0' } | ||
s.source_files = 'src/objective-c/GRPCClient/*.{h,m}', 'src/objective-c/GRPCClient/private/*.{h,m}' | |||
s.private_header_files = 'src/objective-c/GRPCClient/private/*.h' | |||
s.platform = :ios | s.platform = :ios | ||
s.ios.deployment_target = '6.0' | s.ios.deployment_target = '6.0' | ||
s.requires_arc = true | s.requires_arc = true | ||
s.subspec 'RxLibrary' do |rs| | s.subspec 'RxLibrary' do |rs| | ||
rs.summary = 'Reactive Extensions library for iOS' | rs.summary = 'Reactive Extensions library for iOS.' | ||
rs.authors = { 'Jorge Canizales' => 'jcanizales@google.com' } | rs.authors = { 'Jorge Canizales' => 'jcanizales@google.com' } | ||
rs.source_files = 'src/objective-c/RxLibrary/*.{h,m}', 'src/objective-c/RxLibrary/transformations/*.{h,m}', 'src/objective-c/RxLibrary/private/*.{h,m}' | rs.source_files = 'src/objective-c/RxLibrary/*.{h,m}', 'src/objective-c/RxLibrary/transformations/*.{h,m}', 'src/objective-c/RxLibrary/private/*.{h,m}' | ||
... | @@ -23,7 +21,7 @@ Pod::Spec.new do |s| | ... | @@ -23,7 +21,7 @@ Pod::Spec.new do |s| |
end | end | ||
s.subspec 'C-Core' do |cs| | s.subspec 'C-Core' do |cs| | ||
cs.summary = 'Core gRPC library, written in C' | cs.summary = 'Core cross-platform gRPC library, written in C.' | ||
cs.authors = { 'Craig Tiller' => 'ctiller@google.com', | cs.authors = { 'Craig Tiller' => 'ctiller@google.com', | ||
'David Klempner' => 'klempner@google.com', | 'David Klempner' => 'klempner@google.com', | ||
'Nicolas Noble' => 'nnoble@google.com', | 'Nicolas Noble' => 'nnoble@google.com', | ||
... | @@ -38,32 +36,53 @@ Pod::Spec.new do |s| | ... | @@ -38,32 +36,53 @@ Pod::Spec.new do |s| |
cs.requires_arc = false | cs.requires_arc = false | ||
cs.libraries = 'z' | cs.libraries = 'z' | ||
cs.dependency 'OpenSSL', '~> 1.0.200' | cs.dependency 'OpenSSL', '~> 1.0.200' | ||
# This is a workaround for Cocoapods Issue #1437. | |||
# It renames time.h and string.h to grpc_time.h and grpc_string.h. | |||
cs.prepare_command = <<-CMD | |||
DIR_TIME="grpc/support" | |||
BAD_TIME="$DIR_TIME/time.h" | |||
GOOD_TIME="$DIR_TIME/grpc_time.h" | |||
if [ -f "include/$BAD_TIME" ]; | |||
then | |||
grep -rl "$BAD_TIME" include/grpc src/core | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g | |||
mv "include/$BAD_TIME" "include/$GOOD_TIME" | |||
fi | |||
DIR_STRING="src/core/support" | |||
BAD_STRING="$DIR_STRING/string.h" | |||
GOOD_STRING="$DIR_STRING/grpc_string.h" | |||
if [ -f "$BAD_STRING" ]; | |||
then | |||
grep -rl "$BAD_STRING" include/grpc src/core | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g | |||
mv "$BAD_STRING" "$GOOD_STRING" | |||
fi | |||
CMD | |||
end | |||
s.subspec 'GRPCClient' do |gs| | |||
gs.summary = 'Objective-C wrapper around the core gRPC library.' | |||
gs.authors = { 'Jorge Canizales' => 'jcanizales@google.com' } | |||
gs.source_files = 'src/objective-c/GRPCClient/*.{h,m}', 'src/objective-c/GRPCClient/private/*.{h,m}' | |||
gs.private_header_files = 'src/objective-c/GRPCClient/private/*.h' | |||
gs.dependency 'gRPC/C-Core' | |||
# Is this needed in all dependents? | |||
gs.xcconfig = { 'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/Headers/Public/gRPC/include"' } | |||
gs.dependency 'gRPC/RxLibrary' | |||
# Certificates, to be able to establish TLS connections: | |||
gs.resource_bundles = { 'gRPC' => ['etc/roots.pem'] } | |||
end | end | ||
# This is a workaround for Cocoapods Issue #1437. | s.subspec 'ProtoRPC' do |ps| | ||
# It renames time.h and string.h to grpc_time.h and grpc_string.h. | ps.summary = 'RPC library for ProtocolBuffers, based on gRPC' | ||
s.prepare_command = <<-CMD | ps.authors = { 'Jorge Canizales' => 'jcanizales@google.com' } | ||
DIR_TIME="grpc/support" | |||
BAD_TIME="$DIR_TIME/time.h" | ps.source_files = 'src/objective-c/ProtoRPC/*.{h,m}' | ||
GOOD_TIME="$DIR_TIME/grpc_time.h" | |||
if [ -f "include/$BAD_TIME" ]; | ps.dependency 'gRPC/GRPCClient' | ||
then | ps.dependency 'gRPC/RxLibrary' | ||
grep -rl "$BAD_TIME" include/grpc src/core | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g | end | ||
mv "include/$BAD_TIME" "include/$GOOD_TIME" | |||
fi | |||
DIR_STRING="src/core/support" | |||
BAD_STRING="$DIR_STRING/string.h" | |||
GOOD_STRING="$DIR_STRING/grpc_string.h" | |||
if [ -f "$BAD_STRING" ]; | |||
then | |||
grep -rl "$BAD_STRING" include/grpc src/core | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g | |||
mv "$BAD_STRING" "$GOOD_STRING" | |||
fi | |||
CMD | |||
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/Headers/Public/gRPC/include"' } | |||
# Certificates, to be able to establish TLS connections: | |||
s.resource_bundles = { 'gRPC' => ['etc/roots.pem'] } | |||
end | end |
Please register or sign in to comment