Merge pull request #17277 from muxi/grpc-cpp-pod-version

Use 'preX' version number when pre-releasing gRPC-C++.podspec
pull/17314/head
Muxi Yan 6 years ago committed by GitHub
commit a4be44480c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      gRPC-C++.podspec
  2. 10
      templates/gRPC-C++.podspec.template

@ -24,7 +24,7 @@ Pod::Spec.new do |s|
s.name = 'gRPC-C++'
# TODO (mxyan): use version that match gRPC version when pod is stabilized
# version = '1.17.0-pre2'
version = '0.0.4'
version = '0.0.6-pre2'
s.version = version
s.summary = 'gRPC C++ library'
s.homepage = 'https://grpc.io'

@ -127,12 +127,20 @@
def ruby_multiline_list(files, indent):
return (',\n' + indent*' ').join('\'%s\'' % f for f in files)
def modify_podspec_version_string(pod_version, grpc_version):
# Append -preX when it is a pre-release
if len(str(grpc_version).split('-')) > 1:
return pod_version + '-' + str(grpc_version).split('-')[-1]
else:
return pod_version
%>
Pod::Spec.new do |s|
s.name = 'gRPC-C++'
# TODO (mxyan): use version that match gRPC version when pod is stabilized
# version = '${settings.version}'
version = '0.0.4'
version = '${modify_podspec_version_string('0.0.6', settings.version)}'
s.version = version
s.summary = 'gRPC C++ library'
s.homepage = 'https://grpc.io'

Loading…
Cancel
Save