GoogleSignIn.podspec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleSignIn'
  3. s.version = '6.1.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. ios_deployment_target = '9.0'
  16. osx_deployment_target = '10.15'
  17. s.ios.deployment_target = ios_deployment_target
  18. s.osx.deployment_target = osx_deployment_target
  19. s.prefix_header_file = false
  20. s.source_files = [
  21. 'GoogleSignIn/Sources/**/*.[mh]',
  22. ]
  23. s.public_header_files = [
  24. 'GoogleSignIn/Sources/Public/GoogleSignIn/*.h',
  25. ]
  26. s.frameworks = [
  27. 'CoreGraphics',
  28. 'CoreText',
  29. 'Foundation',
  30. 'LocalAuthentication',
  31. 'Security'
  32. ]
  33. s.ios.framework = 'UIKit'
  34. s.osx.framework = 'AppKit'
  35. s.dependency 'AppAuth', '~> 1.4'
  36. s.dependency 'GTMAppAuth', '~> 1.0'
  37. s.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  38. s.resource_bundle = {
  39. 'GoogleSignIn' => ['GoogleSignIn/Sources/{Resources,Strings}/*']
  40. }
  41. s.pod_target_xcconfig = {
  42. 'GCC_PREPROCESSOR_DEFINITIONS' => 'GID_SDK_VERSION=' + s.version.to_s,
  43. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  44. 'DEFINES_MODULE' => 'YES'
  45. }
  46. s.test_spec 'unit' do |unit_tests|
  47. unit_tests.platforms = {
  48. :ios => ios_deployment_target,
  49. :osx => osx_deployment_target
  50. }
  51. unit_tests.source_files = [
  52. 'GoogleSignIn/Tests/Unit/**/*.[mh]',
  53. ]
  54. unit_tests.requires_app_host = true
  55. unit_tests.dependency 'OCMock'
  56. unit_tests.dependency 'GoogleUtilities/MethodSwizzler', '~> 7.2'
  57. unit_tests.dependency 'GoogleUtilities/SwizzlerTestHelpers', '~> 7.2'
  58. end
  59. end