FirebaseAuth.podspec 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '10.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. s.social_media_url = 'https://twitter.com/Firebase'
  17. ios_deployment_target = '11.0'
  18. osx_deployment_target = '10.13'
  19. tvos_deployment_target = '12.0'
  20. watchos_deployment_target = '6.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. # Using environment variable because of the dependency on the unpublished
  53. # HeartbeatLoggingTestUtils.
  54. if ENV['POD_LIB_LINT_ONLY'] && ENV['POD_LIB_LINT_ONLY'] == '1' then
  55. s.test_spec 'unit' do |unit_tests|
  56. unit_tests.scheme = { :code_coverage => true }
  57. # Unit tests can't run on watchOS.
  58. unit_tests.platforms = {
  59. :ios => ios_deployment_target,
  60. :osx => osx_deployment_target,
  61. :tvos => tvos_deployment_target
  62. }
  63. unit_tests.source_files = 'FirebaseAuth/Tests/Unit*/**/*.{m,h,swift}'
  64. # app_host is needed for tests with keychain
  65. unit_tests.requires_app_host = true
  66. unit_tests.dependency 'HeartbeatLoggingTestUtils'
  67. end
  68. end
  69. end