FirebaseFunctionsTestingSupport.podspec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFunctionsTestingSupport'
  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. This podspec is for internal testing only and should not be published.
  8. DESC
  9. s.homepage = 'https://developers.google.com/'
  10. s.license = { :type => 'Apache', :file => 'LICENSE' }
  11. s.authors = 'Google, Inc.'
  12. s.source = {
  13. :git => 'https://github.com/Firebase/firebase-ios-sdk.git',
  14. :tag => 'CocoaPods-' + s.version.to_s
  15. }
  16. ios_deployment_target = '10.0'
  17. osx_deployment_target = '10.12'
  18. tvos_deployment_target = '10.0'
  19. watchos_deployment_target = '6.0'
  20. s.ios.deployment_target = ios_deployment_target
  21. s.osx.deployment_target = osx_deployment_target
  22. s.tvos.deployment_target = tvos_deployment_target
  23. s.watchos.deployment_target = watchos_deployment_target
  24. s.cocoapods_version = '>= 1.4.0'
  25. s.prefix_header_file = false
  26. s.requires_arc = true
  27. base_dir = 'FirebaseTestingSupport/Functions/'
  28. s.source_files = [
  29. base_dir + 'Sources/**/*.{m,mm,h}',
  30. ]
  31. s.public_header_files = base_dir + '**/*.h'
  32. s.dependency 'FirebaseFunctions', '~> 8.0'
  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