GoogleSignIn.podspec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. ios_deployment_target = '10.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.5'
  36. s.dependency 'GTMAppAuth', '>= 1.3', '< 3.0'
  37. s.dependency 'GTMSessionFetcher/Core', '>= 1.1', '< 4.0'
  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. 'COMBINE_HIDPI_IMAGES' => 'NO'
  46. }
  47. s.test_spec 'unit' do |unit_tests|
  48. unit_tests.platforms = {
  49. :ios => ios_deployment_target,
  50. :osx => osx_deployment_target
  51. }
  52. unit_tests.source_files = [
  53. 'GoogleSignIn/Tests/Unit/**/*.[mh]',
  54. ]
  55. unit_tests.requires_app_host = true
  56. unit_tests.dependency 'OCMock'
  57. unit_tests.dependency 'GoogleUtilities/MethodSwizzler', '~> 7.2'
  58. unit_tests.dependency 'GoogleUtilities/SwizzlerTestHelpers', '~> 7.2'
  59. end
  60. end