GoogleDataTransportCCTSupport.podspec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleDataTransportCCTSupport'
  3. s.version = '1.1.0'
  4. s.summary = 'Support library for the GoogleDataTransport CCT backend target.'
  5. s.description = <<-DESC
  6. Support library to provide event prioritization and uploading for the GoogleDataTransport CCT backend target.
  7. DESC
  8. s.homepage = 'https://developers.google.com/'
  9. s.license = { :type => 'Apache', :file => 'LICENSE' }
  10. s.authors = 'Google, Inc.'
  11. s.source = {
  12. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  13. :tag => 'DataTransportCCTSupport-' + s.version.to_s
  14. }
  15. s.ios.deployment_target = '8.0'
  16. s.osx.deployment_target = '10.11'
  17. s.tvos.deployment_target = '10.0'
  18. # To develop or run the tests, >= 1.8.0.beta.1 must be installed.
  19. s.cocoapods_version = '>= 1.4.0'
  20. s.static_framework = true
  21. s.prefix_header_file = false
  22. s.source_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/**/*'
  23. s.private_header_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/Private/*.h'
  24. s.dependency 'GoogleDataTransport', '~> 2.0'
  25. s.dependency 'nanopb'
  26. header_search_paths = {
  27. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/GoogleDataTransportCCTSupport/"'
  28. }
  29. s.pod_target_xcconfig = {
  30. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  31. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  32. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES',
  33. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  34. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  35. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  36. # anyways.)
  37. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  38. }.merge(header_search_paths)
  39. # Test specs
  40. s.test_spec 'Tests-Unit' do |test_spec|
  41. test_spec.requires_app_host = false
  42. test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Unit/**/*.{h,m}'
  43. test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
  44. test_spec.pod_target_xcconfig = header_search_paths
  45. test_spec.dependency 'GCDWebServer'
  46. end
  47. s.test_spec 'Tests-Integration' do |test_spec|
  48. test_spec.requires_app_host = false
  49. test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Integration/**/*.{h,m}'
  50. test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
  51. test_spec.pod_target_xcconfig = header_search_paths
  52. end
  53. end