FirebaseAuth.podspec 3.5 KB

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