GoogleDataTransport.podspec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleDataTransport'
  3. s.version = '5.0.0'
  4. s.summary = 'Google iOS SDK data transport.'
  5. s.description = <<-DESC
  6. Shared library for iOS SDK data transport needs.
  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 => 'DataTransport-' + 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 = 'GoogleDataTransport/GDTCORLibrary/**/*'
  24. s.public_header_files = 'GoogleDataTransport/GDTCORLibrary/Public/*.h'
  25. s.private_header_files = 'GoogleDataTransport/GDTCORLibrary/Private/*.h'
  26. s.ios.frameworks = 'SystemConfiguration', 'CoreTelephony'
  27. s.osx.frameworks = 'SystemConfiguration', 'CoreTelephony'
  28. s.tvos.frameworks = 'SystemConfiguration'
  29. header_search_paths = {
  30. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/GoogleDataTransport/"'
  31. }
  32. s.pod_target_xcconfig = {
  33. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  34. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  35. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES',
  36. 'GCC_PREPROCESSOR_DEFINITIONS' => 'GDTCOR_VERSION=' + s.version.to_s
  37. }.merge(header_search_paths)
  38. common_test_sources = ['GoogleDataTransport/GDTCORTests/Common/**/*.{h,m}']
  39. # Test app specs
  40. if ENV['GDT_DEV'] && ENV['GDT_DEV'] == '1' then
  41. s.app_spec 'TestApp' do |app_spec|
  42. app_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  43. app_spec.source_files = 'GoogleDataTransport/GDTTestApp/*.swift'
  44. app_spec.ios.resources = ['GoogleDataTransport/GDTTestApp/ios/*.storyboard']
  45. app_spec.macos.resources = ['GoogleDataTransport/GDTTestApp/macos/*.storyboard']
  46. app_spec.tvos.resources = ['GoogleDataTransport/GDTTestApp/tvos/*.storyboard']
  47. app_spec.info_plist = {
  48. 'UILaunchStoryboardName' => 'Main',
  49. 'UIMainStoryboardFile' => 'Main',
  50. 'NSMainStoryboardFile' => 'Main'
  51. }
  52. end
  53. end
  54. # Unit test specs
  55. s.test_spec 'Tests-Unit' do |test_spec|
  56. test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  57. test_spec.requires_app_host = false
  58. test_spec.source_files = ['GoogleDataTransport/GDTCORTests/Unit/**/*.{h,m}'] + common_test_sources
  59. test_spec.pod_target_xcconfig = header_search_paths
  60. end
  61. s.test_spec 'Tests-Lifecycle' do |test_spec|
  62. test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  63. test_spec.requires_app_host = false
  64. test_spec.source_files = ['GoogleDataTransport/GDTCORTests/Lifecycle/**/*.{h,m}'] + common_test_sources
  65. test_spec.pod_target_xcconfig = header_search_paths
  66. end
  67. # Integration test specs
  68. s.test_spec 'Tests-Integration' do |test_spec|
  69. test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  70. test_spec.requires_app_host = false
  71. test_spec.source_files = ['GoogleDataTransport/GDTCORTests/Integration/**/*.{h,m}'] + common_test_sources
  72. test_spec.pod_target_xcconfig = header_search_paths
  73. test_spec.dependency 'GCDWebServer'
  74. end
  75. # Monkey test specs TODO(mikehaney24): Uncomment when travis is running >= cocoapods-1.8.0
  76. if ENV['GDT_DEV'] && ENV['GDT_DEV'] == '1' then
  77. s.test_spec 'Tests-Monkey' do |test_spec|
  78. test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  79. test_spec.requires_app_host = true
  80. test_spec.app_host_name = 'GoogleDataTransport/TestApp'
  81. test_spec.dependency 'GoogleDataTransport/TestApp'
  82. test_spec.source_files = ['GoogleDataTransport/GDTCORTests/Monkey/**/*.{swift}']
  83. test_spec.info_plist = {
  84. 'GDT_MONKEYTEST' => '1'
  85. }
  86. end
  87. end
  88. end