FirebaseCore.podspec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCore'
  3. s.version = '6.6.4'
  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.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 = 'FirebaseCore/Sources/**/*.[mh]'
  24. s.public_header_files = 'FirebaseCore/Sources/Public/*.h', 'FirebaseCore/Sources/Private/*.h'
  25. s.private_header_files = 'FirebaseCore/Sources/Private/*.h'
  26. s.framework = 'Foundation'
  27. s.ios.framework = 'UIKit'
  28. s.osx.framework = 'AppKit'
  29. s.tvos.framework = 'UIKit'
  30. s.dependency 'GoogleUtilities/Environment', '~> 6.5'
  31. s.dependency 'GoogleUtilities/Logger', '~> 6.5'
  32. s.dependency 'FirebaseCoreDiagnosticsInterop', '~> 1.2'
  33. s.dependency 'FirebaseCoreDiagnostics', '~> 1.2'
  34. s.pod_target_xcconfig = {
  35. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  36. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  37. 'FIRCore_VERSION=' + s.version.to_s + ' Firebase_VERSION=6.19.0',
  38. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  39. 'OTHER_CFLAGS' => '-fno-autolink'
  40. }
  41. s.test_spec 'unit' do |unit_tests|
  42. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  43. unit_tests.source_files = 'FirebaseCore/Tests/Unit/**/*.[mh]'
  44. unit_tests.requires_app_host = true
  45. unit_tests.dependency 'OCMock'
  46. unit_tests.resources = 'FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist'
  47. end
  48. s.test_spec 'swift-unit' do |swift_unit_tests|
  49. swift_unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  50. swift_unit_tests.source_files = 'FirebaseCore/Tests/Unit/Swift/**/*.swift',
  51. 'FirebaseCore/Tests/Unit/Swift/**/*.h'
  52. swift_unit_tests.pod_target_xcconfig = {
  53. 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCore/Tests/Unit/Swift/FirebaseCore-unit-Bridging-Header.h'
  54. }
  55. end
  56. end