FirebaseCoreDiagnostics.podspec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCoreDiagnostics'
  3. s.version = '1.4.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. '"${PODS_TARGET_SRCROOT}/Firebase/CoreDiagnostics/"'
  28. }
  29. s.pod_target_xcconfig = {
  30. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  31. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  32. 'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES',
  33. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  34. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  35. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  36. # anyways.)
  37. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  38. }.merge(header_search_paths)
  39. s.source_files = [
  40. 'Firebase/CoreDiagnostics/FIRCDLibrary/**/*.[cmh]',
  41. 'Interop/CoreDiagnostics/Public/*.h',
  42. ]
  43. s.framework = 'Foundation'
  44. s.dependency 'GoogleDataTransportCCTSupport', '~> 3.1'
  45. s.dependency 'GoogleUtilities/Environment', '~> 6.5'
  46. s.dependency 'GoogleUtilities/Logger', '~> 6.5'
  47. s.dependency 'nanopb', '~> 1.30905.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', '~> 6.2'
  52. unit_tests.dependency 'OCMock'
  53. unit_tests.source_files = 'Example/CoreDiagnostics/Tests/**/*.[mh]'
  54. unit_tests.requires_app_host = false
  55. end
  56. end