FirebaseVertexAI.podspec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseVertexAI'
  3. s.version = '11.12.0'
  4. s.summary = 'Vertex AI in Firebase SDK'
  5. s.description = <<-DESC
  6. Build AI-powered apps and features with the Gemini API using the Vertex AI in
  7. Firebase SDK.
  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. ios_deployment_target = '15.0'
  18. osx_deployment_target = '12.0'
  19. tvos_deployment_target = '15.0'
  20. watchos_deployment_target = '8.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. s.source_files = [
  28. 'FirebaseVertexAI/Sources/**/*.swift',
  29. ]
  30. s.swift_version = '5.9'
  31. s.framework = 'Foundation'
  32. s.ios.framework = 'UIKit'
  33. s.osx.framework = 'AppKit'
  34. s.tvos.framework = 'UIKit'
  35. s.watchos.framework = 'WatchKit'
  36. s.dependency 'FirebaseAppCheckInterop', '~> 11.4'
  37. s.dependency 'FirebaseAuthInterop', '~> 11.4'
  38. s.dependency 'FirebaseCore', '~> 11.12.0'
  39. s.dependency 'FirebaseCoreExtension', '~> 11.12.0'
  40. s.pod_target_xcconfig = {
  41. 'SWIFT_UPCOMING_FEATURE_INTERNAL_IMPORTS_BY_DEFAULT' => 'YES',
  42. }
  43. s.test_spec 'unit' do |unit_tests|
  44. unit_tests_dir = 'FirebaseVertexAI/Tests/Unit/'
  45. unit_tests.scheme = { :code_coverage => true }
  46. unit_tests.platforms = {
  47. :ios => ios_deployment_target,
  48. :osx => osx_deployment_target,
  49. :tvos => tvos_deployment_target
  50. }
  51. unit_tests.source_files = [
  52. unit_tests_dir + '**/*.swift',
  53. ]
  54. unit_tests.resources = [
  55. unit_tests_dir + 'vertexai-sdk-test-data/mock-responses/vertexai',
  56. unit_tests_dir + 'Resources/**/*',
  57. ]
  58. end
  59. end