Skip to content

Commit

Permalink
Add Cocoapod Support for SwiftGRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
jpricke1-ford committed Mar 27, 2020
1 parent 3ff60d0 commit cb338e8
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
31 changes: 31 additions & 0 deletions CGRPCZlib.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2020, gRPC Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

Pod::Spec.new do |s|
s.name = 'CGRPCZlib'
s.module_name = 'CGRPCZlib'
s.version = '1.0.0-alpha.11'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }

s.summary = 'Swift gRPC code generator plugin and runtime library'
s.homepage = 'https://www.grpc.io'
s.authors = { 'The gRPC contributors' => '[email protected]' }
s.source = { :git => 'https://github.com/grpc/grpc-swift.git', :tag => s.version }

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_files = 'Sources/CGRPCZlib/**/*.{swift,c,h}'

end
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ let package = Package(
],
products: [
.library(name: "GRPC", targets: ["GRPC"]),
.library(name: "CGRPCZlib", targets: ["CGRPCZlib"]),
.executable(name: "protoc-gen-grpc-swift", targets: ["protoc-gen-grpc-swift"]),
],
dependencies: [
Expand Down
41 changes: 41 additions & 0 deletions gRPC-Swift.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2020, gRPC Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

Pod::Spec.new do |s|
s.name = 'gRPC-Swift'
s.module_name = 'GRPC'
s.version = '1.0.0-alpha.11'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }

s.summary = 'Swift gRPC code generator plugin and runtime library'
s.homepage = 'https://www.grpc.io'
s.authors = { 'The gRPC contributors' => '[email protected]' }
s.source = { :git => 'https://github.com/grpc/grpc-swift.git', :tag => s.version }

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_files = 'Sources/GRPC/**/*.{swift,c,h}'

s.dependency 'CGRPCZlib', s.version.to_s

s.dependency 'SwiftNIO', '~> 2.0'
s.dependency 'SwiftNIOHTTP2', '~> 1.0'
s.dependency 'SwiftNIOTLS', '~> 2.0'
s.dependency 'SwiftNIOSSL', '2.7.0'
s.dependency 'SwiftNIOTransportServices', '~> 1.0'
s.dependency 'SwiftProtobuf', '~> 1.8.0'
s.dependency 'Logging', '~> 1.0'

end

0 comments on commit cb338e8

Please sign in to comment.