FirebaseCore.podspec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCore'
  3. s.version = '11.13.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-2.0', :file => 'LICENSE' }
  10. s.authors = 'Google, Inc.'
  11. s.source = {
  12. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  13. :tag => 'CocoaPods-' + s.version.to_s
  14. }
  15. s.social_media_url = 'https://twitter.com/Firebase'
  16. ios_deployment_target = '12.0'
  17. osx_deployment_target = '10.15'
  18. tvos_deployment_target = '13.0'
  19. watchos_deployment_target = '7.0'
  20. s.ios.deployment_target = ios_deployment_target
  21. s.osx.deployment_target = osx_deployment_target
  22. s.tvos.deployment_target = tvos_deployment_target
  23. s.watchos.deployment_target = watchos_deployment_target
  24. s.cocoapods_version = '>= 1.12.0'
  25. s.prefix_header_file = false
  26. s.source_files = [
  27. 'FirebaseCore/Sources/**/*.[mh]',
  28. 'FirebaseCore/Extension/*.h'
  29. ]
  30. s.resource_bundles = {
  31. "#{s.module_name}_Privacy" => 'FirebaseCore/Sources/Resources/PrivacyInfo.xcprivacy'
  32. }
  33. s.swift_version = '6.0'
  34. s.public_header_files = 'FirebaseCore/Sources/Public/FirebaseCore/*.h'
  35. s.framework = 'Foundation'
  36. s.ios.framework = 'UIKit'
  37. s.osx.framework = 'AppKit'
  38. s.tvos.framework = 'UIKit'
  39. s.watchos.framework = 'WatchKit'
  40. # Remember to also update version in `cmake/external/GoogleUtilities.cmake`
  41. s.dependency 'GoogleUtilities/Environment', '~> 8.0'
  42. s.dependency 'GoogleUtilities/Logger', '~> 8.0'
  43. s.dependency 'FirebaseCoreInternal', '~> 11.13.0'
  44. s.pod_target_xcconfig = {
  45. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  46. 'GCC_PREPROCESSOR_DEFINITIONS' => 'Firebase_VERSION=' + s.version.to_s,
  47. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  48. 'OTHER_CFLAGS' => '-fno-autolink'
  49. }
  50. s.test_spec 'unit' do |unit_tests|
  51. unit_tests.scheme = { :code_coverage => true }
  52. unit_tests.platforms = {
  53. :ios => ios_deployment_target,
  54. :osx => '10.15',
  55. :tvos => tvos_deployment_target
  56. }
  57. unit_tests.source_files = [
  58. 'FirebaseCore/Tests/Unit/**/*.[mh]',
  59. 'SharedTestUtilities/FIROptionsMock.[mh]',
  60. ]
  61. unit_tests.requires_app_host = true
  62. unit_tests.dependency 'OCMock'
  63. unit_tests.resources = 'FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist'
  64. end
  65. s.test_spec 'swift-unit' do |swift_unit_tests|
  66. swift_unit_tests.platforms = {
  67. :ios => ios_deployment_target,
  68. :osx => osx_deployment_target,
  69. :tvos => tvos_deployment_target
  70. }
  71. swift_unit_tests.source_files = [
  72. 'FirebaseCore/Tests/SwiftUnit/**/*.swift',
  73. 'FirebaseCore/Tests/SwiftUnit/**/*.h',
  74. 'FirebaseCore/Tests/SwiftUnit/SwiftTestingUtilities/*',
  75. 'SharedTestUtilities/ExceptionCatcher.[mh]',
  76. 'SharedTestUtilities/FIROptionsMock.[mh]',
  77. ]
  78. swift_unit_tests.pod_target_xcconfig = {
  79. 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCore/Tests/SwiftUnit/FirebaseCore-unit-Bridging-Header.h'
  80. }
  81. swift_unit_tests.requires_app_host = true
  82. swift_unit_tests.dependency 'OCMock'
  83. swift_unit_tests.resources = 'FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist'
  84. end
  85. end