GoogleDataTransportCCTSupport.podspec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleDataTransportCCTSupport'
  3. s.version = '0.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 => 'GoogleDataTransportCCTSupport-' + s.version.to_s
  14. }
  15. s.ios.deployment_target = '8.0'
  16. # To develop or run the tests, >= 1.6.0 must be installed.
  17. s.cocoapods_version = '>= 1.4.0'
  18. s.static_framework = true
  19. s.prefix_header_file = false
  20. s.source_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/**/*'
  21. s.private_header_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/Private/*.h'
  22. s.dependency 'GoogleDataTransport'
  23. s.dependency 'nanopb'
  24. header_search_paths = {
  25. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/GoogleDataTransportCCTSupport/"'
  26. }
  27. s.pod_target_xcconfig = {
  28. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  29. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  30. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES',
  31. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  32. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  33. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  34. # anyways.)
  35. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  36. }.merge(header_search_paths)
  37. # Test specs
  38. s.test_spec 'Tests-Unit' do |test_spec|
  39. test_spec.requires_app_host = false
  40. test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Unit/**/*.{h,m}'
  41. test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
  42. test_spec.pod_target_xcconfig = header_search_paths
  43. test_spec.dependency 'GCDWebServer'
  44. end
  45. s.test_spec 'Tests-Integration' do |test_spec|
  46. test_spec.requires_app_host = false
  47. test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Integration/**/*.{h,m}'
  48. test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
  49. test_spec.pod_target_xcconfig = header_search_paths
  50. end
  51. end