FirebaseAuth.podspec 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '11.10.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. ios_deployment_target = '13.0'
  17. osx_deployment_target = '10.15'
  18. tvos_deployment_target = '13.0'
  19. watchos_deployment_target = '7.0'
  20. s.swift_version = '5.9'
  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. source = 'FirebaseAuth/Sources/'
  28. s.source_files = [
  29. source + 'Swift/**/*.swift',
  30. source + 'ObjC/**/*.m', # Implementations for deprecated global symbols
  31. source + 'Public/FirebaseAuth/*.h'
  32. ]
  33. s.public_header_files = source + 'Public/FirebaseAuth/*.h'
  34. s.resource_bundles = {
  35. "#{s.module_name}_Privacy" => 'FirebaseAuth/Sources/Resources/PrivacyInfo.xcprivacy'
  36. }
  37. s.preserve_paths = [
  38. 'FirebaseAuth/README.md',
  39. 'FirebaseAuth/CHANGELOG.md'
  40. ]
  41. s.pod_target_xcconfig = {
  42. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  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', '~> 11.0'
  50. s.dependency 'FirebaseAppCheckInterop', '~> 11.0'
  51. s.dependency 'FirebaseCore', '~> 11.10.0'
  52. s.dependency 'FirebaseCoreExtension', '~> 11.10.0'
  53. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 8.0'
  54. s.dependency 'GoogleUtilities/Environment', '~> 8.0'
  55. s.dependency 'GTMSessionFetcher/Core', '>= 3.4', '< 5.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