FirebaseInAppMessaging.podspec 2.3 KB

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