GoogleSignIn.podspec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Pod::Spec.new do |s|
  2. s.name = 'GoogleSignIn'
  3. s.version = '6.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, Inc.'
  11. s.source = {
  12. :git => 'https://developers.google.com/identity/sign-in/ios/',
  13. :tag => 'CocoaPods-' + 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.resources = 'GoogleSignIn/Resources/GoogleSignIn.bundle'
  36. s.pod_target_xcconfig = {
  37. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  38. 'GCC_PREPROCESSOR_DEFINITIONS' => 'GID_SDK_VERSION=' + s.version.to_s,
  39. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  40. }
  41. s.test_spec 'unit' do |unit_tests|
  42. unit_tests.platforms = {:ios => ios_deployment_target}
  43. unit_tests.source_files = [
  44. 'GoogleSignIn/Tests/Unit/**/*.[mh]',
  45. ]
  46. unit_tests.requires_app_host = true
  47. unit_tests.dependency 'OCMock'
  48. unit_tests.dependency 'GoogleUtilities/MethodSwizzler', '~> 7.2'
  49. unit_tests.dependency 'GoogleUtilities/SwizzlerTestHelpers', '~> 7.2'
  50. end
  51. end