GoogleSignIn.podspec 1.8 KB

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