FirebaseAuth.podspec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '10.12.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.3'
  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.4.0'
  27. s.prefix_header_file = false
  28. source = 'FirebaseAuth/Sources/'
  29. s.source_files = [
  30. source + 'Swift/**/*.swift',
  31. source + 'Public/FirebaseAuth/*.h'
  32. ]
  33. s.public_header_files = source + 'Public/FirebaseAuth/*.h'
  34. s.preserve_paths = [
  35. 'FirebaseAuth/README.md',
  36. 'FirebaseAuth/CHANGELOG.md'
  37. ]
  38. s.pod_target_xcconfig = {
  39. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  40. # The second path is to find FirebaseAuth-Swift.h from a pod gen project
  41. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}" "${OBJECT_FILE_DIR_normal}/${NATIVE_ARCH_ACTUAL}"',
  42. }
  43. s.framework = 'Security'
  44. s.ios.framework = 'SafariServices'
  45. s.dependency 'FirebaseAuthInterop', '~> 10.9'
  46. s.dependency 'FirebaseAppCheckInterop', '~> 10.0'
  47. s.dependency 'FirebaseCore', '~> 10.0'
  48. s.dependency 'FirebaseCoreExtension', '~> 10.0'
  49. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 7.8'
  50. s.dependency 'GoogleUtilities/Environment', '~> 7.8'
  51. s.dependency 'GTMSessionFetcher/Core', '>= 2.1', '< 4.0'
  52. s.test_spec 'unit' do |unit_tests|
  53. unit_tests.scheme = { :code_coverage => true }
  54. # Unit tests can't run on watchOS.
  55. unit_tests.platforms = {
  56. :ios => ios_deployment_target,
  57. :osx => osx_deployment_target,
  58. :tvos => tvos_deployment_target
  59. }
  60. unit_tests.source_files = 'FirebaseAuth/Tests/Unit*/**/*.{m,h,swift}'
  61. # app_host is needed for tests with keychain
  62. unit_tests.requires_app_host = true
  63. end
  64. end