blob: 79315e46f31fb6886a420159d547d73e00484def [file] [log] [blame]
Muxi Yan27e9db42017-01-30 09:21:05 -08001# 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
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02006# Copyright 2015 gRPC authors.
murgatroid99f680af02015-06-22 11:20:24 -07007#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02008# 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
murgatroid99f680af02015-06-22 11:20:24 -070011#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020012# http://www.apache.org/licenses/LICENSE-2.0
murgatroid99f680af02015-06-22 11:20:24 -070013#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020014# 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.
murgatroid99f680af02015-06-22 11:20:24 -070019
murgatroid99f398d5c2015-06-16 14:07:36 -070020
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080021Pod::Spec.new do |s|
22 s.name = 'gRPC'
David Garcia Quintas713597f2017-08-16 20:59:05 -070023 version = '1.7.0-dev'
Jorge Canizalesc825f422015-09-28 21:43:48 -070024 s.version = version
Jorge Canizales043dc722015-06-02 15:15:07 -070025 s.summary = 'gRPC client library for iOS/OSX'
Mehrdad Afsharibb3d95b2017-07-10 22:24:28 +000026 s.homepage = 'https://grpc.io'
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020027 s.license = 'Apache License, Version 2.0'
Jorge Canizales043dc722015-06-02 15:15:07 -070028 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080029
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020030 s.source = {
31 :git => 'https://github.com/grpc/grpc.git',
Muxi Yan690aee62017-01-27 02:52:47 +000032 :tag => "v#{version}",
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020033 }
Nicolas "Pixel" Noblecff64692015-10-03 02:01:51 +020034
Muxi Yan37d3fba2017-02-28 16:14:40 -080035 s.ios.deployment_target = '7.0'
Craig Tillerba496452015-09-21 17:15:19 -070036 s.osx.deployment_target = '10.9'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080037
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020038 name = 'GRPCClient'
39 s.module_name = name
40 s.header_dir = name
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070041
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020042 src_dir = 'src/objective-c/GRPCClient'
Jorge Canizales045fabb2015-04-21 11:39:37 -070043
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020044 s.dependency 'gRPC-RxLibrary', version
Muxi Yanb82f82b2017-08-14 12:01:14 -070045 s.default_subspec = 'Main'
Craig Tillereb327fb2015-06-23 16:51:38 -070046
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020047 # Certificates, to be able to establish TLS connections:
48 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizalese4704d32016-07-18 11:08:04 -070049
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 }
Muxi Yanb82f82b2017-08-14 12:01:14 -070054
55 s.subspec 'Main' do |ss|
56 ss.header_mappings_dir = "#{src_dir}"
57
58 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
59 ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}"
60 ss.private_header_files = "#{src_dir}/private/*.h"
61
62 ss.dependency 'gRPC-Core', version
63 end
64
65 s.subspec 'GID' do |ss|
66 ss.header_mappings_dir = "#{src_dir}"
67
68 ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}"
69
70 ss.dependency 'Google/SignIn'
71 end
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080072end