FirebaseCoreDiagnostics.podspec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCoreDiagnostics'
  3. s.version = '7.3.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 => 'CocoaPods-' + s.version.to_s
  16. }
  17. s.social_media_url = 'https://twitter.com/Firebase'
  18. s.ios.deployment_target = '9.0'
  19. s.osx.deployment_target = '10.12'
  20. s.tvos.deployment_target = '10.0'
  21. s.watchos.deployment_target = '6.0'
  22. s.cocoapods_version = '>= 1.4.0'
  23. s.prefix_header_file = false
  24. header_search_paths = {
  25. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  26. }
  27. s.pod_target_xcconfig = {
  28. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  29. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  30. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES',
  31. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  32. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  33. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  34. # anyways.)
  35. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  36. }.merge(header_search_paths)
  37. s.source_files = [
  38. 'Firebase/CoreDiagnostics/FIRCDLibrary/**/*.[cmh]',
  39. 'GoogleDataTransport/GDTCORLibrary/Internal/*.h',
  40. 'Interop/CoreDiagnostics/Public/*.h',
  41. ]
  42. s.public_header_files = 'Firebase/CoreDiagnostics/FIRCDLibrary/Public/*.h'
  43. s.framework = 'Foundation'
  44. s.dependency 'GoogleDataTransport', '~> 8.0'
  45. s.dependency 'GoogleUtilities/Environment', '~> 7.0'
  46. s.dependency 'GoogleUtilities/Logger', '~> 7.0'
  47. s.dependency 'nanopb', '~> 2.30907.0'
  48. s.test_spec 'unit' do |unit_tests|
  49. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  50. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  51. unit_tests.dependency 'GoogleUtilities/UserDefaults', '~> 7.0'
  52. unit_tests.dependency 'OCMock'
  53. unit_tests.source_files = [
  54. 'Example/CoreDiagnostics/Tests/**/*.[mh]',
  55. ]
  56. unit_tests.requires_app_host = false
  57. end
  58. end