FirebaseMessaging.podspec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseMessaging'
  3. s.version = '11.0.0'
  4. s.summary = 'Firebase Messaging'
  5. s.description = <<-DESC
  6. Firebase Messaging is a service that allows you to send data from your server to your users'
  7. iOS device, and also to receive messages from devices on the same connection. The service handles
  8. all aspects of queueing of messages and delivery to the target application running on the target
  9. device, and it is completely free.
  10. DESC
  11. s.homepage = 'https://firebase.google.com'
  12. s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
  13. s.authors = 'Google, Inc.'
  14. s.source = {
  15. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  16. :tag => 'CocoaPods-' + s.version.to_s
  17. }
  18. s.social_media_url = 'https://twitter.com/Firebase'
  19. ios_deployment_target = '13.0'
  20. osx_deployment_target = '10.15'
  21. tvos_deployment_target = '13.0'
  22. watchos_deployment_target = '7.0'
  23. s.swift_version = '5.9'
  24. s.ios.deployment_target = ios_deployment_target
  25. s.osx.deployment_target = osx_deployment_target
  26. s.tvos.deployment_target = tvos_deployment_target
  27. s.watchos.deployment_target = watchos_deployment_target
  28. s.cocoapods_version = '>= 1.12.0'
  29. s.prefix_header_file = false
  30. base_dir = "FirebaseMessaging/"
  31. s.source_files = [
  32. base_dir + 'Sources/**/*.{c,m,h}',
  33. base_dir + 'Sources/Protogen/nanopb/*.h',
  34. base_dir + 'Interop/*.h',
  35. 'Interop/Analytics/Public/*.h',
  36. 'FirebaseCore/Extension/*.h',
  37. 'FirebaseInstallations/Source/Library/Private/*.h',
  38. ]
  39. s.public_header_files = base_dir + 'Sources/Public/FirebaseMessaging/*.h'
  40. s.resource_bundles = {
  41. "#{s.module_name}_Privacy" => 'FirebaseMessaging/Sources/Resources/PrivacyInfo.xcprivacy'
  42. }
  43. s.library = 'sqlite3'
  44. s.pod_target_xcconfig = {
  45. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  46. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  47. # for nanopb:
  48. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  49. # Unit tests do library imports using repo-root relative paths.
  50. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  51. }
  52. s.ios.framework = 'SystemConfiguration'
  53. s.tvos.framework = 'SystemConfiguration'
  54. s.osx.framework = 'SystemConfiguration'
  55. s.weak_framework = 'UserNotifications'
  56. s.dependency 'FirebaseInstallations', '~> 11.0'
  57. s.dependency 'FirebaseCore', '~> 11.0'
  58. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 8.0'
  59. s.dependency 'GoogleUtilities/Reachability', '~> 8.0'
  60. s.dependency 'GoogleUtilities/Environment', '~> 8.0'
  61. s.dependency 'GoogleUtilities/UserDefaults', '~> 8.0'
  62. s.dependency 'GoogleDataTransport', '~> 10.0'
  63. s.dependency 'nanopb', '>= 2.30908.0', '< 2.30911.0'
  64. s.test_spec 'unit' do |unit_tests|
  65. unit_tests.scheme = { :code_coverage => true }
  66. unit_tests.platforms = {
  67. :ios => ios_deployment_target,
  68. :osx => osx_deployment_target,
  69. :tvos => tvos_deployment_target
  70. }
  71. unit_tests.source_files = [
  72. 'FirebaseMessaging/Tests/UnitTests*/*.{m,h,swift}',
  73. 'SharedTestUtilities/URLSession/*.[mh]',
  74. ]
  75. unit_tests.requires_app_host = true
  76. unit_tests.pod_target_xcconfig = {
  77. 'CLANG_ENABLE_OBJC_WEAK' => 'YES'
  78. }
  79. unit_tests.dependency 'OCMock'
  80. end
  81. s.test_spec 'integration' do |int_tests|
  82. int_tests.scheme = { :code_coverage => true }
  83. int_tests.platforms = {
  84. :ios => ios_deployment_target,
  85. :osx => osx_deployment_target,
  86. :tvos => tvos_deployment_target
  87. }
  88. int_tests.source_files = 'FirebaseMessaging/Tests/IntegrationTests/*.swift'
  89. int_tests.requires_app_host = true
  90. int_tests.resources = 'FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist'
  91. end
  92. end