• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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`.
5
6# Copyright 2015 gRPC authors.
7#
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
11#
12#     http://www.apache.org/licenses/LICENSE-2.0
13#
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.
19
20
21Pod::Spec.new do |s|
22  s.name     = 'gRPC'
23  version = '1.38.0'
24  s.version  = version
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' }
29
30  s.source = {
31    :git => 'https://github.com/grpc/grpc.git',
32    :tag => "v#{version}",
33  }
34
35  name = 'GRPCClient'
36  s.module_name = name
37  s.header_dir = name
38
39  s.default_subspec = 'Interface', 'GRPCCore', 'Interface-Legacy'
40
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',
45  }
46
47  s.ios.deployment_target = '9.0'
48  s.osx.deployment_target = '10.10'
49  s.tvos.deployment_target = '10.0'
50  s.watchos.deployment_target = '4.0'
51
52  s.subspec 'Interface-Legacy' do |ss|
53    ss.header_mappings_dir = 'src/objective-c/GRPCClient'
54
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"
62
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
72
73    ss.ios.deployment_target = '9.0'
74    ss.osx.deployment_target = '10.10'
75    ss.tvos.deployment_target = '10.0'
76    ss.watchos.deployment_target = '4.0'
77  end
78
79  s.subspec 'Interface' do |ss|
80    ss.header_mappings_dir = 'src/objective-c/GRPCClient'
81
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'
89
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'
105
106    ss.dependency "#{s.name}/Interface-Legacy", version
107
108    ss.ios.deployment_target = '9.0'
109    ss.osx.deployment_target = '10.10'
110    ss.tvos.deployment_target = '10.0'
111    ss.watchos.deployment_target = '4.0'
112  end
113
114  s.subspec 'GRPCCore' do |ss|
115    ss.header_mappings_dir = 'src/objective-c/GRPCClient'
116
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'
135
136    # Certificates, to be able to establish TLS connections:
137    ss.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
138
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
143
144    ss.ios.deployment_target = '9.0'
145    ss.osx.deployment_target = '10.10'
146    ss.tvos.deployment_target = '10.0'
147    ss.watchos.deployment_target = '4.0'
148  end
149
150  s.subspec 'GRPCCoreCronet' do |ss|
151    ss.header_mappings_dir = 'src/objective-c/GRPCClient'
152
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'
159
160    ss.ios.deployment_target = '9.0'
161  end
162
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
166
167    ss.ios.deployment_target = '9.0'
168    ss.osx.deployment_target = '10.10'
169    ss.tvos.deployment_target = '10.0'
170    ss.watchos.deployment_target = '4.0'
171  end
172
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'
178
179    ss.ios.deployment_target = '9.0'
180    ss.osx.deployment_target = '10.10'
181    ss.tvos.deployment_target = '10.0'
182    ss.watchos.deployment_target = '4.0'
183  end
184end
185