FirebaseCore.podspec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCore'
  3. s.version = '6.8.0'
  4. s.summary = 'Firebase Core'
  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.watchos.deployment_target = '6.0'
  20. s.cocoapods_version = '>= 1.4.0'
  21. s.static_framework = true
  22. s.prefix_header_file = false
  23. s.source_files = [
  24. 'FirebaseCore/Sources/**/*.[mh]',
  25. 'GoogleUtilities/Environment/Private/*.h',
  26. 'GoogleUtilities/Logger/Private/*.h',
  27. 'Interop/CoreDiagnostics/Public/*.h',
  28. ]
  29. s.public_header_files = 'FirebaseCore/Sources/Public/*.h', 'FirebaseCore/Sources/Private/*.h'
  30. s.private_header_files = 'FirebaseCore/Sources/Private/*.h'
  31. s.framework = 'Foundation'
  32. s.ios.framework = 'UIKit'
  33. s.osx.framework = 'AppKit'
  34. s.tvos.framework = 'UIKit'
  35. s.dependency 'GoogleUtilities/Environment', '~> 6.7'
  36. s.dependency 'GoogleUtilities/Logger', '~> 6.7'
  37. s.dependency 'FirebaseCoreDiagnostics', '~> 1.3'
  38. s.pod_target_xcconfig = {
  39. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  40. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  41. 'FIRCore_VERSION=' + s.version.to_s + ' Firebase_VERSION=6.27.0',
  42. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  43. 'OTHER_CFLAGS' => '-fno-autolink'
  44. }
  45. s.test_spec 'unit' do |unit_tests|
  46. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  47. unit_tests.source_files = 'FirebaseCore/Tests/Unit/**/*.[mh]'
  48. unit_tests.requires_app_host = true
  49. unit_tests.dependency 'OCMock'
  50. unit_tests.resources = 'FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist'
  51. end
  52. s.test_spec 'swift-unit' do |swift_unit_tests|
  53. swift_unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  54. swift_unit_tests.source_files = 'FirebaseCore/Tests/Unit/Swift/**/*.swift',
  55. 'FirebaseCore/Tests/Unit/Swift/**/*.h',
  56. 'FirebaseCore/Tests/Unit/Swift/SwiftTestingUtilities/*'
  57. swift_unit_tests.resources = 'FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist'
  58. swift_unit_tests.pod_target_xcconfig = {
  59. 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCore/Tests/Unit/Swift/FirebaseCore-unit-Bridging-Header.h'
  60. }
  61. end
  62. end