GoogleSignIn.podspec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 = '10.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 'AppAuth', '~> 1.6'
  37. s.dependency 'GTMAppAuth', '~> 4.0'
  38. s.dependency 'GTMSessionFetcher/Core', '>= 1.1', '< 4.0'
  39. s.resource_bundle = {
  40. 'GoogleSignIn' => ['GoogleSignIn/Sources/{Resources,Strings}/*']
  41. }
  42. s.pod_target_xcconfig = {
  43. 'GCC_PREPROCESSOR_DEFINITIONS' => 'GID_SDK_VERSION=' + s.version.to_s,
  44. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  45. 'DEFINES_MODULE' => 'YES',
  46. 'COMBINE_HIDPI_IMAGES' => 'NO'
  47. }
  48. s.test_spec 'unit' do |unit_tests|
  49. unit_tests.platforms = {
  50. :ios => ios_deployment_target,
  51. :osx => osx_deployment_target
  52. }
  53. unit_tests.source_files = [
  54. 'GoogleSignIn/Tests/Unit/**/*.[mh]',
  55. ]
  56. unit_tests.requires_app_host = true
  57. unit_tests.dependency 'OCMock'
  58. unit_tests.dependency 'GoogleUtilities/MethodSwizzler', '~> 7.2'
  59. unit_tests.dependency 'GoogleUtilities/SwizzlerTestHelpers', '~> 7.2'
  60. end
  61. end