FirebaseInstanceID.podspec 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInstanceID'
  3. s.version = '4.5.1'
  4. s.summary = 'Firebase InstanceID'
  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.osx.deployment_target = '10.11'
  20. s.tvos.deployment_target = '10.0'
  21. s.watchos.deployment_target = '6.0'
  22. s.cocoapods_version = '>= 1.4.0'
  23. s.static_framework = true
  24. s.prefix_header_file = false
  25. base_dir = "Firebase/InstanceID/"
  26. s.source_files = [
  27. base_dir + '**/*.[mh]',
  28. 'FirebaseCore/Sources/Private/*.h',
  29. 'FirebaseInstallations/Source/Library/Private/*.h',
  30. 'GoogleUtilities/Environment/Private/*.h',
  31. 'GoogleUtilities/UserDefaults/Private/*.h',
  32. ]
  33. s.requires_arc = base_dir + '*.m'
  34. s.public_header_files = base_dir + 'Public/*.h', base_dir + 'Private/*.h'
  35. s.private_header_files = base_dir + 'Private/*.h'
  36. s.pod_target_xcconfig = {
  37. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  38. 'GCC_PREPROCESSOR_DEFINITIONS' => 'FIRInstanceID_LIB_VERSION=' + String(s.version),
  39. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  40. }
  41. s.framework = 'Security'
  42. s.dependency 'FirebaseCore', '~> 6.10'
  43. s.dependency 'FirebaseInstallations', '~> 1.6'
  44. s.dependency 'GoogleUtilities/UserDefaults', '~> 6.7'
  45. s.dependency 'GoogleUtilities/Environment', '~> 6.7'
  46. s.test_spec 'unit' do |unit_tests|
  47. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  48. unit_tests.source_files = 'Example/InstanceID/Tests/*.[mh]'
  49. unit_tests.requires_app_host = true
  50. unit_tests.dependency 'OCMock'
  51. unit_tests.pod_target_xcconfig = {
  52. # Unit tests do library imports using repo-root relative paths.
  53. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  54. # Prevent linker warning for test category override of
  55. # store:didDeleteFCMScopedTokensForCheckin:
  56. 'OTHER_LDFLAGS' => '-Xlinker -no_objc_category_merging',
  57. 'CLANG_ENABLE_OBJC_WEAK' => 'YES'
  58. }
  59. end
  60. s.test_spec 'integration' do |int_tests|
  61. int_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  62. int_tests.source_files = 'Example/InstanceID/IntegrationTests/*.[mh]'
  63. int_tests.resources = 'Example/InstanceID/Resources/**/*'
  64. int_tests.requires_app_host = true
  65. if ENV['FIR_IID_INTEGRATION_TESTS_REQUIRED'] && ENV['FIR_IID_INTEGRATION_TESTS_REQUIRED'] == '1' then
  66. int_tests.pod_target_xcconfig = {
  67. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  68. 'FIR_IID_INTEGRATION_TESTS_REQUIRED=1'
  69. }
  70. end
  71. end
  72. end