FirebaseInstallations.podspec 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInstallations'
  3. s.version = '12.6.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-2.0', :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. ios_deployment_target = '15.0'
  17. osx_deployment_target = '10.15'
  18. tvos_deployment_target = '15.0'
  19. watchos_deployment_target = '7.0'
  20. s.swift_version = '5.9'
  21. s.ios.deployment_target = ios_deployment_target
  22. s.osx.deployment_target = osx_deployment_target
  23. s.tvos.deployment_target = tvos_deployment_target
  24. s.watchos.deployment_target = watchos_deployment_target
  25. s.cocoapods_version = '>= 1.12.0'
  26. s.prefix_header_file = false
  27. base_dir = "FirebaseInstallations/Source/"
  28. s.source_files = [
  29. base_dir + 'Library/**/*.[mh]',
  30. 'FirebaseCore/Extension/*.h',
  31. ]
  32. s.public_header_files = [
  33. base_dir + 'Library/Public/FirebaseInstallations/*.h',
  34. ]
  35. s.resource_bundles = {
  36. "#{s.module_name}_Privacy" => 'FirebaseInstallations/Source/Library/Resources/PrivacyInfo.xcprivacy'
  37. }
  38. s.framework = 'Security'
  39. s.dependency 'FirebaseCore', '~> 12.6.0'
  40. s.dependency 'PromisesObjC', '~> 2.4'
  41. s.dependency 'GoogleUtilities/Environment', '~> 8.1'
  42. s.dependency 'GoogleUtilities/UserDefaults', '~> 8.1'
  43. preprocessor_definitions = ''
  44. s.pod_target_xcconfig = {
  45. 'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
  46. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  47. }
  48. s.test_spec 'unit' do |unit_tests|
  49. unit_tests.scheme = { :code_coverage => true }
  50. unit_tests.platforms = {
  51. :ios => ios_deployment_target,
  52. :osx => '10.15',
  53. :tvos => tvos_deployment_target
  54. }
  55. unit_tests.source_files = base_dir + 'Tests/Unit/*.[mh]',
  56. base_dir + 'Tests/Utils/*.[mh]',
  57. base_dir + 'Tests/Unit/Swift/*'
  58. unit_tests.resources = base_dir + 'Tests/Fixture/**/*'
  59. unit_tests.requires_app_host = true
  60. unit_tests.dependency 'OCMock'
  61. if ENV['FIS_IID_MIGRATION_TESTING'] && ENV['FIS_IID_MIGRATION_TESTING'] == '1' then
  62. unit_tests.source_files += base_dir + 'Tests/Unit/IIDStoreTests/*.[mh]'
  63. end
  64. end
  65. s.test_spec 'integration' do |int_tests|
  66. int_tests.scheme = { :code_coverage => true }
  67. int_tests.platforms = {:ios => '10.0', :osx => '10.15', :tvos => '11.0'}
  68. int_tests.source_files = base_dir + 'Tests/Integration/**/*.[mh]'
  69. int_tests.resources = base_dir + 'Tests/Resources/**/*'
  70. if ENV['FIS_INTEGRATION_TESTS_REQUIRED'] && ENV['FIS_INTEGRATION_TESTS_REQUIRED'] == '1' then
  71. int_tests.pod_target_xcconfig = {
  72. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  73. 'FIR_INSTALLATIONS_INTEGRATION_TESTS_REQUIRED=1'
  74. }
  75. end
  76. int_tests.requires_app_host = true
  77. int_tests.dependency 'OCMock'
  78. end
  79. end