1%YAML 1.2 2--- | 3 # This file has been automatically generated from a template file. 4 # Please make modifications to 5 # `templates/gRPC-RxLibrary.podspec.template` instead. This file can be 6 # regenerated from the template by running 7 # `tools/buildgen/generate_projects.sh`. 8 9 # Copyright 2015 gRPC authors. 10 # 11 # Licensed under the Apache License, Version 2.0 (the "License"); 12 # you may not use this file except in compliance with the License. 13 # You may obtain a copy of the License at 14 # 15 # http://www.apache.org/licenses/LICENSE-2.0 16 # 17 # Unless required by applicable law or agreed to in writing, software 18 # distributed under the License is distributed on an "AS IS" BASIS, 19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 # See the License for the specific language governing permissions and 21 # limitations under the License. 22 23 24 Pod::Spec.new do |s| 25 s.name = 'gRPC-RxLibrary' 26 version = '${settings.version}' 27 s.version = version 28 s.summary = 'Reactive Extensions library for iOS/OSX.' 29 s.homepage = 'https://grpc.io' 30 s.license = 'Apache License, Version 2.0' 31 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' } 32 33 s.source = { 34 :git => 'https://github.com/grpc/grpc.git', 35 :tag => "v#{version}", 36 } 37 38 s.ios.deployment_target = '9.0' 39 s.osx.deployment_target = '10.10' 40 s.tvos.deployment_target = '10.0' 41 s.watchos.deployment_target = '4.0' 42 43 name = 'RxLibrary' 44 s.module_name = name 45 s.header_dir = name 46 47 s.default_subspec = 'Interface', 'Implementation' 48 49 src_dir = 'src/objective-c/RxLibrary' 50 s.subspec 'Interface' do |ss| 51 ss.header_mappings_dir = "#{src_dir}" 52 ss.source_files = "#{src_dir}/*.h" 53 ss.public_header_files = "#{src_dir}/*.h" 54 end 55 56 s.subspec 'Implementation' do |ss| 57 ss.header_mappings_dir = "#{src_dir}" 58 ss.source_files = "#{src_dir}/*.m", "#{src_dir}/**/*.{h,m}" 59 ss.private_header_files = "#{src_dir}/**/*.h" 60 61 ss.dependency "#{s.name}/Interface" 62 end 63 64 src_dir = 'src/objective-c/RxLibrary' 65 s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" 66 s.private_header_files = "#{src_dir}/private/*.h" 67 s.header_mappings_dir = "#{src_dir}" 68 69 s.pod_target_xcconfig = { 70 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO', 71 } 72 end 73