Skip to content
Snippets Groups Projects
Commit 70ded7ee authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Update sample and test versions to -pre1.1

To use the 3.0.0-beta-4 version of protoc, which has the fix for oneofs
when using dynamic frameworks.
parent 9e637238
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ Pod::Spec.new do |s| ...@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
src = "../../protos" src = "../../protos"
# Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients. # Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients.
s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1" s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1.1"
# Pods directory corresponding to this app's Podfile, relative to the location of this podspec. # Pods directory corresponding to this app's Podfile, relative to the location of this podspec.
pods_root = 'Pods' pods_root = 'Pods'
......
...@@ -14,7 +14,7 @@ Pod::Spec.new do |s| ...@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
src = "../../protos" src = "../../protos"
# Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients. # Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients.
s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1" s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1.1"
# Pods directory corresponding to this app's Podfile, relative to the location of this podspec. # Pods directory corresponding to this app's Podfile, relative to the location of this podspec.
pods_root = 'Pods' pods_root = 'Pods'
......
...@@ -14,7 +14,7 @@ Pod::Spec.new do |s| ...@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
src = "../../protos" src = "../../protos"
# Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients. # Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients.
s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1" s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1.1"
# Pods directory corresponding to this app's Podfile, relative to the location of this podspec. # Pods directory corresponding to this app's Podfile, relative to the location of this podspec.
pods_root = 'Pods' pods_root = 'Pods'
......
...@@ -37,7 +37,7 @@ Pod::Spec.new do |s| ...@@ -37,7 +37,7 @@ Pod::Spec.new do |s|
# before them. # before them.
s.name = '!ProtoCompiler-gRPCPlugin' s.name = '!ProtoCompiler-gRPCPlugin'
v = '1.0.0-pre1' v = '1.0.0-pre1'
s.version = v s.version = "#{v}.1" # .1 to depend on protoc 3.0.0-beta-4
s.summary = 'The gRPC ProtoC plugin generates Objective-C files from .proto services.' s.summary = 'The gRPC ProtoC plugin generates Objective-C files from .proto services.'
s.description = <<-DESC s.description = <<-DESC
This podspec only downloads the gRPC protoc plugin so that local pods generating protos can use This podspec only downloads the gRPC protoc plugin so that local pods generating protos can use
...@@ -96,7 +96,7 @@ Pod::Spec.new do |s| ...@@ -96,7 +96,7 @@ Pod::Spec.new do |s|
s.preserve_paths = plugin s.preserve_paths = plugin
# Restrict the protoc version to the one supported by this plugin. # Restrict the protoc version to the one supported by this plugin.
s.dependency '!ProtoCompiler', '3.0.0-beta-3.1' s.dependency '!ProtoCompiler', '3.0.0-beta-4'
# For the Protobuf dependency not to complain: # For the Protobuf dependency not to complain:
s.ios.deployment_target = '7.1' s.ios.deployment_target = '7.1'
s.osx.deployment_target = '10.9' s.osx.deployment_target = '10.9'
......
...@@ -36,7 +36,7 @@ Pod::Spec.new do |s| ...@@ -36,7 +36,7 @@ Pod::Spec.new do |s|
# exclamation mark ensures that other "regular" pods will be able to find it as it'll be installed # exclamation mark ensures that other "regular" pods will be able to find it as it'll be installed
# before them. # before them.
s.name = '!ProtoCompiler' s.name = '!ProtoCompiler'
v = '3.0.0-beta-3.1' v = '3.0.0-beta-4'
s.version = v s.version = v
s.summary = 'The Protobuf Compiler (protoc) generates Objective-C files from .proto files' s.summary = 'The Protobuf Compiler (protoc) generates Objective-C files from .proto files'
s.description = <<-DESC s.description = <<-DESC
...@@ -120,7 +120,7 @@ Pod::Spec.new do |s| ...@@ -120,7 +120,7 @@ Pod::Spec.new do |s|
repo_root = '../..' repo_root = '../..'
plugin = 'grpc_objective_c_plugin' plugin = 'grpc_objective_c_plugin'
s.prepare_command = <<-CMD s.prepare_command = <<-CMD
if [ ! -f protoc ]; then if [ ! -f bin/protoc ]; then
cd #{repo_root} cd #{repo_root}
# This will build protoc from the Protobuf submodule of gRPC, and put it in # This will build protoc from the Protobuf submodule of gRPC, and put it in
# #{repo_root}/bins/opt/protobuf. # #{repo_root}/bins/opt/protobuf.
...@@ -129,7 +129,9 @@ Pod::Spec.new do |s| ...@@ -129,7 +129,9 @@ Pod::Spec.new do |s|
# _we do not want_. Find a way for this to always build from source. # _we do not want_. Find a way for this to always build from source.
make #{plugin} make #{plugin}
cd - cd -
else
mv bin/protoc .
mv include/google .
fi fi
CMD CMD
end end
...@@ -11,7 +11,7 @@ Pod::Spec.new do |s| ...@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.osx.deployment_target = '10.9' s.osx.deployment_target = '10.9'
# Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients. # Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients.
s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1" s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1.1"
repo_root = '../../../..' repo_root = '../../../..'
bin_dir = "#{repo_root}/bins/$CONFIG" bin_dir = "#{repo_root}/bins/$CONFIG"
......
...@@ -11,7 +11,7 @@ Pod::Spec.new do |s| ...@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.osx.deployment_target = '10.9' s.osx.deployment_target = '10.9'
# Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients. # Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients.
s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1" s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1.1"
repo_root = '../../../..' repo_root = '../../../..'
bin_dir = "#{repo_root}/bins/$CONFIG" bin_dir = "#{repo_root}/bins/$CONFIG"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment