FirebaseCoreDiagnostics.podspec 2.7 KB

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