FirebaseCoreDiagnostics.podspec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCoreDiagnostics'
  3. s.version = '0.1.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.cocoapods_version = '>= 1.4.0'
  22. s.static_framework = true
  23. s.prefix_header_file = false
  24. header_search_paths = {
  25. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/Firebase/CoreDiagnostics/"'
  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 = 'Firebase/CoreDiagnostics/FIRCDLibrary/**/*.[cmh]'
  38. s.framework = 'Foundation'
  39. s.dependency 'FirebaseCoreDiagnosticsInterop', '~> 0.1'
  40. s.dependency 'GoogleDataTransportCCTSupport', '~> 0.2'
  41. s.dependency 'GoogleUtilities/Environment', '~> 6.2'
  42. s.dependency 'GoogleUtilities/Logger', '~> 6.2'
  43. s.test_spec 'unit' do |unit_tests|
  44. unit_tests.dependency 'GoogleUtilities/UserDefaults', '~> 6.2'
  45. unit_tests.dependency 'OCMock'
  46. unit_tests.source_files = 'Example/CoreDiagnostics/Tests/**/*.[mh]'
  47. unit_tests.requires_app_host = false
  48. end
  49. end