FirebaseAuth.podspec 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseAuth'
  3. s.version = '6.9.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 => '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.watchos.deployment_target = '6.0'
  21. s.cocoapods_version = '>= 1.4.0'
  22. s.static_framework = true
  23. s.prefix_header_file = false
  24. source = 'FirebaseAuth/Sources/'
  25. s.source_files = [
  26. source + '**/*.[mh]',
  27. 'FirebaseCore/Sources/Private/*.h',
  28. 'GoogleUtilities/AppDelegateSwizzler/Private/*.h',
  29. 'GoogleUtilities/Environment/Private/*.h',
  30. 'GoogleUtilities/SceneDelegateSwizzler/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. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  41. 'FIRAuth_VERSION=' + s.version.to_s +
  42. ' FIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1],
  43. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  44. }
  45. s.framework = 'Security'
  46. s.ios.framework = 'SafariServices'
  47. s.dependency 'FirebaseCore', '~> 6.10'
  48. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.7'
  49. s.dependency 'GoogleUtilities/Environment', '~> 6.7'
  50. s.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  51. s.test_spec 'unit' do |unit_tests|
  52. # Unit tests can't run on watchOS.
  53. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  54. unit_tests.source_files = 'FirebaseAuth/Tests/Unit/*.[mh]'
  55. unit_tests.osx.exclude_files = [
  56. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m',
  57. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenTests.m',
  58. 'FirebaseAuth/Tests/Unit/FIRAuthAppCredentialManagerTests.m',
  59. 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m',
  60. 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m',
  61. 'FirebaseAuth/Tests/Unit/FIREmailLink*',
  62. 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m',
  63. 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*',
  64. 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m',
  65. 'FirebaseAuth/Tests/Unit/FIRVerifyClient*',
  66. 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*',
  67. 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m',
  68. ]
  69. unit_tests.tvos.exclude_files = [
  70. 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m',
  71. 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m',
  72. 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m',
  73. 'FirebaseAuth/Tests/Unit/FIREmailLink*',
  74. 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m',
  75. 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*',
  76. 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m',
  77. 'FirebaseAuth/Tests/Unit/FIRVerifyClient*',
  78. 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*',
  79. 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m',
  80. ]
  81. # app_host is needed for tests with keychain
  82. unit_tests.requires_app_host = true
  83. unit_tests.dependency 'OCMock'
  84. end
  85. end