GoogleDataTransport.podspec 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleDataTransport'
  3. s.version = '2.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. # 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 = 'GoogleDataTransport/GDTCORLibrary/**/*'
  23. s.public_header_files = 'GoogleDataTransport/GDTCORLibrary/Public/*.h'
  24. s.private_header_files = 'GoogleDataTransport/GDTCORLibrary/Private/*.h'
  25. header_search_paths = {
  26. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/GoogleDataTransport/"'
  27. }
  28. s.pod_target_xcconfig = {
  29. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  30. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  31. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES'
  32. }.merge(header_search_paths)
  33. common_test_sources = ['GoogleDataTransport/GDTCORTests/Common/**/*.{h,m}']
  34. # Test app specs
  35. #s.app_spec 'TestApp' do |app_spec|
  36. # app_spec.source_files = 'GoogleDataTransport/GDTTestApp/*.swift'
  37. # app_spec.ios.resources = ['GoogleDataTransport/GDTTestApp/ios/*.storyboard']
  38. # app_spec.macos.resources = ['GoogleDataTransport/GDTTestApp/macos/*.storyboard']
  39. # app_spec.tvos.resources = ['GoogleDataTransport/GDTTestApp/tvos/*.storyboard']
  40. # app_spec.info_plist = {
  41. # 'UILaunchStoryboardName' => 'Main',
  42. # 'UIMainStoryboardFile' => 'Main',
  43. # 'NSMainStoryboardFile' => 'Main'
  44. # }
  45. #end
  46. # Unit test specs
  47. s.test_spec 'Tests-Unit' do |test_spec|
  48. test_spec.requires_app_host = false
  49. test_spec.source_files = ['GoogleDataTransport/GDTCORTests/Unit/**/*.{h,m}'] + common_test_sources
  50. test_spec.pod_target_xcconfig = header_search_paths
  51. end
  52. s.test_spec 'Tests-Lifecycle' do |test_spec|
  53. test_spec.requires_app_host = false
  54. test_spec.source_files = ['GoogleDataTransport/GDTCORTests/Lifecycle/**/*.{h,m}'] + common_test_sources
  55. test_spec.pod_target_xcconfig = header_search_paths
  56. end
  57. # Integration test specs
  58. s.test_spec 'Tests-Integration' do |test_spec|
  59. test_spec.requires_app_host = false
  60. test_spec.source_files = ['GoogleDataTransport/GDTCORTests/Integration/**/*.{h,m}'] + common_test_sources
  61. test_spec.pod_target_xcconfig = header_search_paths
  62. test_spec.dependency 'GCDWebServer'
  63. end
  64. # Monkey test specs TODO(mikehaney24): Uncomment when travis is running >= cocoapods-1.8.0
  65. # s.test_spec 'Tests-Monkey' do |test_spec|
  66. # test_spec.requires_app_host = true
  67. # test_spec.app_host_name = 'GoogleDataTransport/TestApp'
  68. # test_spec.dependency 'GoogleDataTransport/TestApp'
  69. # test_spec.source_files = ['GoogleDataTransport/GDTTests/Monkey/**/*.{swift}']
  70. # test_spec.info_plist = {
  71. # 'GDT_MONKEYTEST' => '1'
  72. # }
  73. # end
  74. end