FirebaseCombineSwift.podspec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCombineSwift'
  3. s.version = '11.10.0'
  4. s.summary = 'Swift extensions with Combine support for Firebase'
  5. s.description = <<-DESC
  6. Firebase Combine is only supported with Swift Package Manager. This podspec is
  7. for internal testing only. It should not be published.
  8. DESC
  9. s.homepage = 'https://firebase.google.com'
  10. s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
  11. s.authors = 'Google, Inc.'
  12. s.source = {
  13. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  14. :tag => 'CocoaPods-' + s.version.to_s
  15. }
  16. s.swift_version = '5.9'
  17. ios_deployment_target = '13.0'
  18. osx_deployment_target = '10.15'
  19. tvos_deployment_target = '13.0'
  20. watchos_deployment_target = '7.0'
  21. s.ios.deployment_target = ios_deployment_target
  22. s.osx.deployment_target = osx_deployment_target
  23. s.tvos.deployment_target = tvos_deployment_target
  24. s.watchos.deployment_target = watchos_deployment_target
  25. s.cocoapods_version = '>= 1.12.0'
  26. s.prefix_header_file = false
  27. source = 'FirebaseCombineSwift/Sources/'
  28. s.exclude_files = [
  29. source + 'Core/**/*.swift',
  30. ]
  31. s.source_files = [
  32. source + '**/*.swift',
  33. source + '**/*.m',
  34. ]
  35. s.public_header_files = [
  36. source + '**/*.h',
  37. ]
  38. s.framework = 'Foundation'
  39. s.ios.framework = 'UIKit'
  40. s.osx.framework = 'AppKit'
  41. s.tvos.framework = 'UIKit'
  42. s.dependency 'FirebaseCore', '~> 11.10.0'
  43. s.dependency 'FirebaseAuth', '~> 11.0'
  44. s.dependency 'FirebaseFunctions', '~> 11.0'
  45. s.dependency 'FirebaseFirestore', '~> 11.0'
  46. s.dependency 'FirebaseStorage', '~> 11.0'
  47. s.pod_target_xcconfig = {
  48. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  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 => osx_deployment_target,
  55. :tvos => tvos_deployment_target
  56. }
  57. #TODO: Auth unit tests need to be ported from depending on ObjC internal implementation.
  58. unit_tests.source_files = [
  59. 'FirebaseCombineSwift/Tests/Unit/Firestore/*.swift',
  60. 'FirebaseCombineSwift/Tests/Unit/Storage/*.swift',
  61. 'FirebaseCombineSwift/Tests/Unit/**/*.h',
  62. 'FirebaseCombineSwift/Tests/Unit/Credentials.swift',
  63. 'FirebaseCombineSwift/Tests/Unit/FirebaseApp+Tests.swift',
  64. 'SharedTestUtilities/FIROptionsMock.[mh]',
  65. 'SharedTestUtilities/FIRComponentTestUtilities.[mh]',
  66. ]
  67. unit_tests.exclude_files = 'FirebaseCombineSwift/Tests/Unit/**/*Template.swift'
  68. unit_tests.requires_app_host = true
  69. unit_tests.pod_target_xcconfig = {
  70. 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCombineSwift/Tests/Unit/FirebaseCombine-unit-Bridging-Header.h'
  71. }
  72. unit_tests.dependency 'OCMock'
  73. unit_tests.dependency 'FirebaseAuthTestingSupport'
  74. unit_tests.dependency 'FirebaseFirestoreTestingSupport'
  75. end
  76. s.test_spec 'integration' do |int_tests|
  77. int_tests.scheme = { :code_coverage => true }
  78. int_tests.platforms = {
  79. :ios => ios_deployment_target,
  80. :osx => osx_deployment_target,
  81. :tvos => tvos_deployment_target
  82. }
  83. int_tests.source_files = [
  84. 'FirebaseCombineSwift/Tests/Integration/Storage/StorageIntegration.swift',
  85. 'FirebaseStorage/Tests/Integration/Credentials.swift'
  86. ]
  87. int_tests.requires_app_host = true
  88. # Resources are shared with FirebaseStorage's integration tests.
  89. int_tests.resources = 'FirebaseStorage/Tests/Integration/Resources/1mb.dat',
  90. 'FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist',
  91. 'FirebaseStorage/Tests/Integration/Resources/HomeImprovement.numbers'
  92. int_tests.dependency 'FirebaseAuth', '~> 11.0'
  93. end
  94. end