FirebaseMessaging.podspec 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseMessaging'
  3. s.version = '4.4.1'
  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 => 'Messaging-' + s.version.to_s
  17. }
  18. s.social_media_url = 'https://twitter.com/Firebase'
  19. s.ios.deployment_target = '8.0'
  20. s.osx.deployment_target = '10.11'
  21. s.tvos.deployment_target = '10.0'
  22. s.watchos.deployment_target = '6.0'
  23. s.cocoapods_version = '>= 1.4.0'
  24. s.static_framework = true
  25. s.prefix_header_file = false
  26. base_dir = "FirebaseMessaging/"
  27. s.source_files = [
  28. base_dir + 'Sources/**/*.[mh]',
  29. 'Interop/Analytics/Public/*.h',
  30. 'FirebaseCore/Sources/Private/*.h',
  31. ]
  32. s.requires_arc = base_dir + 'Sources/*.m'
  33. s.public_header_files = base_dir + 'Sources/Public/*.h'
  34. s.library = 'sqlite3'
  35. s.pod_target_xcconfig = {
  36. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  37. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  38. 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
  39. 'FIRMessaging_LIB_VERSION=' + String(s.version),
  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 'FirebaseCore', '~> 6.8'
  48. s.dependency 'FirebaseInstanceID', '~> 4.3'
  49. s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.5'
  50. s.dependency 'GoogleUtilities/Reachability', '~> 6.5'
  51. s.dependency 'GoogleUtilities/Environment', '~> 6.5'
  52. s.dependency 'GoogleUtilities/UserDefaults', '~> 6.5'
  53. s.dependency 'Protobuf', '~> 3.9', '>= 3.9.2'
  54. s.test_spec 'unit' do |unit_tests|
  55. unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  56. unit_tests.source_files = 'FirebaseMessaging/Tests/UnitTests/*.{m,h,swift}'
  57. unit_tests.requires_app_host = true
  58. unit_tests.pod_target_xcconfig = {
  59. 'CLANG_ENABLE_OBJC_WEAK' => 'YES'
  60. }
  61. unit_tests.dependency 'OCMock'
  62. end
  63. s.test_spec 'integration' do |int_tests|
  64. int_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  65. int_tests.source_files = 'FirebaseMessaging/Tests/IntegrationTests/*.swift'
  66. int_tests.requires_app_host = true
  67. int_tests.resources = 'FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist'
  68. end
  69. end