FirebaseInstallations.podspec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInstallations'
  3. s.version = '9.0.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. ios_deployment_target = '9.0'
  17. osx_deployment_target = '10.12'
  18. tvos_deployment_target = '10.0'
  19. watchos_deployment_target = '6.0'
  20. s.swift_version = '5.3'
  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.4.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.framework = 'Security'
  36. s.dependency 'FirebaseCore', '~> 9.0'
  37. s.dependency 'PromisesObjC', '~> 2.0'
  38. s.dependency 'GoogleUtilities/Environment', '~> 7.7'
  39. s.dependency 'GoogleUtilities/UserDefaults', '~> 7.7'
  40. preprocessor_definitions = ''
  41. s.pod_target_xcconfig = {
  42. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  43. 'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
  44. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  45. }
  46. # Using environment variable because of the dependency on the unpublished
  47. # HeartbeatLoggingTestUtils.
  48. if ENV['POD_LIB_LINT_ONLY'] && ENV['POD_LIB_LINT_ONLY'] == '1' then
  49. s.test_spec 'unit' do |unit_tests|
  50. unit_tests.scheme = { :code_coverage => true }
  51. unit_tests.platforms = {
  52. :ios => ios_deployment_target,
  53. :osx => '10.15',
  54. :tvos => tvos_deployment_target
  55. }
  56. unit_tests.source_files = base_dir + 'Tests/Unit/*.[mh]',
  57. base_dir + 'Tests/Utils/*.[mh]',
  58. base_dir + 'Tests/Unit/Swift/*'
  59. unit_tests.resources = base_dir + 'Tests/Fixture/**/*'
  60. unit_tests.requires_app_host = true
  61. unit_tests.dependency 'OCMock'
  62. unit_tests.dependency 'HeartbeatLoggingTestUtils'
  63. if ENV['FIS_IID_MIGRATION_TESTING'] && ENV['FIS_IID_MIGRATION_TESTING'] == '1' then
  64. unit_tests.source_files += base_dir + 'Tests/Unit/IIDStoreTests/*.[mh]'
  65. end
  66. end
  67. s.test_spec 'integration' do |int_tests|
  68. int_tests.scheme = { :code_coverage => true }
  69. int_tests.platforms = {:ios => '9.0', :osx => '10.15', :tvos => '10.0'}
  70. int_tests.source_files = base_dir + 'Tests/Integration/**/*.[mh]'
  71. int_tests.resources = base_dir + 'Tests/Resources/**/*'
  72. if ENV['FIS_INTEGRATION_TESTS_REQUIRED'] && ENV['FIS_INTEGRATION_TESTS_REQUIRED'] == '1' then
  73. int_tests.pod_target_xcconfig = {
  74. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  75. 'FIR_INSTALLATIONS_INTEGRATION_TESTS_REQUIRED=1'
  76. }
  77. end
  78. int_tests.requires_app_host = true
  79. int_tests.dependency 'OCMock'
  80. int_tests.dependency 'HeartbeatLoggingTestUtils'
  81. end
  82. end
  83. end