blob: 6616e74bd71906be8d288c40cd922c10aef392c9 [file] [log] [blame]
Muxi Yan690aee62017-01-27 02:52:47 +00001%YAML 1.2
2--- |
Muxi Yan27e9db42017-01-30 09:21:05 -08003 # This file has been automatically generated from a template file.
4 # Please make modifications to `templates/gRPC.podspec.template`
5 # instead. This file can be regenerated from the template by running
6 # `tools/buildgen/generate_projects.sh`.
7
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02008 # Copyright 2015 gRPC authors.
Muxi Yan690aee62017-01-27 02:52:47 +00009 #
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020010 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
Muxi Yan690aee62017-01-27 02:52:47 +000013 #
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020014 # http://www.apache.org/licenses/LICENSE-2.0
Muxi Yan690aee62017-01-27 02:52:47 +000015 #
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020016 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
Muxi Yan690aee62017-01-27 02:52:47 +000021
22
23 Pod::Spec.new do |s|
24 s.name = 'gRPC'
25 version = '${settings.version}'
26 s.version = version
27 s.summary = 'gRPC client library for iOS/OSX'
Mehrdad Afsharibb3d95b2017-07-10 22:24:28 +000028 s.homepage = 'https://grpc.io'
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020029 s.license = 'Apache License, Version 2.0'
Muxi Yan690aee62017-01-27 02:52:47 +000030 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
31
32 s.source = {
33 :git => 'https://github.com/grpc/grpc.git',
34 :tag => "v#{version}",
35 }
36
Muxi Yan37d3fba2017-02-28 16:14:40 -080037 s.ios.deployment_target = '7.0'
Muxi Yan690aee62017-01-27 02:52:47 +000038 s.osx.deployment_target = '10.9'
39
40 name = 'GRPCClient'
41 s.module_name = name
42 s.header_dir = name
43
44 src_dir = 'src/objective-c/GRPCClient'
Muxi Yan690aee62017-01-27 02:52:47 +000045
Muxi Yan690aee62017-01-27 02:52:47 +000046 s.dependency 'gRPC-RxLibrary', version
Muxi Yanb82f82b2017-08-14 12:01:14 -070047 s.default_subspec = 'Main'
Muxi Yan690aee62017-01-27 02:52:47 +000048
49 # Certificates, to be able to establish TLS connections:
50 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
51
52 s.pod_target_xcconfig = {
53 # This is needed by all pods that depend on gRPC-RxLibrary:
54 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
Muxi Yan94d669e2017-10-22 14:56:10 -070055 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
Muxi Yan690aee62017-01-27 02:52:47 +000056 }
Muxi Yanb82f82b2017-08-14 12:01:14 -070057
58 s.subspec 'Main' do |ss|
59 ss.header_mappings_dir = "#{src_dir}"
60
61 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
62 ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}"
63 ss.private_header_files = "#{src_dir}/private/*.h"
64
65 ss.dependency 'gRPC-Core', version
66 end
67
68 s.subspec 'GID' do |ss|
Muxi Yan7a1fe0d2017-10-06 15:33:10 -070069 ss.ios.deployment_target = '7.0'
70
Muxi Yanb82f82b2017-08-14 12:01:14 -070071 ss.header_mappings_dir = "#{src_dir}"
72
73 ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}"
74
Muxi Yan7a1fe0d2017-10-06 15:33:10 -070075 ss.dependency "#{s.name}/Main", version
Muxi Yanb82f82b2017-08-14 12:01:14 -070076 ss.dependency 'Google/SignIn'
77 end
Muxi Yan690aee62017-01-27 02:52:47 +000078 end