FirebaseMLModelDownloader.podspec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseMLModelDownloader'
  3. s.version = '7.0.0'
  4. s.summary = 'Firebase ML Model Downloader'
  5. s.description = <<-DESC
  6. This is the new ML Model Downloader CocoaPod.
  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 => 'MLModelDownloader-' + s.version.to_s
  14. }
  15. s.social_media_url = 'https://twitter.com/Firebase'
  16. s.swift_version = '5.0'
  17. s.ios.deployment_target = '10.0'
  18. s.osx.deployment_target = '10.12'
  19. s.tvos.deployment_target = '10.0'
  20. s.watchos.deployment_target = '6.0'
  21. s.cocoapods_version = '>= 1.4.0'
  22. s.static_framework = true
  23. s.prefix_header_file = false
  24. s.source_files = [
  25. 'FirebaseMLModelDownloader/Sources/**/*.swift',
  26. ]
  27. s.framework = 'Foundation'
  28. s.dependency 'FirebaseCore', '~> 7.0'
  29. s.dependency 'FirebaseInstallations', '~> 7.0'
  30. s.pod_target_xcconfig = {
  31. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  32. 'GCC_PREPROCESSOR_DEFINITIONS' => 'FIRMLModelDownloader_VERSION=' + s.version.to_s,
  33. 'OTHER_CFLAGS' => '-fno-autolink',
  34. }
  35. s.test_spec 'unit' do |unit_tests|
  36. unit_tests.platforms = {:ios => '10.0', :osx => '10.12', :tvos => '10.0'}
  37. unit_tests.source_files = 'FirebaseMLModelDownloader/Tests/Unit/**/*.swift'
  38. unit_tests.requires_app_host = true
  39. end
  40. s.test_spec 'integration' do |int_tests|
  41. int_tests.platforms = {:ios => '10.0', :osx => '10.12', :tvos => '10.0'}
  42. int_tests.source_files = 'FirebaseMLModelDownloader/Tests/Integration/**/*.swift'
  43. int_tests.resources = 'FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist'
  44. int_tests.requires_app_host = true
  45. end
  46. end