GoogleDataTransportCCTSupport.podspec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleDataTransportCCTSupport'
  3. s.version = '1.3.1'
  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. s.watchos.deployment_target = '6.0'
  19. # To develop or run the tests, >= 1.8.0.beta.1 must be installed.
  20. s.cocoapods_version = '>= 1.4.0'
  21. s.static_framework = true
  22. s.prefix_header_file = false
  23. s.source_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/**/*'
  24. s.private_header_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/Private/*.h'
  25. s.libraries = ['z']
  26. s.dependency 'GoogleDataTransport', '~> 3.3'
  27. s.dependency 'nanopb', '~> 0.3.901'
  28. header_search_paths = {
  29. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/GoogleDataTransportCCTSupport/"'
  30. }
  31. s.pod_target_xcconfig = {
  32. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  33. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  34. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES',
  35. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  36. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  37. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  38. # anyways.)
  39. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 GDTCCTSUPPORT_VERSION=' + s.version.to_s,
  40. }.merge(header_search_paths)
  41. # Test app specs
  42. if ENV['GDT_DEV'] && ENV['GDT_DEV'] == '1' then
  43. s.app_spec 'TestApp' do |app_spec|
  44. app_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  45. app_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTestApp/**/*.swift'
  46. app_spec.ios.resources = ['GoogleDataTransportCCTSupport/GDTCCTTestApp/ios/*.storyboard']
  47. app_spec.macos.resources = ['GoogleDataTransportCCTSupport/GDTCCTTestApp/macos/*.storyboard']
  48. app_spec.tvos.resources = ['GoogleDataTransportCCTSupport/GDTCCTTestApp/tvos/*.storyboard']
  49. app_spec.dependency 'SwiftProtobuf'
  50. app_spec.info_plist = {
  51. 'UILaunchStoryboardName' => 'Main',
  52. 'UIMainStoryboardFile' => 'Main',
  53. 'NSMainStoryboardFile' => 'Main'
  54. }
  55. end
  56. end
  57. # Test specs
  58. s.test_spec 'Tests-Unit' do |test_spec|
  59. test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  60. test_spec.requires_app_host = false
  61. test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Unit/**/*.{h,m}'
  62. test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
  63. test_spec.pod_target_xcconfig = header_search_paths
  64. test_spec.dependency 'GCDWebServer'
  65. end
  66. s.test_spec 'Tests-Integration' do |test_spec|
  67. test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  68. test_spec.requires_app_host = false
  69. test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Integration/**/*.{h,m}'
  70. test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
  71. test_spec.pod_target_xcconfig = header_search_paths
  72. end
  73. # Monkey test specs, only enabled for development.
  74. if ENV['GDT_DEV'] && ENV['GDT_DEV'] == '1' then
  75. s.test_spec 'Tests-Monkey' do |test_spec|
  76. test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  77. test_spec.requires_app_host = true
  78. test_spec.app_host_name = 'GoogleDataTransportCCTSupport/TestApp'
  79. test_spec.dependency 'GoogleDataTransportCCTSupport/TestApp'
  80. test_spec.source_files = ['GoogleDataTransportCCTSupport/GDTCCTTests/Monkey/**/*.{swift}']
  81. test_spec.info_plist = {
  82. 'GDT_MONKEYTEST' => '1'
  83. }
  84. end
  85. end
  86. end