FirebaseCoreDiagnostics.podspec 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCoreDiagnostics'
  3. s.version = '1.5.0'
  4. s.summary = 'Firebase Core Diagnostics'
  5. s.description = <<-DESC
  6. Firebase Core Diagnostics collects diagnostic data to help improve and provide Firebase services.
  7. This SDK is integrated using a 'soft-link' mechanism and the bits be omitted by using a
  8. non-Cocoapod integration. This library also respects the Firebase global data collection flag.
  9. DESC
  10. s.homepage = 'https://firebase.google.com'
  11. s.license = { :type => 'Apache', :file => 'LICENSE' }
  12. s.authors = 'Google, Inc.'
  13. s.source = {
  14. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  15. :tag => 'CoreDiagnostics-' + s.version.to_s
  16. }
  17. s.social_media_url = 'https://twitter.com/Firebase'
  18. s.ios.deployment_target = '8.0'
  19. s.osx.deployment_target = '10.11'
  20. s.tvos.deployment_target = '10.0'
  21. s.watchos.deployment_target = '6.0'
  22. s.cocoapods_version = '>= 1.4.0'
  23. s.static_framework = true
  24. s.prefix_header_file = false
  25. header_search_paths = {
  26. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  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. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  33. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  34. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  35. # anyways.)
  36. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  37. }.merge(header_search_paths)
  38. s.source_files = [
  39. 'Firebase/CoreDiagnostics/FIRCDLibrary/**/*.[cmh]',
  40. 'GoogleDataTransport/GDTCORLibrary/Internal/*.h',
  41. 'GoogleUtilities/Environment/Private/*.h',
  42. 'GoogleUtilities/Logger/Private/*.h',
  43. 'Interop/CoreDiagnostics/Public/*.h',
  44. ]
  45. s.framework = 'Foundation'
  46. s.dependency 'GoogleDataTransport', '~> 7.2'
  47. s.dependency 'GoogleUtilities/Environment', '~> 6.7'
  48. s.dependency 'GoogleUtilities/Logger', '~> 6.7'
  49. s.dependency 'nanopb', '~> 1.30905.0'
  50. s.test_spec 'unit' do |unit_tests|
  51. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  52. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  53. unit_tests.dependency 'GoogleUtilities/UserDefaults', '~> 6.7'
  54. unit_tests.dependency 'OCMock'
  55. unit_tests.source_files = [
  56. 'Example/CoreDiagnostics/Tests/**/*.[mh]',
  57. 'GoogleUtilities/UserDefaults/Private/*.h',
  58. ]
  59. unit_tests.requires_app_host = false
  60. end
  61. end