SDWebImage.podspec 2.5 KB

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