FirebaseAuth.podspec 3.7 KB

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