SDWebImage.podspec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Pod::Spec.new do |s|
  2. s.name = 'SDWebImage'
  3. s.version = '3.7.6'
  4. s.ios.deployment_target = '5.0'
  5. s.tvos.deployment_target = '9.0'
  6. s.license = 'MIT'
  7. s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.'
  8. s.homepage = 'https://github.com/rs/SDWebImage'
  9. s.author = { 'Olivier Poitrey' => 'rs@dailymotion.com' }
  10. s.source = { :git => 'https://github.com/rs/SDWebImage.git', :tag => s.version.to_s }
  11. s.description = 'This library provides a category for UIImageView with support for remote ' \
  12. 'images coming from the web. It provides an UIImageView category adding web ' \
  13. 'image and cache management to the Cocoa Touch framework, an asynchronous ' \
  14. 'image downloader, an asynchronous memory + disk image caching with automatic ' \
  15. 'cache expiration handling, a guarantee that the same URL won\'t be downloaded ' \
  16. 'several times, a guarantee that bogus URLs won\'t be retried again and again, ' \
  17. 'and performances!'
  18. s.requires_arc = true
  19. s.framework = 'ImageIO'
  20. s.default_subspec = 'Core'
  21. s.subspec 'Core' do |core|
  22. core.source_files = 'SDWebImage/{NS,SD,UI}*.{h,m}'
  23. core.exclude_files = 'SDWebImage/UIImage+WebP.{h,m}'
  24. core.tvos.exclude_files = 'SDWebImage/MKAnnotationView+WebCache.*'
  25. end
  26. s.subspec 'MapKit' do |mk|
  27. mk.ios.deployment_target = '5.0'
  28. mk.source_files = 'SDWebImage/MKAnnotationView+WebCache.*'
  29. mk.framework = 'MapKit'
  30. mk.dependency 'SDWebImage/Core'
  31. end
  32. s.subspec 'WebP' do |webp|
  33. webp.source_files = 'SDWebImage/UIImage+WebP.{h,m}'
  34. webp.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1' }
  35. webp.dependency 'SDWebImage/Core'
  36. webp.dependency 'libwebp'
  37. end
  38. end