blob: 4c83ccc7a0fe3dcd26d028d6d36e83e87674a169 [file] [log] [blame]
Muxi Yan27e9db42017-01-30 09:21:05 -08001# This file has been automatically generated from a template file.
2# Please make modifications to `templates/gRPC.podspec.template`
3# instead. This file can be regenerated from the template by running
4# `tools/buildgen/generate_projects.sh`.
5
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02006# Copyright 2015 gRPC authors.
murgatroid99f680af02015-06-22 11:20:24 -07007#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02008# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
murgatroid99f680af02015-06-22 11:20:24 -070011#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020012# http://www.apache.org/licenses/LICENSE-2.0
murgatroid99f680af02015-06-22 11:20:24 -070013#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020014# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
murgatroid99f680af02015-06-22 11:20:24 -070019
murgatroid99f398d5c2015-06-16 14:07:36 -070020
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080021Pod::Spec.new do |s|
22 s.name = 'gRPC'
David Garcia Quintasaebcdbd2017-05-30 14:14:27 -070023 version = '1.5.0-dev'
Jorge Canizalesc825f422015-09-28 21:43:48 -070024 s.version = version
Jorge Canizales043dc722015-06-02 15:15:07 -070025 s.summary = 'gRPC client library for iOS/OSX'
Mehrdad Afsharibb3d95b2017-07-10 22:24:28 +000026 s.homepage = 'https://grpc.io'
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020027 s.license = 'Apache License, Version 2.0'
Jorge Canizales043dc722015-06-02 15:15:07 -070028 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080029
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020030 s.source = {
31 :git => 'https://github.com/grpc/grpc.git',
Muxi Yan690aee62017-01-27 02:52:47 +000032 :tag => "v#{version}",
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020033 }
Nicolas "Pixel" Noblecff64692015-10-03 02:01:51 +020034
Muxi Yan37d3fba2017-02-28 16:14:40 -080035 s.ios.deployment_target = '7.0'
Craig Tillerba496452015-09-21 17:15:19 -070036 s.osx.deployment_target = '10.9'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080037
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020038 name = 'GRPCClient'
39 s.module_name = name
40 s.header_dir = name
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070041
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020042 src_dir = 'src/objective-c/GRPCClient'
43 s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
44 s.private_header_files = "#{src_dir}/private/*.h"
45 s.header_mappings_dir = "#{src_dir}"
Jorge Canizales045fabb2015-04-21 11:39:37 -070046
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020047 s.dependency 'gRPC-Core', version
48 s.dependency 'gRPC-RxLibrary', version
Craig Tillereb327fb2015-06-23 16:51:38 -070049
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020050 # Certificates, to be able to establish TLS connections:
51 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizalese4704d32016-07-18 11:08:04 -070052
53 s.pod_target_xcconfig = {
54 # This is needed by all pods that depend on gRPC-RxLibrary:
55 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
56 }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080057end