FirebaseInstallations.podspec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInstallations'
  3. s.version = '7.7.0'
  4. s.summary = 'Firebase Installations'
  5. s.description = <<-DESC
  6. Firebase Installations.
  7. DESC
  8. s.homepage = 'https://firebase.google.com'
  9. s.license = { :type => 'Apache', :file => 'LICENSE' }
  10. s.authors = 'Google, Inc.'
  11. s.source = {
  12. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  13. :tag => 'CocoaPods-' + s.version.to_s
  14. }
  15. s.social_media_url = 'https://twitter.com/Firebase'
  16. s.ios.deployment_target = '9.0'
  17. s.osx.deployment_target = '10.12'
  18. s.tvos.deployment_target = '10.0'
  19. s.watchos.deployment_target = '6.0'
  20. s.cocoapods_version = '>= 1.4.0'
  21. s.prefix_header_file = false
  22. base_dir = "FirebaseInstallations/Source/"
  23. s.source_files = [
  24. base_dir + 'Library/**/*.[mh]',
  25. 'FirebaseCore/Sources/Private/*.h',
  26. ]
  27. s.public_header_files = [
  28. base_dir + 'Library/Public/FirebaseInstallations/*.h',
  29. ]
  30. s.framework = 'Security'
  31. s.dependency 'FirebaseCore', '~> 7.0'
  32. s.dependency 'PromisesObjC', '~> 1.2'
  33. s.dependency 'GoogleUtilities/Environment', '~> 7.0'
  34. s.dependency 'GoogleUtilities/UserDefaults', '~> 7.0'
  35. preprocessor_definitions = ''
  36. if ENV['FIS_ALLOWS_INCOMPATIBLE_IID_VERSION'] && ENV['FIS_ALLOWS_INCOMPATIBLE_IID_VERSION'] == '1' then
  37. # Disable FirebaseInstanceID compatibility assert to test IID migration.
  38. preprocessor_definitions += ' FIR_INSTALLATIONS_ALLOWS_INCOMPATIBLE_IID_VERSION=1'
  39. end
  40. s.pod_target_xcconfig = {
  41. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  42. 'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
  43. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  44. }
  45. s.test_spec 'unit' do |unit_tests|
  46. unit_tests.scheme = { :code_coverage => true }
  47. unit_tests.platforms = {:ios => '9.0', :osx => '10.12', :tvos => '10.0'}
  48. unit_tests.source_files = base_dir + 'Tests/Unit/*.[mh]',
  49. base_dir + 'Tests/Utils/*.[mh]'
  50. unit_tests.resources = base_dir + 'Tests/Fixture/**/*'
  51. unit_tests.requires_app_host = true
  52. unit_tests.dependency 'OCMock'
  53. if ENV['FIS_IID_MIGRATION_TESTING'] && ENV['FIS_IID_MIGRATION_TESTING'] == '1' then
  54. unit_tests.source_files += base_dir + 'Tests/Unit/IIDStoreTests/*.[mh]'
  55. unit_tests.dependency 'FirebaseInstanceID', '~> 4.2.0' # The version before FirebaseInstanceID updated to use FirebaseInstallations under the hood.
  56. end
  57. end
  58. s.test_spec 'integration' do |int_tests|
  59. int_tests.scheme = { :code_coverage => true }
  60. int_tests.platforms = {:ios => '9.0', :osx => '10.12', :tvos => '10.0'}
  61. int_tests.source_files = base_dir + 'Tests/Integration/**/*.[mh]'
  62. int_tests.resources = base_dir + 'Tests/Resources/**/*'
  63. if ENV['FIS_INTEGRATION_TESTS_REQUIRED'] && ENV['FIS_INTEGRATION_TESTS_REQUIRED'] == '1' then
  64. int_tests.pod_target_xcconfig = {
  65. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  66. 'FIR_INSTALLATIONS_INTEGRATION_TESTS_REQUIRED=1'
  67. }
  68. end
  69. int_tests.requires_app_host = true
  70. int_tests.dependency 'OCMock'
  71. end
  72. end