FirebaseFunctions.podspec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFunctions'
  3. s.version = '8.11.0'
  4. s.summary = 'Cloud Functions for Firebase'
  5. s.description = <<-DESC
  6. Cloud Functions for Firebase.
  7. DESC
  8. s.homepage = 'https://developers.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 => 'CocoaPods-' + s.version.to_s
  14. }
  15. s.ios.deployment_target = '10.0'
  16. s.osx.deployment_target = '10.12'
  17. s.tvos.deployment_target = '10.0'
  18. s.watchos.deployment_target = '6.0'
  19. s.cocoapods_version = '>= 1.4.0'
  20. s.prefix_header_file = false
  21. s.source_files = [
  22. 'FirebaseFunctions/Sources/**/*',
  23. 'Interop/Auth/Public/*.h',
  24. 'FirebaseAppCheck/Sources/Interop/*.h',
  25. 'FirebaseCore/Sources/Private/*.h',
  26. 'FirebaseMessaging/Sources/Interop/FIRMessagingInterop.h',
  27. ]
  28. s.public_header_files = 'FirebaseFunctions/Sources/Public/FirebaseFunctions/*.h'
  29. s.dependency 'FirebaseCore', '~> 8.0'
  30. s.dependency 'GTMSessionFetcher/Core', '~> 1.5'
  31. s.pod_target_xcconfig = {
  32. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  33. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  34. }
  35. s.test_spec 'unit' do |unit_tests|
  36. unit_tests.scheme = { :code_coverage => true }
  37. unit_tests.source_files = [
  38. 'FirebaseFunctions/Tests/Unit/*.[mh]',
  39. 'FirebaseFunctions/Tests/SwiftUnit/**/*',
  40. 'SharedTestUtilities/FIRAuthInteropFake*',
  41. 'SharedTestUtilities/FIRMessagingInteropFake*',
  42. 'SharedTestUtilities/AppCheckFake/*.[mh]',
  43. ]
  44. end
  45. s.test_spec 'integration' do |int_tests|
  46. int_tests.scheme = { :code_coverage => true }
  47. int_tests.source_files = 'FirebaseFunctions/Tests/Integration/*.[mh]',
  48. 'SharedTestUtilities/FIRAuthInteropFake*',
  49. 'SharedTestUtilities/FIRMessagingInteropFake*'
  50. end
  51. # Using environment variable because of the dependency on the unpublished
  52. # FirebaseFunctionsTestingSupport.
  53. if ENV['POD_LIB_LINT_ONLY'] && ENV['POD_LIB_LINT_ONLY'] == '1' then
  54. s.test_spec 'swift-integration' do |swift_int|
  55. swift_int.platforms = {:ios => '15.0', :osx => '12.0', :tvos => '15.0', :watchos => '8.0'}
  56. swift_int.scheme = { :code_coverage => true }
  57. swift_int.dependency 'FirebaseFunctionsTestingSupport'
  58. swift_int.source_files = 'FirebaseFunctions/Tests/SwiftIntegration/*',
  59. 'FirebaseTestingSupport/Functions/Sources/*'
  60. end
  61. end
  62. end