FirebaseInAppMessaging.podspec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInAppMessaging'
  3. s.version = '8.1.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', :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 = '10.0'
  18. s.tvos.deployment_target = '10.0'
  19. s.cocoapods_version = '>= 1.4.0'
  20. s.prefix_header_file = false
  21. base_dir = "FirebaseInAppMessaging/"
  22. s.ios.source_files = [
  23. base_dir + "Sources/*.[cmh]",
  24. base_dir + "Sources/Analytics/**/*.[cmh]",
  25. base_dir + "Sources/Data/**/*.[cmh]",
  26. base_dir + "Sources/DefaultUI/**/*.[cmh]",
  27. base_dir + "Sources/DisplayTrigger/**/*.[cmh]",
  28. base_dir + "Sources/Flows/**/*.[cmh]",
  29. base_dir + "Sources/Private/**/*.[cmh]",
  30. base_dir + "Sources/Public/**/*.[cmh]",
  31. base_dir + "Sources/RenderingObjects/**/*.[cmh]",
  32. base_dir + "Sources/Runtime/**/*.[cmh]",
  33. base_dir + "Sources/Util/**/*.[cmh]",
  34. 'Interop/Analytics/Public/*.h',
  35. 'FirebaseABTesting/Sources/Private/*.h',
  36. 'FirebaseCore/Sources/Private/*.h',
  37. 'FirebaseInstallations/Source/Library/Private/*.h',
  38. ]
  39. s.tvos.source_files = [
  40. base_dir + "Sources/*.[cmh]",
  41. base_dir + "Sources/Analytics/**/*.[cmh]",
  42. base_dir + "Sources/Data/**/*.[cmh]",
  43. base_dir + "Sources/DisplayTrigger/**/*.[cmh]",
  44. base_dir + "Sources/Flows/**/*.[cmh]",
  45. base_dir + "Sources/Private/**/*.[cmh]",
  46. base_dir + "Sources/Public/**/*.[cmh]",
  47. base_dir + "Sources/RenderingObjects/**/*.[cmh]",
  48. base_dir + "Sources/Runtime/**/*.[cmh]",
  49. base_dir + "Sources/Util/**/*.[cmh]",
  50. 'Interop/Analytics/Public/*.h',
  51. 'FirebaseABTesting/Sources/Private/*.h',
  52. 'FirebaseCore/Sources/Private/*.h',
  53. 'FirebaseInstallations/Source/Library/Private/*.h',
  54. ]
  55. s.public_header_files = base_dir + 'Sources/Public/FirebaseInAppMessaging/*.h'
  56. s.ios.resource_bundles = {
  57. 'InAppMessagingDisplayResources' => [
  58. base_dir + 'iOS/Resources/*.{storyboard,png}',
  59. ]
  60. }
  61. s.pod_target_xcconfig = {
  62. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  63. '$(inherited) ' +
  64. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  65. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  66. }
  67. s.dependency 'FirebaseCore', '~> 8.0'
  68. s.dependency 'FirebaseInstallations', '~> 8.0'
  69. s.dependency 'FirebaseABTesting', '~> 8.0'
  70. s.dependency 'GoogleUtilities/Environment', '~> 7.4'
  71. s.dependency 'nanopb', '~> 2.30908.0'
  72. s.test_spec 'unit' do |unit_tests|
  73. unit_tests.scheme = { :code_coverage => true }
  74. unit_tests.source_files = 'FirebaseInAppMessaging/Tests/Unit/*.[mh]'
  75. unit_tests.resources = 'FirebaseInAppMessaging/Tests/Unit/*.txt'
  76. unit_tests.requires_app_host = true
  77. unit_tests.dependency 'OCMock'
  78. end
  79. end