GoogleDataTransport.podspec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleDataTransport'
  3. s.version = '0.1.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 => 'GoogleDataTransport-' + 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 = 'GoogleDataTransport/GDTLibrary/**/*'
  21. s.public_header_files = 'GoogleDataTransport/GDTLibrary/Public/*.h'
  22. s.private_header_files = 'GoogleDataTransport/GDTLibrary/Private/*.h'
  23. header_search_paths = {
  24. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/GoogleDataTransport/"'
  25. }
  26. s.pod_target_xcconfig = {
  27. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  28. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  29. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES'
  30. }.merge(header_search_paths)
  31. common_test_sources = ['GoogleDataTransport/GDTTests/Common/**/*.{h,m}']
  32. # Unit test specs
  33. s.test_spec 'Tests-Unit' do |test_spec|
  34. test_spec.requires_app_host = false
  35. test_spec.source_files = ['GoogleDataTransport/GDTTests/Unit/**/*.{h,m}'] + common_test_sources
  36. test_spec.pod_target_xcconfig = header_search_paths
  37. end
  38. s.test_spec 'Tests-Lifecycle' do |test_spec|
  39. test_spec.requires_app_host = false
  40. test_spec.source_files = ['GoogleDataTransport/GDTTests/Lifecycle/**/*.{h,m}'] + common_test_sources
  41. test_spec.pod_target_xcconfig = header_search_paths
  42. end
  43. # Integration test specs
  44. s.test_spec 'Tests-Integration' do |test_spec|
  45. test_spec.requires_app_host = false
  46. test_spec.source_files = ['GoogleDataTransport/GDTTests/Integration/**/*.{h,m}'] + common_test_sources
  47. test_spec.pod_target_xcconfig = header_search_paths
  48. test_spec.dependency 'GCDWebServer'
  49. end
  50. end