FirebaseMessaging.podspec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseMessaging'
  3. s.version = '8.4.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', :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 = '10.0'
  20. osx_deployment_target = '10.12'
  21. tvos_deployment_target = '10.0'
  22. watchos_deployment_target = '6.0'
  23. s.ios.deployment_target = ios_deployment_target
  24. s.osx.deployment_target = osx_deployment_target
  25. s.tvos.deployment_target = tvos_deployment_target
  26. s.watchos.deployment_target = watchos_deployment_target
  27. s.cocoapods_version = '>= 1.4.0'
  28. s.prefix_header_file = false
  29. base_dir = "FirebaseMessaging/"
  30. s.source_files = [
  31. base_dir + 'Sources/**/*.[mh]',
  32. 'Interop/Analytics/Public/*.h',
  33. 'FirebaseCore/Sources/Private/*.h',
  34. 'FirebaseInstallations/Source/Library/Private/*.h',
  35. ]
  36. s.public_header_files = base_dir + 'Sources/Public/FirebaseMessaging/*.h'
  37. s.library = 'sqlite3'
  38. s.pod_target_xcconfig = {
  39. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  40. # Unit tests do library imports using repo-root relative paths.
  41. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
  42. }
  43. s.ios.framework = 'SystemConfiguration'
  44. s.tvos.framework = 'SystemConfiguration'
  45. s.osx.framework = 'SystemConfiguration'
  46. s.weak_framework = 'UserNotifications'
  47. s.dependency 'FirebaseInstallations', '~> 8.0'
  48. s.dependency 'FirebaseCore', '~> 8.0'
  49. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 7.4'
  50. s.dependency 'GoogleUtilities/Reachability', '~> 7.4'
  51. s.dependency 'GoogleUtilities/Environment', '~> 7.4'
  52. s.dependency 'GoogleUtilities/UserDefaults', '~> 7.4'
  53. s.test_spec 'unit' do |unit_tests|
  54. unit_tests.scheme = { :code_coverage => true }
  55. unit_tests.platforms = {
  56. :ios => ios_deployment_target,
  57. :osx => osx_deployment_target,
  58. :tvos => tvos_deployment_target
  59. }
  60. unit_tests.source_files = [
  61. 'FirebaseMessaging/Tests/UnitTests*/*.{m,h,swift}',
  62. 'SharedTestUtilities/URLSession/*.[mh]',
  63. ]
  64. unit_tests.requires_app_host = true
  65. unit_tests.pod_target_xcconfig = {
  66. 'CLANG_ENABLE_OBJC_WEAK' => 'YES'
  67. }
  68. unit_tests.dependency 'OCMock'
  69. end
  70. s.test_spec 'integration' do |int_tests|
  71. int_tests.scheme = { :code_coverage => true }
  72. int_tests.platforms = {
  73. :ios => ios_deployment_target,
  74. :osx => osx_deployment_target,
  75. :tvos => tvos_deployment_target
  76. }
  77. int_tests.source_files = 'FirebaseMessaging/Tests/IntegrationTests/*.swift'
  78. int_tests.requires_app_host = true
  79. int_tests.resources = 'FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist'
  80. end
  81. end