Skip to content

Commit 62b41a5

Browse files
committed
Update CocoaPods for alpha13.
1 parent 2717d12 commit 62b41a5

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

CGRPCZlib.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |s|
22

33
s.name = 'CGRPCZlib'
44
s.module_name = 'CGRPCZlib'
5-
s.version = '1.0.0-alpha.12'
5+
s.version = '1.0.0-alpha.13'
66
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
77
s.summary = 'Compression library that provides in-memory compression and decompression functions'
88
s.homepage = 'https://www.grpc.io'

gRPC-Swift.podspec

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Pod::Spec.new do |s|
1616
s.tvos.deployment_target = '10.0'
1717
s.source_files = 'Sources/GRPC/**/*.{swift,c,h}'
1818

19-
s.dependency 'Logging', '1.2.0'
20-
s.dependency 'SwiftNIO', '2.18.0'
21-
s.dependency 'SwiftNIOHTTP2', '1.12.1'
22-
s.dependency 'SwiftNIOSSL', '2.7.4'
23-
s.dependency 'SwiftNIOTransportServices', '1.6.0'
24-
s.dependency 'SwiftProtobuf', '1.9.0'
19+
s.dependency 'Logging', '~> 1.2'
20+
s.dependency 'SwiftNIO', '~> 2.18'
21+
s.dependency 'SwiftNIOHTTP2', '~> 1.12'
22+
s.dependency 'SwiftNIOSSL', '~> 2.7'
23+
s.dependency 'SwiftNIOTransportServices', '~> 1.6'
24+
s.dependency 'SwiftProtobuf', '~> 1.9'
2525
s.dependency 'CGRPCZlib', s.version.to_s
2626

2727
end

scripts/build_podspecs.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def as_podspec(self):
5353
if self.use_verbatim_version:
5454
return " s.dependency '%s', %s\n" % (self.name, self.version)
5555

56-
return " s.dependency '%s', '%s'\n" % (self.name, self.version)
56+
# The '~>' allows users to use any patch update for the given version.
57+
return " s.dependency '%s', '~> %s'\n" % (self.name, self.version)
5758

5859
class Pod:
5960
def __init__(self, name, module_name, version, description, dependencies=None):
@@ -118,7 +119,7 @@ def write(self, pod, contents):
118119
def publish(self, pod_name):
119120
os.system('pod repo update')
120121
print(' Publishing %s.podspec' % (pod_name))
121-
os.system('pod trunk push %s/%s.podspec' % (self.directory, pod_name))
122+
os.system('pod trunk push --synchronous %s/%s.podspec' % (self.directory, pod_name))
122123

123124
def build_pods(self):
124125
cgrpczlib_pod = Pod(
@@ -138,7 +139,7 @@ def build_pods(self):
138139

139140
grpc_pod.add_dependency(Dependency('CGRPCZlib'))
140141

141-
self.pods += [cgrpczlib_pod, grpc_pod]
142+
self.pods += [grpc_pod]
142143

143144
def go(self):
144145
self.build_pods()
@@ -172,6 +173,8 @@ def get_grpc_deps():
172173
for obj in data['object']['pins']:
173174
package = process_package(obj['package'])
174175
version = obj['state']['version']
176+
# Strip the "patch" part of the version, as we want to allow users to use any patch version.
177+
version = '.'.join(version.split('.')[0:2])
175178

176179
deps.append(Dependency(package, version, False))
177180

0 commit comments

Comments
 (0)