FirebaseFirestoreTestingSupport.podspec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFirestoreTestingSupport'
  3. s.version = '1.0.0'
  4. s.summary = 'Firebase SDKs testing support types and utilities.'
  5. s.description = <<-DESC
  6. Type declarations and utilities needed for unit testing of the code dependent on Firebase SDKs
  7. DESC
  8. s.homepage = 'https://developers.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. ios_deployment_target = '10.0'
  16. osx_deployment_target = '10.12'
  17. tvos_deployment_target = '10.0'
  18. watchos_deployment_target = '6.0'
  19. s.ios.deployment_target = ios_deployment_target
  20. s.osx.deployment_target = osx_deployment_target
  21. s.tvos.deployment_target = tvos_deployment_target
  22. s.watchos.deployment_target = watchos_deployment_target
  23. s.cocoapods_version = '>= 1.4.0'
  24. s.prefix_header_file = false
  25. s.requires_arc = true
  26. base_dir = 'FirebaseTestingSupport/Firestore/'
  27. s.source_files = [
  28. base_dir + 'Sources/**/*.{m,mm,h}',
  29. 'Firestore/Source/API/*\+Internal.h'
  30. ]
  31. s.public_header_files = base_dir + '**/*.h'
  32. s.dependency 'FirebaseFirestore', '~> 7.7'
  33. s.pod_target_xcconfig = {
  34. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  35. 'OTHER_CFLAGS' => '-fno-autolink',
  36. 'HEADER_SEARCH_PATHS' =>
  37. '"${PODS_TARGET_SRCROOT}" '
  38. }
  39. s.test_spec 'unit' do |unit_tests|
  40. unit_tests.scheme = { :code_coverage => true }
  41. unit_tests.platforms = {:ios => ios_deployment_target, :osx => osx_deployment_target, :tvos => tvos_deployment_target}
  42. unit_tests.source_files = [
  43. base_dir + 'Tests/**/*.swift'
  44. ]
  45. end
  46. end