FirebaseInAppMessaging.podspec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInAppMessaging'
  3. s.version = '10.3.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 = '11.0'
  18. s.tvos.deployment_target = '12.0'
  19. s.swift_version = '5.3'
  20. s.cocoapods_version = '>= 1.4.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. 'Interop/Analytics/Public/*.h',
  36. 'FirebaseABTesting/Sources/Private/*.h',
  37. 'FirebaseCore/Extension/*.h',
  38. 'FirebaseInstallations/Source/Library/Private/*.h',
  39. ]
  40. s.tvos.source_files = [
  41. base_dir + "Sources/*.[cmh]",
  42. base_dir + "Sources/Analytics/**/*.[cmh]",
  43. base_dir + "Sources/Data/**/*.[cmh]",
  44. base_dir + "Sources/DisplayTrigger/**/*.[cmh]",
  45. base_dir + "Sources/Flows/**/*.[cmh]",
  46. base_dir + "Sources/Private/**/*.[cmh]",
  47. base_dir + "Sources/Public/**/*.[cmh]",
  48. base_dir + "Sources/RenderingObjects/**/*.[cmh]",
  49. base_dir + "Sources/Runtime/**/*.[cmh]",
  50. base_dir + "Sources/Util/**/*.[cmh]",
  51. 'Interop/Analytics/Public/*.h',
  52. 'FirebaseABTesting/Sources/Private/*.h',
  53. 'FirebaseCore/Extension/*.h',
  54. 'FirebaseInstallations/Source/Library/Private/*.h',
  55. ]
  56. s.public_header_files = base_dir + 'Sources/Public/FirebaseInAppMessaging/*.h'
  57. s.ios.resource_bundles = {
  58. 'InAppMessagingDisplayResources' => [
  59. base_dir + 'iOS/Resources/*.{storyboard,png}',
  60. ]
  61. }
  62. s.pod_target_xcconfig = {
  63. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  64. '$(inherited) ' +
  65. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  66. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  67. }
  68. s.framework = 'UIKit'
  69. s.dependency 'FirebaseCore', '~> 10.0'
  70. s.dependency 'FirebaseInstallations', '~> 10.0'
  71. s.dependency 'FirebaseABTesting', '~> 10.0'
  72. s.dependency 'GoogleUtilities/Environment', '~> 7.8'
  73. s.dependency 'nanopb', '>= 2.30908.0', '< 2.30910.0'
  74. s.test_spec 'unit' do |unit_tests|
  75. unit_tests.scheme = { :code_coverage => true }
  76. unit_tests.source_files = 'FirebaseInAppMessaging/Tests/Unit/*.[mh]'
  77. unit_tests.resources = 'FirebaseInAppMessaging/Tests/Unit/*.txt'
  78. unit_tests.requires_app_host = true
  79. unit_tests.dependency 'OCMock'
  80. end
  81. end