FirebaseInAppMessaging.podspec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInAppMessaging'
  3. s.version = '0.22.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. 'FirebaseCore/Sources/Private/*.h',
  26. 'FirebaseInstallations/Source/Library/Private/*.h',
  27. 'GoogleUtilities/Environment/Private/*.h',
  28. ]
  29. s.public_header_files = base_dir + 'Sources/Public/*.h'
  30. s.private_header_files = base_dir + 'Sources/Private/**/*.h'
  31. s.resource_bundles = {
  32. 'InAppMessagingDisplayResources' => [ base_dir + 'Resources/*.xib',
  33. base_dir + 'Resources/*.storyboard',
  34. base_dir + 'Resources/*.png']
  35. }
  36. s.pod_target_xcconfig = {
  37. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  38. 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
  39. '$(inherited) ' +
  40. 'FIRInAppMessaging_LIB_VERSION=' + String(s.version) + ' ' +
  41. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  42. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  43. }
  44. s.dependency 'FirebaseCore', '~> 6.8'
  45. s.dependency 'FirebaseInstallations', '~> 1.1'
  46. s.dependency 'FirebaseABTesting', '~> 4.0'
  47. s.dependency 'GoogleUtilities/Environment', '~> 6.7'
  48. s.dependency 'nanopb', '~> 1.30905.0'
  49. s.test_spec 'unit' do |unit_tests|
  50. unit_tests.source_files = 'FirebaseInAppMessaging/Tests/Unit/*.[mh]'
  51. unit_tests.resources = 'FirebaseInAppMessaging/Tests/Unit/*.txt'
  52. unit_tests.requires_app_host = true
  53. unit_tests.dependency 'OCMock'
  54. end
  55. end