FirebaseAuth.podspec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '6.3.1'
  4. s.summary = 'The official iOS client for Firebase Authentication (plus community support for macOS and tvOS)'
  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 => 'Auth-' + s.version.to_s
  15. }
  16. s.social_media_url = 'https://twitter.com/Firebase'
  17. s.ios.deployment_target = '8.0'
  18. s.osx.deployment_target = '10.11'
  19. s.tvos.deployment_target = '10.0'
  20. s.cocoapods_version = '>= 1.4.0'
  21. s.static_framework = true
  22. s.prefix_header_file = false
  23. source = 'Firebase/Auth/Source/'
  24. s.source_files = source + '**/*.[mh]'
  25. s.osx.exclude_files = [
  26. source + '**/FIRAuthNotificationManager.[mh]',
  27. source + '**/FIRAuthAppCredentialManager.[mh]',
  28. source + '**/FIRAuthAPNSTokenManager.[mh]',
  29. source + '**/FIRAuthAPNSTokenType.[mh]',
  30. source + '**/FIRAuthAPNSToken.[mh]',
  31. source + '**/FIRAuthDefaultUIDelegate.[mh]',
  32. source + '**/FIRAuthUIDelegate.h',
  33. source + '**/FIRAuthURLPresenter.[mh]',
  34. source + '**/FIRAuthWebView.[mh]',
  35. source + '**/FIRAuthWebViewController.[mh]',
  36. source + '**/FIRPhoneAuthCredential.[mh]',
  37. source + '**/FIRPhoneAuthProvider.[mh]'
  38. ]
  39. s.tvos.exclude_files = [
  40. source + '**/FIRAuthURLPresenter.[mh]',
  41. source + '**/FIRAuthWebView.[mh]',
  42. source + '**/FIRAuthWebViewController.[mh]',
  43. source + '**/FIRPhoneAuthCredential.[mh]',
  44. source + '**/FIRPhoneAuthProvider.[mh]'
  45. ]
  46. s.public_header_files = source + 'Public/*.h'
  47. s.preserve_paths = [
  48. 'Firebase/Auth/README.md',
  49. 'Firebase/Auth/CHANGELOG.md'
  50. ]
  51. s.pod_target_xcconfig = {
  52. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  53. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  54. 'FIRAuth_VERSION=' + s.version.to_s +
  55. ' FIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
  56. }
  57. s.framework = 'Security'
  58. s.ios.framework = 'SafariServices'
  59. s.dependency 'FirebaseAuthInterop', '~> 1.0'
  60. s.dependency 'FirebaseCore', '~> 6.2'
  61. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.2'
  62. s.dependency 'GoogleUtilities/Environment', '~> 6.2'
  63. s.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  64. s.test_spec 'unit' do |unit_tests|
  65. unit_tests.source_files = 'Example/Auth/Tests/*.[mh]'
  66. unit_tests.osx.exclude_files = [
  67. 'Example/Auth/Tests/FIRAuthAPNSTokenManagerTests.m',
  68. 'Example/Auth/Tests/FIRAuthAPNSTokenTests.m',
  69. 'Example/Auth/Tests/FIRAuthAppCredentialManagerTests.m',
  70. 'Example/Auth/Tests/FIRAuthNotificationManagerTests.m',
  71. 'Example/Auth/Tests/FIRAuthURLPresenterTests.m',
  72. 'Example/Auth/Tests/FIREmailLink*',
  73. 'Example/Auth/Tests/FIRPhoneAuthProviderTests.m',
  74. 'Example/Auth/Tests/FIRSendVerificationCode*',
  75. 'Example/Auth/Tests/FIRSignInWithGameCenterTests.m',
  76. 'Example/Auth/Tests/FIRVerifyClient*',
  77. 'Example/Auth/Tests/FIRVerifyPhoneNumber*',
  78. 'Example/Auth/Tests/FIROAuthProviderTests.m',
  79. ]
  80. unit_tests.tvos.exclude_files = [
  81. 'Example/Auth/Tests/FIRAuthAPNSTokenManagerTests.m',
  82. 'Example/Auth/Tests/FIRAuthNotificationManagerTests.m',
  83. 'Example/Auth/Tests/FIRAuthURLPresenterTests.m',
  84. 'Example/Auth/Tests/FIREmailLink*',
  85. 'Example/Auth/Tests/FIRPhoneAuthProviderTests.m',
  86. 'Example/Auth/Tests/FIRSendVerificationCode*',
  87. 'Example/Auth/Tests/FIRSignInWithGameCenterTests.m',
  88. 'Example/Auth/Tests/FIRVerifyClient*',
  89. 'Example/Auth/Tests/FIRVerifyPhoneNumber*',
  90. 'Example/Auth/Tests/FIROAuthProviderTests.m',
  91. ]
  92. # app_host is needed for tests with keychain
  93. unit_tests.requires_app_host = true
  94. unit_tests.pod_target_xcconfig = {
  95. # Unit tests do library imports using Firebase/Auth/Source recursive relative paths.
  96. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"/Firebase/Auth/Source/**',
  97. }
  98. unit_tests.dependency 'OCMock'
  99. end
  100. end