| 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 |
|
| 21 |
Pod::Spec.new do |s| |
| 22 |
s.name = 'gRPC' |
| 23 |
version = '1.51.1' |
| 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' => '[email protected]' } |
| 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 |
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14', |
| 46 |
} |
| 47 |
|
| 48 |
s.ios.deployment_target = '9.0' |
| 49 |
s.osx.deployment_target = '10.10' |
| 50 |
s.tvos.deployment_target = '10.0' |
| 51 |
s.watchos.deployment_target = '4.0' |
| 52 |
|
| 53 |
s.subspec 'Interface-Legacy' do |ss| |
| 54 |
ss.header_mappings_dir = 'src/objective-c/GRPCClient' |
| 55 |
|
| 56 |
ss.public_header_files = "src/objective-c/GRPCClient/GRPCCall+ChannelArg.h", |
| 57 |
"src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h", |
| 58 |
"src/objective-c/GRPCClient/GRPCCall+Cronet.h", |
| 59 |
"src/objective-c/GRPCClient/GRPCCall+OAuth2.h", |
| 60 |
"src/objective-c/GRPCClient/GRPCCall+Tests.h", |
| 61 |
"src/objective-c/GRPCClient/GRPCCallLegacy.h", |
| 62 |
"src/objective-c/GRPCClient/GRPCTypes.h" |
| 63 |
|
| 64 |
ss.source_files = "src/objective-c/GRPCClient/GRPCCall+ChannelArg.h", |
| 65 |
"src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h", |
| 66 |
"src/objective-c/GRPCClient/GRPCCall+Cronet.h", |
| 67 |
"src/objective-c/GRPCClient/GRPCCall+OAuth2.h", |
| 68 |
"src/objective-c/GRPCClient/GRPCCall+Tests.h", |
| 69 |
"src/objective-c/GRPCClient/GRPCCallLegacy.h", |
| 70 |
"src/objective-c/GRPCClient/GRPCTypes.h", |
| 71 |
"src/objective-c/GRPCClient/GRPCTypes.m" |
| 72 |
ss.dependency "gRPC-RxLibrary/Interface", version |
| 73 |
|
| 74 |
ss.ios.deployment_target = '9.0' |
| 75 |
ss.osx.deployment_target = '10.10' |
| 76 |
ss.tvos.deployment_target = '10.0' |
| 77 |
ss.watchos.deployment_target = '4.0' |
| 78 |
end |
| 79 |
|
| 80 |
s.subspec 'Interface' do |ss| |
| 81 |
ss.header_mappings_dir = 'src/objective-c/GRPCClient' |
| 82 |
|
| 83 |
ss.public_header_files = 'src/objective-c/GRPCClient/GRPCCall.h', |
| 84 |
'src/objective-c/GRPCClient/GRPCCall+Interceptor.h', |
| 85 |
'src/objective-c/GRPCClient/GRPCCallOptions.h', |
| 86 |
'src/objective-c/GRPCClient/GRPCInterceptor.h', |
| 87 |
'src/objective-c/GRPCClient/GRPCTransport.h', |
| 88 |
'src/objective-c/GRPCClient/GRPCDispatchable.h', |
| 89 |
'src/objective-c/GRPCClient/version.h' |
| 90 |
|
| 91 |
ss.source_files = 'src/objective-c/GRPCClient/GRPCCall.h', |
| 92 |
'src/objective-c/GRPCClient/GRPCCall.m', |
| 93 |
'src/objective-c/GRPCClient/GRPCCall+Interceptor.h', |
| 94 |
'src/objective-c/GRPCClient/GRPCCall+Interceptor.m', |
| 95 |
'src/objective-c/GRPCClient/GRPCCallOptions.h', |
| 96 |
'src/objective-c/GRPCClient/GRPCCallOptions.m', |
| 97 |
'src/objective-c/GRPCClient/GRPCDispatchable.h', |
| 98 |
'src/objective-c/GRPCClient/GRPCInterceptor.h', |
| 99 |
'src/objective-c/GRPCClient/GRPCInterceptor.m', |
| 100 |
'src/objective-c/GRPCClient/GRPCTransport.h', |
| 101 |
'src/objective-c/GRPCClient/GRPCTransport.m', |
| 102 |
'src/objective-c/GRPCClient/internal/*.h', |
| 103 |
'src/objective-c/GRPCClient/private/GRPCTransport+Private.h', |
| 104 |
'src/objective-c/GRPCClient/private/GRPCTransport+Private.m', |
| 105 |
'src/objective-c/GRPCClient/version.h' |
| 106 |
|
| 107 |
ss.dependency "#{s.name}/Interface-Legacy", version |
| 108 |
|
| 109 |
ss.ios.deployment_target = '9.0' |
| 110 |
ss.osx.deployment_target = '10.10' |
| 111 |
ss.tvos.deployment_target = '10.0' |
| 112 |
ss.watchos.deployment_target = '4.0' |
| 113 |
end |
| 114 |
|
| 115 |
s.subspec 'GRPCCore' do |ss| |
| 116 |
ss.header_mappings_dir = 'src/objective-c/GRPCClient' |
| 117 |
|
| 118 |
ss.public_header_files = 'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h', |
| 119 |
'src/objective-c/GRPCClient/GRPCCall+Cronet.h', |
| 120 |
'src/objective-c/GRPCClient/GRPCCall+OAuth2.h', |
| 121 |
'src/objective-c/GRPCClient/GRPCCall+Tests.h', |
| 122 |
'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h' |
| 123 |
ss.private_header_files = 'src/objective-c/GRPCClient/private/GRPCCore/*.h' |
| 124 |
ss.source_files = 'src/objective-c/GRPCClient/private/GRPCCore/*.{h,m}', |
| 125 |
'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h', |
| 126 |
'src/objective-c/GRPCClient/GRPCCall+ChannelArg.m', |
| 127 |
'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h', |
| 128 |
'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.m', |
| 129 |
'src/objective-c/GRPCClient/GRPCCall+Cronet.h', |
| 130 |
'src/objective-c/GRPCClient/GRPCCall+Cronet.m', |
| 131 |
'src/objective-c/GRPCClient/GRPCCall+OAuth2.h', |
| 132 |
'src/objective-c/GRPCClient/GRPCCall+OAuth2.m', |
| 133 |
'src/objective-c/GRPCClient/GRPCCall+Tests.h', |
| 134 |
'src/objective-c/GRPCClient/GRPCCall+Tests.m', |
| 135 |
'src/objective-c/GRPCClient/GRPCCallLegacy.m' |
| 136 |
|
| 137 |
# Certificates, to be able to establish TLS connections: |
| 138 |
ss.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] } |
| 139 |
|
| 140 |
ss.dependency "#{s.name}/Interface-Legacy", version |
| 141 |
ss.dependency "#{s.name}/Interface", version |
| 142 |
ss.dependency 'gRPC-Core', version |
| 143 |
ss.dependency 'gRPC-RxLibrary', version |
| 144 |
|
| 145 |
ss.ios.deployment_target = '9.0' |
| 146 |
ss.osx.deployment_target = '10.10' |
| 147 |
ss.tvos.deployment_target = '10.0' |
| 148 |
ss.watchos.deployment_target = '4.0' |
| 149 |
end |
| 150 |
|
| 151 |
s.subspec 'GRPCCoreCronet' do |ss| |
| 152 |
ss.header_mappings_dir = 'src/objective-c/GRPCClient' |
| 153 |
|
| 154 |
ss.source_files = 'src/objective-c/GRPCClient/GRPCCall+Cronet.h', |
| 155 |
'src/objective-c/GRPCClient/GRPCCall+Cronet.m', |
| 156 |
'src/objective-c/GRPCClient/private/GRPCCore/GRPCCoreCronet/*.{h,m}' |
| 157 |
ss.dependency "#{s.name}/GRPCCore", version |
| 158 |
ss.dependency 'gRPC-Core/Cronet-Implementation', version |
| 159 |
ss.dependency 'CronetFramework' |
| 160 |
|
| 161 |
ss.ios.deployment_target = '9.0' |
| 162 |
end |
| 163 |
|
| 164 |
# CFStream is now default. Leaving this subspec only for compatibility purpose. |
| 165 |
s.subspec 'CFStream' do |ss| |
| 166 |
ss.dependency "#{s.name}/GRPCCore", version |
| 167 |
|
| 168 |
ss.ios.deployment_target = '9.0' |
| 169 |
ss.osx.deployment_target = '10.10' |
| 170 |
ss.tvos.deployment_target = '10.0' |
| 171 |
ss.watchos.deployment_target = '4.0' |
| 172 |
end |
| 173 |
|
| 174 |
s.subspec 'InternalTesting' do |ss| |
| 175 |
ss.dependency "#{s.name}/GRPCCore", version |
| 176 |
ss.public_header_files = 'src/objective-c/GRPCClient/internal_testing/*.h' |
| 177 |
ss.source_files = 'src/objective-c/GRPCClient/internal_testing/*.{h,m}' |
| 178 |
ss.header_mappings_dir = 'src/objective-c/GRPCClient' |
| 179 |
|
| 180 |
ss.ios.deployment_target = '9.0' |
| 181 |
ss.osx.deployment_target = '10.10' |
| 182 |
ss.tvos.deployment_target = '10.0' |
| 183 |
ss.watchos.deployment_target = '4.0' |
| 184 |
end |
| 185 |
end |