Browse Source

Update our Podspecs for 1.0a17. (#898)

Daniel Alm 5 years ago
parent
commit
8faf3c6d43
4 changed files with 28 additions and 8 deletions
  1. 1 1
      CGRPCZlib.podspec
  2. 19 0
      gRPC-Swift-Plugins.podspec
  3. 3 3
      gRPC-Swift.podspec
  4. 5 4
      scripts/build_podspecs.py

+ 1 - 1
CGRPCZlib.podspec

@@ -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'

+ 19 - 0
gRPC-Swift-Plugins.podspec

@@ -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

+ 3 - 3
gRPC-Swift.podspec

@@ -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'
@@ -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

+ 5 - 4
scripts/build_podspecs.py

@@ -90,15 +90,16 @@ class Pod:
         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 ""