blob: bf3f56bd54987a289ef62c4802c2524d8270c85a [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'
Srini Polavarapu8c9af742018-07-19 09:52:56 -070023 version = '1.15.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'
Jorge Canizales045fabb2015-04-21 11:39:37 -070043
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020044 s.dependency 'gRPC-RxLibrary', version
Muxi Yanb82f82b2017-08-14 12:01:14 -070045 s.default_subspec = 'Main'
Craig Tillereb327fb2015-06-23 16:51:38 -070046
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020047 # Certificates, to be able to establish TLS connections:
48 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizalese4704d32016-07-18 11:08:04 -070049
50 s.pod_target_xcconfig = {
51 # This is needed by all pods that depend on gRPC-RxLibrary:
52 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
Muxi Yan94d669e2017-10-22 14:56:10 -070053 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
Jorge Canizalese4704d32016-07-18 11:08:04 -070054 }
Muxi Yanb82f82b2017-08-14 12:01:14 -070055
56 s.subspec 'Main' do |ss|
57 ss.header_mappings_dir = "#{src_dir}"
58
59 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
60 ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}"
61 ss.private_header_files = "#{src_dir}/private/*.h"
62
63 ss.dependency 'gRPC-Core', version
64 end
65
Muxi Yan08876da2018-06-06 20:06:35 -070066 # This subspec is mutually exclusive with the `Main` subspec
Muxi Yan588b2242018-04-25 14:20:56 -070067 s.subspec 'CFStream' do |ss|
Muxi Yan588b2242018-04-25 14:20:56 -070068 ss.dependency 'gRPC-Core/CFStream-Implementation', version
69 ss.dependency "#{s.name}/Main", version
70
71 ss.pod_target_xcconfig = {
72 'GCC_PREPROCESSOR_DEFINITIONS' => 'GRPC_CFSTREAM=1'
73 }
74 end
75
Muxi Yanb82f82b2017-08-14 12:01:14 -070076 s.subspec 'GID' do |ss|
Muxi Yan7a1fe0d2017-10-06 15:33:10 -070077 ss.ios.deployment_target = '7.0'
78
Muxi Yanb82f82b2017-08-14 12:01:14 -070079 ss.header_mappings_dir = "#{src_dir}"
80
81 ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}"
82
Muxi Yan7a1fe0d2017-10-06 15:33:10 -070083 ss.dependency "#{s.name}/Main", version
Muxi Yanb82f82b2017-08-14 12:01:14 -070084 ss.dependency 'Google/SignIn'
85 end
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080086end