SDWebImage.podspec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Pod::Spec.new do |s|
  2. s.name = 'SDWebImage'
  3. s.version = '5.0.0-beta'
  4. s.osx.deployment_target = '10.10'
  5. s.ios.deployment_target = '8.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/rs/SDWebImage'
  11. s.author = { 'Olivier Poitrey' => 'rs@dailymotion.com' }
  12. s.source = { :git => 'https://github.com/rs/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.module_map = 'WebImage/SDWebImage.modulemap'
  23. s.default_subspec = 'Core'
  24. s.subspec 'Core' do |core|
  25. core.source_files = 'SDWebImage/*.{h,m}', 'WebImage/SDWebImage.h'
  26. core.exclude_files = 'SDWebImage/MapKit/*.{h,m}', 'SDWebImage/WebP/*.{h,m}'
  27. end
  28. s.subspec 'MapKit' do |mk|
  29. mk.osx.deployment_target = '10.10'
  30. mk.ios.deployment_target = '8.0'
  31. mk.tvos.deployment_target = '9.2'
  32. mk.source_files = 'SDWebImage/MapKit/*.{h,m}'
  33. mk.framework = 'MapKit'
  34. mk.dependency 'SDWebImage/Core'
  35. end
  36. s.subspec 'WebP' do |webp|
  37. webp.source_files = 'SDWebImage/WebP/*.{h,m}'
  38. webp.xcconfig = {
  39. 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1',
  40. 'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
  41. }
  42. webp.watchos.xcconfig = {
  43. 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1 WEBP_USE_INTRINSICS=1',
  44. 'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
  45. }
  46. webp.dependency 'SDWebImage/Core'
  47. webp.dependency 'libwebp', '~> 0.5'
  48. end
  49. end