FirebaseInstanceID.podspec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInstanceID'
  3. s.version = '4.1.1'
  4. s.summary = 'Firebase InstanceID for iOS'
  5. s.description = <<-DESC
  6. Instance ID provides a unique ID per instance of your iOS apps. In addition to providing
  7. unique IDs for authentication,Instance ID can generate security tokens for use with other
  8. services.
  9. DESC
  10. s.homepage = 'https://firebase.google.com'
  11. s.license = { :type => 'Apache', :file => 'LICENSE' }
  12. s.authors = 'Google, Inc.'
  13. s.source = {
  14. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  15. :tag => 'InstanceID-' + s.version.to_s
  16. }
  17. s.social_media_url = 'https://twitter.com/Firebase'
  18. s.ios.deployment_target = '8.0'
  19. s.tvos.deployment_target = '10.0'
  20. s.cocoapods_version = '>= 1.4.0'
  21. s.static_framework = true
  22. s.prefix_header_file = false
  23. base_dir = "Firebase/InstanceID/"
  24. s.source_files = base_dir + '**/*.[mh]'
  25. s.requires_arc = base_dir + '*.m'
  26. s.public_header_files = base_dir + 'Public/*.h', base_dir + 'Private/*.h'
  27. s.private_header_files = base_dir + 'Private/*.h'
  28. s.pod_target_xcconfig = {
  29. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  30. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  31. 'FIRInstanceID_LIB_VERSION=' + String(s.version)
  32. }
  33. s.framework = 'Security'
  34. s.dependency 'FirebaseCore', '~> 6.0'
  35. s.dependency 'GoogleUtilities/UserDefaults', '~> 6.0'
  36. s.dependency 'GoogleUtilities/Environment', '~> 6.0'
  37. s.test_spec 'unit' do |unit_tests|
  38. unit_tests.source_files = 'Example/InstanceID/Tests/*.[mh]'
  39. unit_tests.requires_app_host = true
  40. unit_tests.dependency 'OCMock'
  41. unit_tests.pod_target_xcconfig = {
  42. # Unit tests do library imports using repo-root relative paths.
  43. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  44. # Prevent linker warning for test category override of
  45. # store:didDeleteFCMScopedTokensForCheckin:
  46. 'OTHER_LDFLAGS' => '-Xlinker -no_objc_category_merging'
  47. }
  48. end
  49. end