FirebaseInAppMessaging.podspec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInAppMessaging'
  3. s.version = '0.24.0'
  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 => 'InAppMessaging-' + s.version.to_s
  15. }
  16. s.social_media_url = 'https://twitter.com/Firebase'
  17. s.ios.deployment_target = '10.0'
  18. s.cocoapods_version = '>= 1.4.0'
  19. s.prefix_header_file = false
  20. base_dir = "FirebaseInAppMessaging/"
  21. s.source_files = [
  22. base_dir + "Sources/**/*.[cmh]",
  23. 'Interop/Analytics/Public/*.h',
  24. 'FirebaseABTesting/Sources/Private/*.h',
  25. 'FirebaseCore/Sources/Private/*.h',
  26. 'FirebaseInstallations/Source/Library/Private/*.h',
  27. ]
  28. s.public_header_files = base_dir + 'Sources/Public/FirebaseInAppMessaging/*.h'
  29. s.private_header_files = base_dir + 'Sources/Private/**/*.h'
  30. s.resource_bundles = {
  31. 'InAppMessagingDisplayResources' => [
  32. base_dir + 'Resources/*.storyboard',
  33. base_dir + 'Resources/*.png'
  34. ]
  35. }
  36. s.pod_target_xcconfig = {
  37. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  38. '$(inherited) ' +
  39. 'FIRInAppMessaging_LIB_VERSION=' + String(s.version) + ' ' +
  40. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  41. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  42. }
  43. s.dependency 'FirebaseCore', '~> 6.10'
  44. s.dependency 'FirebaseInstallations', '~> 1.6'
  45. s.dependency 'FirebaseABTesting', '~> 4.2'
  46. s.dependency 'GoogleUtilities/Environment', '~> 6.7'
  47. s.dependency 'nanopb', '~> 1.30906.0'
  48. s.test_spec 'unit' do |unit_tests|
  49. unit_tests.source_files = 'FirebaseInAppMessaging/Tests/Unit/*.[mh]'
  50. unit_tests.resources = 'FirebaseInAppMessaging/Tests/Unit/*.txt'
  51. unit_tests.requires_app_host = true
  52. unit_tests.dependency 'OCMock'
  53. end
  54. end