gRPC-RxLibrary.podspec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # This file has been automatically generated from a template file.
  2. # Please make modifications to
  3. # `templates/gRPC-RxLibrary.podspec.template` instead. This file can be
  4. # regenerated from the template by running
  5. # `tools/buildgen/generate_projects.sh`.
  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. Pod::Spec.new do |s|
  20. s.name = 'gRPC-RxLibrary'
  21. version = '1.45.2'
  22. s.version = version
  23. s.summary = 'Reactive Extensions library for iOS/OSX.'
  24. s.homepage = 'https://grpc.io'
  25. s.license = 'Apache License, Version 2.0'
  26. s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
  27. s.source = {
  28. :git => 'https://github.com/grpc/grpc.git',
  29. :tag => "v#{version}",
  30. }
  31. s.ios.deployment_target = '9.0'
  32. s.osx.deployment_target = '10.10'
  33. s.tvos.deployment_target = '10.0'
  34. s.watchos.deployment_target = '4.0'
  35. name = 'RxLibrary'
  36. s.module_name = name
  37. s.header_dir = name
  38. s.default_subspec = 'Interface', 'Implementation'
  39. src_dir = 'src/objective-c/RxLibrary'
  40. s.subspec 'Interface' do |ss|
  41. ss.header_mappings_dir = "#{src_dir}"
  42. ss.source_files = "#{src_dir}/*.h"
  43. ss.public_header_files = "#{src_dir}/*.h"
  44. end
  45. s.subspec 'Implementation' do |ss|
  46. ss.header_mappings_dir = "#{src_dir}"
  47. ss.source_files = "#{src_dir}/*.m", "#{src_dir}/**/*.{h,m}"
  48. ss.private_header_files = "#{src_dir}/**/*.h"
  49. ss.dependency "#{s.name}/Interface"
  50. end
  51. src_dir = 'src/objective-c/RxLibrary'
  52. s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
  53. s.private_header_files = "#{src_dir}/private/*.h"
  54. s.header_mappings_dir = "#{src_dir}"
  55. s.pod_target_xcconfig = {
  56. 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
  57. }
  58. end