1 # 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`.
6 # Copyright 2015 gRPC authors.
8 # 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
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # 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.
25 s.summary = 'gRPC client library for iOS/OSX'
26 s.homepage = 'https://grpc.io'
27 s.license = 'Apache License, Version 2.0'
28 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
31 :git => 'https://github.com/grpc/grpc.git',
32 :tag => "v#{version}",
39 s.default_subspec = 'Interface', 'GRPCCore', 'Interface-Legacy'
41 s.pod_target_xcconfig = {
42 # This is needed by all pods that depend on gRPC-RxLibrary:
43 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
44 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
47 s.ios.deployment_target = '7.0'
48 s.osx.deployment_target = '10.9'
49 s.tvos.deployment_target = '10.0'
50 s.watchos.deployment_target = '4.0'
52 s.subspec 'Interface-Legacy' do |ss|
53 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
55 ss.public_header_files = "src/objective-c/GRPCClient/GRPCCall+ChannelArg.h",
56 "src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h",
57 "src/objective-c/GRPCClient/GRPCCall+Cronet.h",
58 "src/objective-c/GRPCClient/GRPCCall+OAuth2.h",
59 "src/objective-c/GRPCClient/GRPCCall+Tests.h",
60 "src/objective-c/GRPCClient/GRPCCallLegacy.h",
61 "src/objective-c/GRPCClient/GRPCTypes.h"
63 ss.source_files = "src/objective-c/GRPCClient/GRPCCall+ChannelArg.h",
64 "src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h",
65 "src/objective-c/GRPCClient/GRPCCall+Cronet.h",
66 "src/objective-c/GRPCClient/GRPCCall+OAuth2.h",
67 "src/objective-c/GRPCClient/GRPCCall+Tests.h",
68 "src/objective-c/GRPCClient/GRPCCallLegacy.h",
69 "src/objective-c/GRPCClient/GRPCTypes.h",
70 "src/objective-c/GRPCClient/GRPCTypes.m"
71 ss.dependency "gRPC-RxLibrary/Interface", version
73 ss.ios.deployment_target = '7.0'
74 ss.osx.deployment_target = '10.9'
75 ss.tvos.deployment_target = '10.0'
76 ss.watchos.deployment_target = '4.0'
79 s.subspec 'Interface' do |ss|
80 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
82 ss.public_header_files = 'src/objective-c/GRPCClient/GRPCCall.h',
83 'src/objective-c/GRPCClient/GRPCCall+Interceptor.h',
84 'src/objective-c/GRPCClient/GRPCCallOptions.h',
85 'src/objective-c/GRPCClient/GRPCInterceptor.h',
86 'src/objective-c/GRPCClient/GRPCTransport.h',
87 'src/objective-c/GRPCClient/GRPCDispatchable.h',
88 'src/objective-c/GRPCClient/version.h'
90 ss.source_files = 'src/objective-c/GRPCClient/GRPCCall.h',
91 'src/objective-c/GRPCClient/GRPCCall.m',
92 'src/objective-c/GRPCClient/GRPCCall+Interceptor.h',
93 'src/objective-c/GRPCClient/GRPCCall+Interceptor.m',
94 'src/objective-c/GRPCClient/GRPCCallOptions.h',
95 'src/objective-c/GRPCClient/GRPCCallOptions.m',
96 'src/objective-c/GRPCClient/GRPCDispatchable.h',
97 'src/objective-c/GRPCClient/GRPCInterceptor.h',
98 'src/objective-c/GRPCClient/GRPCInterceptor.m',
99 'src/objective-c/GRPCClient/GRPCTransport.h',
100 'src/objective-c/GRPCClient/GRPCTransport.m',
101 'src/objective-c/GRPCClient/internal/*.h',
102 'src/objective-c/GRPCClient/private/GRPCTransport+Private.h',
103 'src/objective-c/GRPCClient/private/GRPCTransport+Private.m',
104 'src/objective-c/GRPCClient/version.h'
106 ss.dependency "#{s.name}/Interface-Legacy", version
108 ss.ios.deployment_target = '7.0'
109 ss.osx.deployment_target = '10.9'
110 ss.tvos.deployment_target = '10.0'
111 ss.watchos.deployment_target = '4.0'
114 s.subspec 'GRPCCore' do |ss|
115 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
117 ss.public_header_files = 'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h',
118 'src/objective-c/GRPCClient/GRPCCall+Cronet.h',
119 'src/objective-c/GRPCClient/GRPCCall+OAuth2.h',
120 'src/objective-c/GRPCClient/GRPCCall+Tests.h',
121 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h'
122 ss.private_header_files = 'src/objective-c/GRPCClient/private/GRPCCore/*.h'
123 ss.source_files = 'src/objective-c/GRPCClient/private/GRPCCore/*.{h,m}',
124 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h',
125 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.m',
126 'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h',
127 'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.m',
128 'src/objective-c/GRPCClient/GRPCCall+Cronet.h',
129 'src/objective-c/GRPCClient/GRPCCall+Cronet.m',
130 'src/objective-c/GRPCClient/GRPCCall+OAuth2.h',
131 'src/objective-c/GRPCClient/GRPCCall+OAuth2.m',
132 'src/objective-c/GRPCClient/GRPCCall+Tests.h',
133 'src/objective-c/GRPCClient/GRPCCall+Tests.m',
134 'src/objective-c/GRPCClient/GRPCCallLegacy.m'
136 # Certificates, to be able to establish TLS connections:
137 ss.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
139 ss.dependency "#{s.name}/Interface-Legacy", version
140 ss.dependency "#{s.name}/Interface", version
141 ss.dependency 'gRPC-Core', version
142 ss.dependency 'gRPC-RxLibrary', version
144 ss.ios.deployment_target = '7.0'
145 ss.osx.deployment_target = '10.9'
146 ss.tvos.deployment_target = '10.0'
147 ss.watchos.deployment_target = '4.0'
150 s.subspec 'GRPCCoreCronet' do |ss|
151 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
153 ss.source_files = 'src/objective-c/GRPCClient/GRPCCall+Cronet.h',
154 'src/objective-c/GRPCClient/GRPCCall+Cronet.m',
155 'src/objective-c/GRPCClient/private/GRPCCore/GRPCCoreCronet/*.{h,m}'
156 ss.dependency "#{s.name}/GRPCCore", version
157 ss.dependency 'gRPC-Core/Cronet-Implementation', version
158 ss.dependency 'CronetFramework'
160 ss.ios.deployment_target = '8.0'
163 # CFStream is now default. Leaving this subspec only for compatibility purpose.
164 s.subspec 'CFStream' do |ss|
165 ss.dependency "#{s.name}/GRPCCore", version
167 ss.ios.deployment_target = '7.0'
168 ss.osx.deployment_target = '10.9'
169 ss.tvos.deployment_target = '10.0'
170 ss.watchos.deployment_target = '4.0'
173 s.subspec 'InternalTesting' do |ss|
174 ss.dependency "#{s.name}/GRPCCore", version
175 ss.public_header_files = 'src/objective-c/GRPCClient/internal_testing/*.h'
176 ss.source_files = 'src/objective-c/GRPCClient/internal_testing/*.{h,m}'
177 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
179 ss.ios.deployment_target = '7.0'
180 ss.osx.deployment_target = '10.9'
181 ss.tvos.deployment_target = '10.0'
182 ss.watchos.deployment_target = '4.0'