FirebaseAuth.podspec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '12.6.0'
  4. s.summary = 'Apple platform client for Firebase Authentication'
  5. s.description = <<-DESC
  6. Firebase Authentication allows you to manage your own account system without any backend code. It
  7. supports email and password accounts, as well as several 3rd party authentication mechanisms.
  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 = '10.15'
  19. tvos_deployment_target = '15.0'
  20. watchos_deployment_target = '7.0'
  21. s.swift_version = '5.9'
  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 = 'FirebaseAuth/Sources/'
  29. s.source_files = [
  30. source + 'Swift/**/*.swift',
  31. source + 'ObjC/**/*.m', # Implementations for deprecated global symbols
  32. source + 'Public/FirebaseAuth/*.h'
  33. ]
  34. s.public_header_files = source + 'Public/FirebaseAuth/*.h'
  35. s.resource_bundles = {
  36. "#{s.module_name}_Privacy" => 'FirebaseAuth/Sources/Resources/PrivacyInfo.xcprivacy'
  37. }
  38. s.preserve_paths = [
  39. 'FirebaseAuth/README.md',
  40. 'FirebaseAuth/CHANGELOG.md'
  41. ]
  42. s.pod_target_xcconfig = {
  43. # The second path is to find FirebaseAuth-Swift.h from a pod gen project
  44. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}" "${OBJECT_FILE_DIR_normal}/${NATIVE_ARCH_ACTUAL}"',
  45. 'OTHER_SWIFT_FLAGS' => "$(inherited) #{ENV.key?('FIREBASE_CI') ? '-D FIREBASE_CI -warnings-as-errors' : ''}"
  46. }
  47. s.framework = 'Security'
  48. s.ios.framework = 'SafariServices'
  49. s.dependency 'FirebaseAuthInterop', '~> 12.6.0'
  50. s.dependency 'FirebaseAppCheckInterop', '~> 12.6.0'
  51. s.dependency 'FirebaseCore', '~> 12.6.0'
  52. s.dependency 'FirebaseCoreExtension', '~> 12.6.0'
  53. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 8.1'
  54. s.dependency 'GoogleUtilities/Environment', '~> 8.1'
  55. s.dependency 'GTMSessionFetcher/Core', '>= 3.4', '< 6.0'
  56. s.ios.dependency 'RecaptchaInterop', '~> 101.0'
  57. s.test_spec 'unit' do |unit_tests|
  58. unit_tests.scheme = { :code_coverage => true }
  59. # Unit tests can't run on watchOS.
  60. unit_tests.platforms = {
  61. :ios => ios_deployment_target,
  62. :osx => osx_deployment_target,
  63. :tvos => tvos_deployment_target
  64. }
  65. unit_tests.source_files = 'FirebaseAuth/Tests/Unit*/**/*.{m,h,swift}'
  66. # app_host is needed for tests with keychain
  67. unit_tests.requires_app_host = true
  68. end
  69. end