Muxi Yan | 27e9db4 | 2017-01-30 09:21:05 -0800 | [diff] [blame] | 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 | |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 6 | # Copyright 2015 gRPC authors. |
murgatroid99 | f680af0 | 2015-06-22 11:20:24 -0700 | [diff] [blame] | 7 | # |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 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 |
murgatroid99 | f680af0 | 2015-06-22 11:20:24 -0700 | [diff] [blame] | 11 | # |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
murgatroid99 | f680af0 | 2015-06-22 11:20:24 -0700 | [diff] [blame] | 13 | # |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 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. |
murgatroid99 | f680af0 | 2015-06-22 11:20:24 -0700 | [diff] [blame] | 19 | |
murgatroid99 | f398d5c | 2015-06-16 14:07:36 -0700 | [diff] [blame] | 20 | |
Jorge Canizales | c2d7ecb | 2015-02-27 01:22:41 -0800 | [diff] [blame] | 21 | Pod::Spec.new do |s| |
| 22 | s.name = 'gRPC' |
David Garcia Quintas | 713597f | 2017-08-16 20:59:05 -0700 | [diff] [blame] | 23 | version = '1.7.0-dev' |
Jorge Canizales | c825f42 | 2015-09-28 21:43:48 -0700 | [diff] [blame] | 24 | s.version = version |
Jorge Canizales | 043dc72 | 2015-06-02 15:15:07 -0700 | [diff] [blame] | 25 | s.summary = 'gRPC client library for iOS/OSX' |
Mehrdad Afshari | bb3d95b | 2017-07-10 22:24:28 +0000 | [diff] [blame] | 26 | s.homepage = 'https://grpc.io' |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 27 | s.license = 'Apache License, Version 2.0' |
Jorge Canizales | 043dc72 | 2015-06-02 15:15:07 -0700 | [diff] [blame] | 28 | s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' } |
Jorge Canizales | c2d7ecb | 2015-02-27 01:22:41 -0800 | [diff] [blame] | 29 | |
Nicolas "Pixel" Noble | 4150e9e | 2016-07-12 19:18:56 +0200 | [diff] [blame] | 30 | s.source = { |
| 31 | :git => 'https://github.com/grpc/grpc.git', |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 32 | :tag => "v#{version}", |
Nicolas "Pixel" Noble | 4150e9e | 2016-07-12 19:18:56 +0200 | [diff] [blame] | 33 | } |
Nicolas "Pixel" Noble | cff6469 | 2015-10-03 02:01:51 +0200 | [diff] [blame] | 34 | |
Muxi Yan | 37d3fba | 2017-02-28 16:14:40 -0800 | [diff] [blame] | 35 | s.ios.deployment_target = '7.0' |
Craig Tiller | ba49645 | 2015-09-21 17:15:19 -0700 | [diff] [blame] | 36 | s.osx.deployment_target = '10.9' |
Jorge Canizales | c2d7ecb | 2015-02-27 01:22:41 -0800 | [diff] [blame] | 37 | |
Nicolas "Pixel" Noble | 4150e9e | 2016-07-12 19:18:56 +0200 | [diff] [blame] | 38 | name = 'GRPCClient' |
| 39 | s.module_name = name |
| 40 | s.header_dir = name |
Jorge Canizales | ea9b4fd | 2015-06-21 13:37:28 -0700 | [diff] [blame] | 41 | |
Nicolas "Pixel" Noble | 4150e9e | 2016-07-12 19:18:56 +0200 | [diff] [blame] | 42 | src_dir = 'src/objective-c/GRPCClient' |
Jorge Canizales | 045fabb | 2015-04-21 11:39:37 -0700 | [diff] [blame] | 43 | |
Nicolas "Pixel" Noble | 4150e9e | 2016-07-12 19:18:56 +0200 | [diff] [blame] | 44 | s.dependency 'gRPC-RxLibrary', version |
Muxi Yan | b82f82b | 2017-08-14 12:01:14 -0700 | [diff] [blame] | 45 | s.default_subspec = 'Main' |
Craig Tiller | eb327fb | 2015-06-23 16:51:38 -0700 | [diff] [blame] | 46 | |
Nicolas "Pixel" Noble | 4150e9e | 2016-07-12 19:18:56 +0200 | [diff] [blame] | 47 | # Certificates, to be able to establish TLS connections: |
| 48 | s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] } |
Jorge Canizales | e4704d3 | 2016-07-18 11:08:04 -0700 | [diff] [blame] | 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 | } |
Muxi Yan | b82f82b | 2017-08-14 12:01:14 -0700 | [diff] [blame] | 54 | |
| 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 Canizales | c2d7ecb | 2015-02-27 01:22:41 -0800 | [diff] [blame] | 72 | end |