GoogleDataTransport.podspec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleDataTransport'
  3. s.version = '1.2.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.6.0 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/GDTLibrary/**/*'
  23. s.public_header_files = 'GoogleDataTransport/GDTLibrary/Public/*.h'
  24. s.private_header_files = 'GoogleDataTransport/GDTLibrary/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/GDTTests/Common/**/*.{h,m}']
  34. # Unit test specs
  35. s.test_spec 'Tests-Unit' do |test_spec|
  36. test_spec.requires_app_host = false
  37. test_spec.source_files = ['GoogleDataTransport/GDTTests/Unit/**/*.{h,m}'] + common_test_sources
  38. test_spec.pod_target_xcconfig = header_search_paths
  39. end
  40. s.test_spec 'Tests-Lifecycle' do |test_spec|
  41. test_spec.requires_app_host = false
  42. test_spec.source_files = ['GoogleDataTransport/GDTTests/Lifecycle/**/*.{h,m}'] + common_test_sources
  43. test_spec.pod_target_xcconfig = header_search_paths
  44. end
  45. # Integration test specs
  46. s.test_spec 'Tests-Integration' do |test_spec|
  47. test_spec.requires_app_host = false
  48. test_spec.source_files = ['GoogleDataTransport/GDTTests/Integration/**/*.{h,m}'] + common_test_sources
  49. test_spec.pod_target_xcconfig = header_search_paths
  50. test_spec.dependency 'GCDWebServer'
  51. end
  52. end