FirebaseAuth.podspec 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '11.3.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 = '13.0'
  18. osx_deployment_target = '10.15'
  19. tvos_deployment_target = '13.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. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  44. # The second path is to find FirebaseAuth-Swift.h from a pod gen project
  45. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}" "${OBJECT_FILE_DIR_normal}/${NATIVE_ARCH_ACTUAL}"',
  46. 'OTHER_SWIFT_FLAGS' => "$(inherited) #{ENV.key?('FIREBASE_CI') ? '-D FIREBASE_CI -warnings-as-errors' : ''}"
  47. }
  48. s.framework = 'Security'
  49. s.ios.framework = 'SafariServices'
  50. s.dependency 'FirebaseAuthInterop', '~> 11.0'
  51. s.dependency 'FirebaseAppCheckInterop', '~> 11.0'
  52. s.dependency 'FirebaseCore', '~> 11.0'
  53. s.dependency 'FirebaseCoreExtension', '~> 11.0'
  54. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 8.0'
  55. s.dependency 'GoogleUtilities/Environment', '~> 8.0'
  56. s.dependency 'GTMSessionFetcher/Core', '>= 3.4', '< 5.0'
  57. s.ios.dependency 'RecaptchaInterop', '~> 100.0'
  58. s.test_spec 'unit' do |unit_tests|
  59. unit_tests.scheme = { :code_coverage => true }
  60. # Unit tests can't run on watchOS.
  61. unit_tests.platforms = {
  62. :ios => ios_deployment_target,
  63. :osx => osx_deployment_target,
  64. :tvos => tvos_deployment_target
  65. }
  66. unit_tests.source_files = 'FirebaseAuth/Tests/Unit*/**/*.{m,h,swift}'
  67. # app_host is needed for tests with keychain
  68. unit_tests.requires_app_host = true
  69. end
  70. end