Skip to content

Update our Podspecs for 1.0a17. #898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CGRPCZlib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|

s.name = 'CGRPCZlib'
s.module_name = 'CGRPCZlib'
s.version = '1.0.0-alpha.14'
s.version = '1.0.0-alpha.17'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.summary = 'Compression library that provides in-memory compression and decompression functions'
s.homepage = 'https://www.grpc.io'
Expand Down
19 changes: 19 additions & 0 deletions gRPC-Swift-Plugins.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Pod::Spec.new do |s|

s.name = 'gRPC-Swift-Plugins'
s.version = '1.0.0-alpha.17'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.summary = 'Swift gRPC code generator plugin binaries'
s.homepage = 'https://www.grpc.io'
s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }

s.swift_version = '5.0'
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.source = { :http => "https://github.com/grpc/grpc-swift/releases/download/#{s.version}/protoc-grpc-swift-plugins-#{s.version}.zip"}

s.preserve_paths = '*'
s.dependency 'gRPC-Swift', s.version.to_s

end
6 changes: 3 additions & 3 deletions gRPC-Swift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|

s.name = 'gRPC-Swift'
s.module_name = 'GRPC'
s.version = '1.0.0-alpha.14'
s.version = '1.0.0-alpha.17'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.summary = 'Swift gRPC code generator plugin and runtime library'
s.homepage = 'https://www.grpc.io'
Expand All @@ -17,9 +17,9 @@ Pod::Spec.new do |s|
s.source_files = 'Sources/GRPC/**/*.{swift,c,h}'

s.dependency 'Logging', '>= 1.2.0', '< 2'
s.dependency 'SwiftNIO', '>= 2.18.0', '< 3'
s.dependency 'SwiftNIO', '>= 2.19.0', '< 3'
s.dependency 'SwiftNIOHTTP2', '>= 1.12.2', '< 2'
s.dependency 'SwiftNIOSSL', '>= 2.7.4', '< 3'
s.dependency 'SwiftNIOSSL', '>= 2.8.0', '< 3'
s.dependency 'SwiftNIOTransportServices', '>= 1.6.0', '< 2'
s.dependency 'SwiftProtobuf', '>= 1.9.0', '< 2'
s.dependency 'CGRPCZlib', s.version.to_s
Expand Down
9 changes: 5 additions & 4 deletions scripts/build_podspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,16 @@ def as_podspec(self):
podspec += indent + "s.homepage = 'https://www.grpc.io'\n"
podspec += indent + "s.authors = { 'The gRPC contributors' => \'grpc-packages@google.com' }\n\n"

podspec += indent + "s.swift_version = '5.0'\n"
podspec += indent + "s.ios.deployment_target = '10.0'\n"
podspec += indent + "s.osx.deployment_target = '10.12'\n"
podspec += indent + "s.tvos.deployment_target = '10.0'\n"

if self.is_plugins_pod:
podspec += indent + "s.source = { :http => \"https://github.com/grpc/grpc-swift/releases/download/#{s.version}/protoc-grpc-swift-plugins-#{s.version}.zip\"}\n\n"
podspec += indent + "s.preserve_paths = '*'\n"
else:
podspec += indent + "s.source = { :git => \"https://github.com/grpc/grpc-swift.git\", :tag => s.version }\n\n"
podspec += indent + "s.swift_version = '5.0'\n"
podspec += indent + "s.ios.deployment_target = '10.0'\n"
podspec += indent + "s.osx.deployment_target = '10.12'\n"
podspec += indent + "s.tvos.deployment_target = '10.0'\n"
podspec += indent + "s.source_files = 'Sources/%s/**/*.{swift,c,h}'\n" % (self.module_name)

podspec += "\n" if len(self.dependencies) > 0 else ""
Expand Down