1%YAML 1.2 2--- | 3 # 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 8 # Copyright 2015 gRPC authors. 9 # 10 # 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 13 # 14 # http://www.apache.org/licenses/LICENSE-2.0 15 # 16 # 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. 21 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' 28 s.homepage = 'https://grpc.io' 29 s.license = 'Apache License, Version 2.0' 30 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 37 s.ios.deployment_target = '7.0' 38 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' 45 46 s.dependency 'gRPC-RxLibrary', version 47 s.default_subspec = 'Main' 48 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', 55 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO', 56 } 57 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 # This subspec is mutually exclusive with the `Main` subspec 69 s.subspec 'CFStream' do |ss| 70 ss.dependency 'gRPC-Core/CFStream-Implementation', version 71 ss.dependency "#{s.name}/Main", version 72 73 ss.pod_target_xcconfig = { 74 'GCC_PREPROCESSOR_DEFINITIONS' => 'GRPC_CFSTREAM=1' 75 } 76 end 77 78 s.subspec 'GID' do |ss| 79 ss.ios.deployment_target = '7.0' 80 81 ss.header_mappings_dir = "#{src_dir}" 82 83 ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}" 84 85 ss.dependency "#{s.name}/Main", version 86 ss.dependency 'Google/SignIn' 87 end 88 end 89