Skip to content
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.1.0'
s.version = '1.3.0'
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
2 changes: 1 addition & 1 deletion gRPC-Swift-Plugins.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'gRPC-Swift-Plugins'
s.version = '1.1.0'
s.version = '1.3.0'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.summary = 'Swift gRPC code generator plugin binaries'
s.homepage = 'https://www.grpc.io'
Expand Down
4 changes: 2 additions & 2 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.1.0'
s.version = '1.3.0'
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 @@ -22,7 +22,7 @@ Pod::Spec.new do |s|
s.dependency 'SwiftNIO', '>= 2.28.0', '< 3.0.0'
s.dependency 'SwiftNIOExtras', '>= 1.4.0', '< 2.0.0'
s.dependency 'SwiftNIOHTTP2', '>= 1.16.1', '< 2.0.0'
s.dependency 'SwiftNIOSSL', '>= 2.8.0', '< 3.0.0'
s.dependency 'SwiftNIOSSL', '>= 2.14.0', '< 3.0.0'
s.dependency 'SwiftNIOTransportServices', '>= 1.6.0', '< 2.0.0'
s.dependency 'SwiftProtobuf', '>= 1.9.0', '< 2.0.0'

Expand Down
17 changes: 15 additions & 2 deletions scripts/build_podspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,21 @@ def write(self, pod, contents):
def publish(self, pod_name):
subprocess.check_call(['pod', 'repo', 'update'])
print(' Publishing %s.podspec' % (pod_name))
subprocess.check_call(['pod', 'trunk', 'push', '--synchronous',
self.directory + '/' + pod_name + ".podspec"])

args = ['pod', 'trunk', 'push', '--synchronous']

# The gRPC-Swift pod emits warnings about redundant availability
# guards on watchOS. These are redundant for the Cocoapods where we set
# the deployment target for watchOS to watchOS 6. However they are
# required for SPM where the deployment target is lower (and we can't
# raise it without breaking all of our consumers). We'll allow warnings
# to work around this.
if pod_name == "gRPC-Swift":
args.append("--allow-warnings")

path_to_podspec = self.directory + '/' + pod_name + ".podspec"
args.append(path_to_podspec)
subprocess.check_call(args)

def build_pods(self):
cgrpczlib_pod = Pod(
Expand Down