GoogleSignIn.podspec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleSignIn'
  3. s.version = '7.0.0'
  4. s.summary = 'Enables iOS apps to sign in with Google.'
  5. s.description = <<-DESC
  6. The Google Sign-In SDK allows users to sign in with their Google account from third-party apps.
  7. DESC
  8. s.homepage = 'https://developers.google.com/identity/sign-in/ios/'
  9. s.license = { :type => 'Apache', :file => 'LICENSE' }
  10. s.authors = 'Google LLC'
  11. s.source = {
  12. :git => 'https://github.com/google/GoogleSignIn-iOS.git',
  13. :tag => s.version.to_s
  14. }
  15. s.swift_version = '4.0'
  16. ios_deployment_target = '11.0'
  17. osx_deployment_target = '10.15'
  18. s.ios.deployment_target = ios_deployment_target
  19. s.osx.deployment_target = osx_deployment_target
  20. s.prefix_header_file = false
  21. s.source_files = [
  22. 'GoogleSignIn/Sources/**/*.[mh]',
  23. ]
  24. s.public_header_files = [
  25. 'GoogleSignIn/Sources/Public/GoogleSignIn/*.h',
  26. ]
  27. s.frameworks = [
  28. 'CoreGraphics',
  29. 'CoreText',
  30. 'Foundation',
  31. 'LocalAuthentication',
  32. 'Security'
  33. ]
  34. s.ios.framework = 'UIKit'
  35. s.osx.framework = 'AppKit'
  36. s.dependency 'FirebaseAppCheck', '~> 10.0'
  37. s.dependency 'AppAuth', '~> 1.6'
  38. s.dependency 'GTMAppAuth', '~> 4.0'
  39. s.dependency 'GTMSessionFetcher/Core', '>= 1.1', '< 4.0'
  40. s.resource_bundle = {
  41. 'GoogleSignIn' => ['GoogleSignIn/Sources/{Resources,Strings}/*']
  42. }
  43. s.pod_target_xcconfig = {
  44. 'GCC_PREPROCESSOR_DEFINITIONS' => 'GID_SDK_VERSION=' + s.version.to_s,
  45. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  46. 'DEFINES_MODULE' => 'YES',
  47. 'COMBINE_HIDPI_IMAGES' => 'NO'
  48. }
  49. s.test_spec 'unit' do |unit_tests|
  50. unit_tests.platforms = {
  51. :ios => ios_deployment_target,
  52. :osx => osx_deployment_target
  53. }
  54. unit_tests.source_files = [
  55. 'GoogleSignIn/Tests/Unit/**/*.[mh]',
  56. ]
  57. unit_tests.requires_app_host = true
  58. unit_tests.dependency 'OCMock'
  59. unit_tests.dependency 'GoogleUtilities/MethodSwizzler', '~> 7.2'
  60. unit_tests.dependency 'GoogleUtilities/SwizzlerTestHelpers', '~> 7.2'
  61. end
  62. end