FirebaseAuth.podspec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '10.5.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 + '**/*.[mh]',
  31. 'FirebaseCore/Extension/*.h',
  32. 'FirebaseAuth/Interop/*.h',
  33. 'FirebaseAppCheck/Interop/*.h',
  34. ]
  35. s.public_header_files = source + 'Public/FirebaseAuth/*.h'
  36. s.preserve_paths = [
  37. 'FirebaseAuth/README.md',
  38. 'FirebaseAuth/CHANGELOG.md'
  39. ]
  40. s.pod_target_xcconfig = {
  41. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  42. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  43. }
  44. s.framework = 'Security'
  45. s.ios.framework = 'SafariServices'
  46. s.dependency 'FirebaseAppCheckInterop', '~> 10.0'
  47. s.dependency 'FirebaseCore', '~> 10.0'
  48. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 7.8'
  49. s.dependency 'GoogleUtilities/Environment', '~> 7.8'
  50. s.dependency 'GTMSessionFetcher/Core', '>= 2.1', '< 4.0'
  51. # Using environment variable because of the dependency on the unpublished
  52. # HeartbeatLoggingTestUtils.
  53. if ENV['POD_LIB_LINT_ONLY'] && ENV['POD_LIB_LINT_ONLY'] == '1' then
  54. s.test_spec 'unit' do |unit_tests|
  55. unit_tests.scheme = { :code_coverage => true }
  56. # Unit tests can't run on watchOS.
  57. unit_tests.platforms = {
  58. :ios => ios_deployment_target,
  59. :osx => osx_deployment_target,
  60. :tvos => tvos_deployment_target
  61. }
  62. unit_tests.source_files = 'FirebaseAuth/Tests/Unit/*.[mh]'
  63. unit_tests.osx.exclude_files = [
  64. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m',
  65. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenTests.m',
  66. 'FirebaseAuth/Tests/Unit/FIRAuthAppCredentialManagerTests.m',
  67. 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m',
  68. 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m',
  69. 'FirebaseAuth/Tests/Unit/FIREmailLink*',
  70. 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m',
  71. 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*',
  72. 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m',
  73. 'FirebaseAuth/Tests/Unit/FIRVerifyClient*',
  74. 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*',
  75. 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m',
  76. ]
  77. unit_tests.tvos.exclude_files = [
  78. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m',
  79. 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m',
  80. 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m',
  81. 'FirebaseAuth/Tests/Unit/FIREmailLink*',
  82. 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m',
  83. 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*',
  84. 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m',
  85. 'FirebaseAuth/Tests/Unit/FIRVerifyClient*',
  86. 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*',
  87. 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m',
  88. ]
  89. # app_host is needed for tests with keychain
  90. unit_tests.requires_app_host = true
  91. unit_tests.dependency 'OCMock'
  92. unit_tests.dependency 'HeartbeatLoggingTestUtils'
  93. end
  94. end
  95. end