FirebaseAuth.podspec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '8.4.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', :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 = '10.0'
  18. osx_deployment_target = '10.12'
  19. tvos_deployment_target = '10.0'
  20. watchos_deployment_target = '6.0'
  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.4.0'
  26. s.prefix_header_file = false
  27. source = 'FirebaseAuth/Sources/'
  28. s.source_files = [
  29. source + '**/*.[mh]',
  30. 'FirebaseCore/Sources/Private/*.h',
  31. 'Interop/Auth/Public/*.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. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  41. }
  42. s.framework = 'Security'
  43. s.ios.framework = 'SafariServices'
  44. s.dependency 'FirebaseCore', '~> 8.0'
  45. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 7.4'
  46. s.dependency 'GoogleUtilities/Environment', '~> 7.4'
  47. s.dependency 'GTMSessionFetcher/Core', '~> 1.5'
  48. s.test_spec 'unit' do |unit_tests|
  49. unit_tests.scheme = { :code_coverage => true }
  50. # Unit tests can't run on watchOS.
  51. unit_tests.platforms = {
  52. :ios => ios_deployment_target,
  53. :osx => osx_deployment_target,
  54. :tvos => tvos_deployment_target
  55. }
  56. unit_tests.source_files = 'FirebaseAuth/Tests/Unit/*.[mh]'
  57. unit_tests.osx.exclude_files = [
  58. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m',
  59. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenTests.m',
  60. 'FirebaseAuth/Tests/Unit/FIRAuthAppCredentialManagerTests.m',
  61. 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m',
  62. 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m',
  63. 'FirebaseAuth/Tests/Unit/FIREmailLink*',
  64. 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m',
  65. 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*',
  66. 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m',
  67. 'FirebaseAuth/Tests/Unit/FIRVerifyClient*',
  68. 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*',
  69. 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m',
  70. ]
  71. unit_tests.tvos.exclude_files = [
  72. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m',
  73. 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m',
  74. 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m',
  75. 'FirebaseAuth/Tests/Unit/FIREmailLink*',
  76. 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m',
  77. 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*',
  78. 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m',
  79. 'FirebaseAuth/Tests/Unit/FIRVerifyClient*',
  80. 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*',
  81. 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m',
  82. ]
  83. # app_host is needed for tests with keychain
  84. unit_tests.requires_app_host = true
  85. unit_tests.dependency 'OCMock'
  86. end
  87. end