FirebaseAuth.podspec 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '6.5.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.public_header_files = source + 'Public/*.h'
  26. s.preserve_paths = [
  27. 'Firebase/Auth/README.md',
  28. 'Firebase/Auth/CHANGELOG.md'
  29. ]
  30. s.pod_target_xcconfig = {
  31. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  32. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  33. 'FIRAuth_VERSION=' + s.version.to_s +
  34. ' FIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
  35. }
  36. s.framework = 'Security'
  37. s.ios.framework = 'SafariServices'
  38. s.dependency 'FirebaseAuthInterop', '~> 1.0'
  39. s.dependency 'FirebaseCore', '~> 6.6'
  40. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.5'
  41. s.dependency 'GoogleUtilities/Environment', '~> 6.5'
  42. s.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  43. s.test_spec 'unit' do |unit_tests|
  44. unit_tests.source_files = 'Example/Auth/Tests/*.[mh]'
  45. unit_tests.osx.exclude_files = [
  46. 'Example/Auth/Tests/FIRAuthAPNSTokenManagerTests.m',
  47. 'Example/Auth/Tests/FIRAuthAPNSTokenTests.m',
  48. 'Example/Auth/Tests/FIRAuthAppCredentialManagerTests.m',
  49. 'Example/Auth/Tests/FIRAuthNotificationManagerTests.m',
  50. 'Example/Auth/Tests/FIRAuthURLPresenterTests.m',
  51. 'Example/Auth/Tests/FIREmailLink*',
  52. 'Example/Auth/Tests/FIRPhoneAuthProviderTests.m',
  53. 'Example/Auth/Tests/FIRSendVerificationCode*',
  54. 'Example/Auth/Tests/FIRSignInWithGameCenterTests.m',
  55. 'Example/Auth/Tests/FIRVerifyClient*',
  56. 'Example/Auth/Tests/FIRVerifyPhoneNumber*',
  57. 'Example/Auth/Tests/FIROAuthProviderTests.m',
  58. ]
  59. unit_tests.tvos.exclude_files = [
  60. 'Example/Auth/Tests/FIRAuthAPNSTokenManagerTests.m',
  61. 'Example/Auth/Tests/FIRAuthNotificationManagerTests.m',
  62. 'Example/Auth/Tests/FIRAuthURLPresenterTests.m',
  63. 'Example/Auth/Tests/FIREmailLink*',
  64. 'Example/Auth/Tests/FIRPhoneAuthProviderTests.m',
  65. 'Example/Auth/Tests/FIRSendVerificationCode*',
  66. 'Example/Auth/Tests/FIRSignInWithGameCenterTests.m',
  67. 'Example/Auth/Tests/FIRVerifyClient*',
  68. 'Example/Auth/Tests/FIRVerifyPhoneNumber*',
  69. 'Example/Auth/Tests/FIROAuthProviderTests.m',
  70. ]
  71. # app_host is needed for tests with keychain
  72. unit_tests.requires_app_host = true
  73. unit_tests.pod_target_xcconfig = {
  74. # Unit tests do library imports using Firebase/Auth/Source recursive relative paths.
  75. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"/Firebase/Auth/Source/**',
  76. }
  77. unit_tests.dependency 'OCMock'
  78. end
  79. end