Ver código fonte

Add support for watchOS to the podspecs (#998)

Dalton Claybrook 5 anos atrás
pai
commit
7818989fed
4 arquivos alterados com 4 adições e 0 exclusões
  1. 1 0
      CGRPCZlib.podspec
  2. 1 0
      gRPC-Swift-Plugins.podspec
  3. 1 0
      gRPC-Swift.podspec
  4. 1 0
      scripts/build_podspecs.py

+ 1 - 0
CGRPCZlib.podspec

@@ -12,6 +12,7 @@ Pod::Spec.new do |s|
     s.ios.deployment_target = '10.0'
     s.osx.deployment_target = '10.12'
     s.tvos.deployment_target = '10.0'
+    s.watchos.deployment_target = '6.0'
     s.source = { :git => "https://github.com/grpc/grpc-swift.git", :tag => s.version }
 
     s.source_files = 'Sources/CGRPCZlib/**/*.{swift,c,h}'

+ 1 - 0
gRPC-Swift-Plugins.podspec

@@ -11,6 +11,7 @@ Pod::Spec.new do |s|
     s.ios.deployment_target = '10.0'
     s.osx.deployment_target = '10.12'
     s.tvos.deployment_target = '10.0'
+    s.watchos.deployment_target = '6.0'
     s.source = { :http => "https://github.com/grpc/grpc-swift/releases/download/#{s.version}/protoc-grpc-swift-plugins-#{s.version}.zip"}
 
     s.preserve_paths = '*'

+ 1 - 0
gRPC-Swift.podspec

@@ -12,6 +12,7 @@ Pod::Spec.new do |s|
     s.ios.deployment_target = '10.0'
     s.osx.deployment_target = '10.12'
     s.tvos.deployment_target = '10.0'
+    s.watchos.deployment_target = '6.0'
     s.source = { :git => "https://github.com/grpc/grpc-swift.git", :tag => s.version }
 
     s.source_files = 'Sources/GRPC/**/*.{swift,c,h}'

+ 1 - 0
scripts/build_podspecs.py

@@ -71,6 +71,7 @@ class Pod:
         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.watchos.deployment_target = '6.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"