FirebaseInAppMessaging.podspec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInAppMessaging'
  3. s.version = '12.6.0-beta'
  4. s.summary = 'Firebase In-App Messaging for iOS'
  5. s.description = <<-DESC
  6. FirebaseInAppMessaging is the headless component of Firebase In-App Messaging on iOS client side.
  7. See more product details at https://firebase.google.com/products/in-app-messaging/ about Firebase In-App Messaging.
  8. DESC
  9. s.homepage = 'https://firebase.google.com'
  10. s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
  11. s.authors = 'Google, Inc.'
  12. s.source = {
  13. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  14. :tag => 'CocoaPods-' + s.version.to_s
  15. }
  16. s.social_media_url = 'https://twitter.com/Firebase'
  17. s.ios.deployment_target = '15.0'
  18. s.tvos.deployment_target = '15.0'
  19. s.swift_version = '5.9'
  20. s.cocoapods_version = '>= 1.12.0'
  21. s.prefix_header_file = false
  22. base_dir = "FirebaseInAppMessaging/"
  23. s.ios.source_files = [
  24. base_dir + "Sources/*.[cmh]",
  25. base_dir + "Sources/Analytics/**/*.[cmh]",
  26. base_dir + "Sources/Data/**/*.[cmh]",
  27. base_dir + "Sources/DefaultUI/**/*.[cmh]",
  28. base_dir + "Sources/DisplayTrigger/**/*.[cmh]",
  29. base_dir + "Sources/Flows/**/*.[cmh]",
  30. base_dir + "Sources/Private/**/*.[cmh]",
  31. base_dir + "Sources/Public/**/*.[cmh]",
  32. base_dir + "Sources/RenderingObjects/**/*.[cmh]",
  33. base_dir + "Sources/Runtime/**/*.[cmh]",
  34. base_dir + "Sources/Util/**/*.[cmh]",
  35. base_dir + "Swift/Source/**/*.swift",
  36. 'Interop/Analytics/Public/*.h',
  37. 'FirebaseABTesting/Sources/Private/*.h',
  38. 'FirebaseCore/Extension/*.h',
  39. 'FirebaseInstallations/Source/Library/Private/*.h',
  40. ]
  41. s.tvos.source_files = [
  42. base_dir + "Sources/*.[cmh]",
  43. base_dir + "Sources/Analytics/**/*.[cmh]",
  44. base_dir + "Sources/Data/**/*.[cmh]",
  45. base_dir + "Sources/DisplayTrigger/**/*.[cmh]",
  46. base_dir + "Sources/Flows/**/*.[cmh]",
  47. base_dir + "Sources/Private/**/*.[cmh]",
  48. base_dir + "Sources/Public/**/*.[cmh]",
  49. base_dir + "Sources/RenderingObjects/**/*.[cmh]",
  50. base_dir + "Sources/Runtime/**/*.[cmh]",
  51. base_dir + "Sources/Util/**/*.[cmh]",
  52. base_dir + "Swift/Source/**/*.swift",
  53. 'Interop/Analytics/Public/*.h',
  54. 'FirebaseABTesting/Sources/Private/*.h',
  55. 'FirebaseCore/Extension/*.h',
  56. 'FirebaseInstallations/Source/Library/Private/*.h',
  57. ]
  58. s.public_header_files = base_dir + 'Sources/Public/FirebaseInAppMessaging/*.h'
  59. s.ios.resource_bundles = {
  60. 'InAppMessagingDisplayResources' => [
  61. base_dir + 'iOS/Resources/*.{storyboard,png}',
  62. ]
  63. }
  64. s.pod_target_xcconfig = {
  65. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  66. '$(inherited) ' +
  67. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  68. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  69. }
  70. s.framework = 'UIKit'
  71. s.dependency 'FirebaseCore', '~> 12.6.0'
  72. s.dependency 'FirebaseInstallations', '~> 12.6.0'
  73. s.dependency 'FirebaseABTesting', '~> 12.6.0'
  74. s.dependency 'GoogleUtilities/Environment', '~> 8.1'
  75. s.dependency 'GoogleUtilities/UserDefaults', '~> 8.1'
  76. s.dependency 'nanopb', '~> 3.30910.0'
  77. s.test_spec 'unit' do |unit_tests|
  78. unit_tests.scheme = { :code_coverage => true }
  79. unit_tests.source_files = [
  80. 'FirebaseInAppMessaging/Tests/Unit/*.[mh]',
  81. 'FirebaseInAppMessaging/Swift/Tests/Unit/*.swift'
  82. ]
  83. unit_tests.resources = 'FirebaseInAppMessaging/Tests/Unit/*.txt'
  84. unit_tests.requires_app_host = true
  85. unit_tests.dependency 'OCMock'
  86. end
  87. end