FirebaseCombineSwift.podspec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCombineSwift'
  3. s.version = '12.6.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.social_media_url = 'https://twitter.com/Firebase'
  17. s.swift_version = '5.9'
  18. ios_deployment_target = '15.0'
  19. osx_deployment_target = '10.15'
  20. tvos_deployment_target = '15.0'
  21. watchos_deployment_target = '7.0'
  22. s.ios.deployment_target = ios_deployment_target
  23. s.osx.deployment_target = osx_deployment_target
  24. s.tvos.deployment_target = tvos_deployment_target
  25. s.watchos.deployment_target = watchos_deployment_target
  26. s.cocoapods_version = '>= 1.12.0'
  27. s.prefix_header_file = false
  28. source = 'FirebaseCombineSwift/Sources/'
  29. s.exclude_files = [
  30. source + 'Core/**/*.swift',
  31. ]
  32. s.source_files = [
  33. source + '**/*.swift',
  34. source + '**/*.m',
  35. ]
  36. s.public_header_files = [
  37. source + '**/*.h',
  38. ]
  39. s.framework = 'Foundation'
  40. s.ios.framework = 'UIKit'
  41. s.osx.framework = 'AppKit'
  42. s.tvos.framework = 'UIKit'
  43. s.dependency 'FirebaseCore', '~> 12.6.0'
  44. s.dependency 'FirebaseAuth', '~> 12.6.0'
  45. s.dependency 'FirebaseFunctions', '~> 12.6.0'
  46. s.dependency 'FirebaseFirestore', '~> 12.6.0'
  47. s.dependency 'FirebaseStorage', '~> 12.6.0'
  48. s.pod_target_xcconfig = {
  49. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  50. }
  51. s.test_spec 'unit' do |unit_tests|
  52. unit_tests.scheme = { :code_coverage => true }
  53. unit_tests.platforms = {
  54. :ios => ios_deployment_target,
  55. :osx => osx_deployment_target,
  56. :tvos => tvos_deployment_target
  57. }
  58. #TODO: Auth unit tests need to be ported from depending on ObjC internal implementation.
  59. unit_tests.source_files = [
  60. 'FirebaseCombineSwift/Tests/Unit/Firestore/*.swift',
  61. 'FirebaseCombineSwift/Tests/Unit/Storage/*.swift',
  62. 'FirebaseCombineSwift/Tests/Unit/**/*.h',
  63. 'FirebaseCombineSwift/Tests/Unit/Credentials.swift',
  64. 'FirebaseCombineSwift/Tests/Unit/FirebaseApp+Tests.swift',
  65. 'SharedTestUtilities/FIROptionsMock.[mh]',
  66. 'SharedTestUtilities/FIRComponentTestUtilities.[mh]',
  67. ]
  68. unit_tests.exclude_files = 'FirebaseCombineSwift/Tests/Unit/**/*Template.swift'
  69. unit_tests.requires_app_host = true
  70. unit_tests.pod_target_xcconfig = {
  71. 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCombineSwift/Tests/Unit/FirebaseCombine-unit-Bridging-Header.h'
  72. }
  73. unit_tests.dependency 'OCMock'
  74. unit_tests.dependency 'FirebaseAuthTestingSupport'
  75. unit_tests.dependency 'FirebaseFirestoreTestingSupport'
  76. end
  77. s.test_spec 'integration' do |int_tests|
  78. int_tests.scheme = { :code_coverage => true }
  79. int_tests.platforms = {
  80. :ios => ios_deployment_target,
  81. :osx => osx_deployment_target,
  82. :tvos => tvos_deployment_target
  83. }
  84. int_tests.source_files = [
  85. 'FirebaseCombineSwift/Tests/Integration/Storage/StorageIntegration.swift',
  86. 'FirebaseStorage/Tests/Integration/Credentials.swift'
  87. ]
  88. int_tests.requires_app_host = true
  89. # Resources are shared with FirebaseStorage's integration tests.
  90. int_tests.resources = 'FirebaseStorage/Tests/Integration/Resources/1mb.dat',
  91. 'FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist',
  92. 'FirebaseStorage/Tests/Integration/Resources/HomeImprovement.numbers'
  93. int_tests.dependency 'FirebaseAuth', '~> 12.6.0'
  94. end
  95. end