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.16.0-dev' 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 s.ios.deployment_target = '7.0' 36 s.osx.deployment_target = '10.9' 37 38 name = 'GRPCClient' 39 s.module_name = name 40 s.header_dir = name 41 42 src_dir = 'src/objective-c/GRPCClient' 43 44 s.dependency 'gRPC-RxLibrary', version 45 s.default_subspec = 'Main' 46 47 # Certificates, to be able to establish TLS connections: 48 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] } 49 50 s.pod_target_xcconfig = { 51 # This is needed by all pods that depend on gRPC-RxLibrary: 52 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES', 53 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO', 54 } 55 56 s.subspec 'Main' do |ss| 57 ss.header_mappings_dir = "#{src_dir}" 58 59 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" 60 ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}" 61 ss.private_header_files = "#{src_dir}/private/*.h" 62 63 ss.dependency 'gRPC-Core', version 64 end 65 66 # This subspec is mutually exclusive with the `Main` subspec 67 s.subspec 'CFStream' do |ss| 68 ss.dependency 'gRPC-Core/CFStream-Implementation', version 69 ss.dependency "#{s.name}/Main", version 70 71 ss.pod_target_xcconfig = { 72 'GCC_PREPROCESSOR_DEFINITIONS' => 'GRPC_CFSTREAM=1' 73 } 74 end 75 76 s.subspec 'GID' do |ss| 77 ss.ios.deployment_target = '7.0' 78 79 ss.header_mappings_dir = "#{src_dir}" 80 81 ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}" 82 83 ss.dependency "#{s.name}/Main", version 84 ss.dependency 'Google/SignIn' 85 end 86end 87