blob: f95a6b32232e434cde947791f29c70c20f40b707 [file] [log] [blame]
murgatroid99f680af02015-06-22 11:20:24 -07001# GRPC CocoaPods podspec
2# This file has been automatically generated from a template file.
3# Please look at the templates directory instead.
4# This file can be regenerated from the template by running
5# tools/buildgen/generate_projects.sh
6
7# Copyright 2015, Google Inc.
8# All rights reserved.
9#
10# Redistribution and use in source and binary forms, with or without
11# modification, are permitted provided that the following conditions are
12# met:
13#
14# * Redistributions of source code must retain the above copyright
15# notice, this list of conditions and the following disclaimer.
16# * Redistributions in binary form must reproduce the above
17# copyright notice, this list of conditions and the following disclaimer
18# in the documentation and/or other materials provided with the
19# distribution.
20# * Neither the name of Google Inc. nor the names of its
21# contributors may be used to endorse or promote products derived from
22# this software without specific prior written permission.
23#
24# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
murgatroid99f398d5c2015-06-16 14:07:36 -070036
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080037Pod::Spec.new do |s|
38 s.name = 'gRPC'
Jorge Canizalesf4639d42016-05-06 16:41:36 -070039 version = '0.14.0'
Jorge Canizalesc825f422015-09-28 21:43:48 -070040 s.version = version
Jorge Canizales043dc722015-06-02 15:15:07 -070041 s.summary = 'gRPC client library for iOS/OSX'
42 s.homepage = 'http://www.grpc.io'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080043 s.license = 'New BSD'
Jorge Canizales043dc722015-06-02 15:15:07 -070044 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080045
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020046 s.source = {
47 :git => 'https://github.com/grpc/grpc.git',
48 :tag => "release-#{version.gsub(/\./, '_')}-objectivec-#{version}",
49 }
Nicolas "Pixel" Noblecff64692015-10-03 02:01:51 +020050
Craig Tillerba496452015-09-21 17:15:19 -070051 s.ios.deployment_target = '7.1'
52 s.osx.deployment_target = '10.9'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080053
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020054 name = 'GRPCClient'
55 s.module_name = name
56 s.header_dir = name
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070057
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020058 src_dir = 'src/objective-c/GRPCClient'
59 s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
60 s.private_header_files = "#{src_dir}/private/*.h"
61 s.header_mappings_dir = "#{src_dir}"
Jorge Canizales045fabb2015-04-21 11:39:37 -070062
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020063 s.dependency 'gRPC-Core', version
64 s.dependency 'gRPC-RxLibrary', version
Craig Tillereb327fb2015-06-23 16:51:38 -070065
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020066 # Certificates, to be able to establish TLS connections:
67 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizalese4704d32016-07-18 11:08:04 -070068
69 s.pod_target_xcconfig = {
70 # This is needed by all pods that depend on gRPC-RxLibrary:
71 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
72 }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080073end