FirebaseFunctions.podspec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFunctions'
  3. s.version = '8.3.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.cocoapods_version = '>= 1.4.0'
  19. s.prefix_header_file = false
  20. s.source_files = [
  21. 'Functions/FirebaseFunctions/**/*',
  22. 'Interop/Auth/Public/*.h',
  23. 'FirebaseAppCheck/Sources/Interop/*.h',
  24. 'FirebaseCore/Sources/Private/*.h',
  25. 'FirebaseMessaging/Sources/Interop/FIRMessagingInterop.h',
  26. ]
  27. s.public_header_files = 'Functions/FirebaseFunctions/Public/FirebaseFunctions/*.h'
  28. s.dependency 'FirebaseCore', '~> 8.0'
  29. s.dependency 'GTMSessionFetcher/Core', '~> 1.5'
  30. s.pod_target_xcconfig = {
  31. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  32. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  33. }
  34. s.test_spec 'unit' do |unit_tests|
  35. unit_tests.scheme = { :code_coverage => true }
  36. unit_tests.source_files = [
  37. 'Functions/Example/Test*/*.[mh]',
  38. 'SharedTestUtilities/FIRAuthInteropFake*',
  39. 'SharedTestUtilities/FIRMessagingInteropFake*',
  40. 'SharedTestUtilities/AppCheckFake/*.[mh]',
  41. ]
  42. end
  43. s.test_spec 'integration' do |int_tests|
  44. int_tests.scheme = { :code_coverage => true }
  45. int_tests.source_files = 'Functions/Example/IntegrationTests/*.[mh]',
  46. 'Functions/Example/TestUtils/*.[mh]',
  47. 'SharedTestUtilities/FIRAuthInteropFake*',
  48. 'SharedTestUtilities/FIRMessagingInteropFake*',
  49. 'Functions/Example/GoogleService-Info.plist'
  50. end
  51. end