FirebaseABTesting.podspec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseABTesting'
  3. s.version = '3.1.0'
  4. s.summary = 'Firebase ABTesting for iOS'
  5. s.description = <<-DESC
  6. A/B testing is a Firebase service that lets you run experiments across users of
  7. your iOS and Android apps. It lets you learn how well one or more changes to
  8. your app work with a smaller set of users before you roll out changes to all
  9. users. You can run experiments to find the most effective ways to use
  10. Firebase Cloud Messaging and Firebase Remote Config in your app.
  11. DESC
  12. s.homepage = 'https://firebase.google.com'
  13. s.license = { :type => 'Apache', :file => 'LICENSE' }
  14. s.authors = 'Google, Inc.'
  15. s.source = {
  16. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  17. :tag => 'ABTesting-' + s.version.to_s
  18. }
  19. s.social_media_url = 'https://twitter.com/Firebase'
  20. s.ios.deployment_target = '8.0'
  21. s.osx.deployment_target = '10.11'
  22. s.tvos.deployment_target = '10.0'
  23. s.cocoapods_version = '>= 1.4.0'
  24. s.static_framework = true
  25. s.prefix_header_file = false
  26. base_dir = "FirebaseABTesting/Sources/"
  27. s.source_files = base_dir + '**/*.[mh]'
  28. s.requires_arc = base_dir + '*.m'
  29. s.public_header_files = base_dir + 'Public/*.h', base_dir + 'Protos/developers/mobile/abt/proto/*.h'
  30. s.private_header_files = base_dir + 'Protos/developers/mobile/abt/proto/*.h'
  31. s.pod_target_xcconfig = {
  32. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  33. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  34. 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
  35. 'FIRABTesting_VERSION=' + String(s.version),
  36. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  37. }
  38. s.dependency 'FirebaseAnalyticsInterop', '~> 1.3'
  39. s.dependency 'FirebaseCore', '~> 6.1'
  40. s.dependency 'Protobuf', '~> 3.8'
  41. s.test_spec 'unit' do |unit_tests|
  42. unit_tests.source_files = 'FirebaseABTesting/Tests/Unit/*.[mh]'
  43. unit_tests.requires_app_host = true
  44. unit_tests.dependency 'OCMock'
  45. end
  46. end