FirebaseCore.podspec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCore'
  3. s.version = '6.3.2'
  4. s.summary = 'Firebase Core for iOS (plus community support for macOS and tvOS)'
  5. s.description = <<-DESC
  6. Firebase Core includes FIRApp and FIROptions which provide central configuration for other Firebase services.
  7. DESC
  8. s.homepage = 'https://firebase.google.com'
  9. s.license = { :type => 'Apache', :file => 'LICENSE' }
  10. s.authors = 'Google, Inc.'
  11. s.source = {
  12. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  13. :tag => 'Core-' + s.version.to_s
  14. }
  15. s.social_media_url = 'https://twitter.com/Firebase'
  16. s.ios.deployment_target = '8.0'
  17. s.osx.deployment_target = '10.11'
  18. s.tvos.deployment_target = '10.0'
  19. s.cocoapods_version = '>= 1.4.0'
  20. s.static_framework = true
  21. s.prefix_header_file = false
  22. s.source_files = 'Firebase/Core/**/*.[cmh]'
  23. s.public_header_files = 'Firebase/Core/Public/*.h', 'Firebase/Core/Private/*.h'
  24. s.private_header_files = 'Firebase/Core/Private/*.h'
  25. s.framework = 'Foundation'
  26. s.ios.framework = 'UIKit'
  27. s.osx.framework = 'AppKit'
  28. s.tvos.framework = 'UIKit'
  29. s.dependency 'GoogleUtilities/Environment', '~> 6.2'
  30. s.dependency 'GoogleUtilities/Logger', '~> 6.2'
  31. s.dependency 'GoogleDataTransportCCTSupport', '~> 1.0'
  32. s.dependency 'nanopb', '~> 0.3.901'
  33. s.pod_target_xcconfig = {
  34. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  35. 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
  36. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  37. 'FIRCore_VERSION=' + s.version.to_s + ' Firebase_VERSION=6.11.0 ' +
  38. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  39. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  40. # anyways.)
  41. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  42. 'OTHER_CFLAGS' => '-fno-autolink',
  43. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  44. }
  45. s.test_spec 'unit' do |unit_tests|
  46. unit_tests.source_files = 'Example/Core/Tests/**/*.[mh]'
  47. unit_tests.dependency 'GoogleUtilities/UserDefaults', '~> 6.2'
  48. unit_tests.requires_app_host = true
  49. unit_tests.dependency 'OCMock'
  50. unit_tests.resources = 'Example/Core/App/GoogleService-Info.plist'
  51. end
  52. end