SDWebImage.podspec 1.48 KB
Pod::Spec.new do |s|
  s.name = 'SDWebImage'
  s.version = '1.0.6'
  s.platform = :ios, '8.0'
  s.license = 'MIT'
  s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.'
  s.homepage = "http://git.yoho.cn/ios/yh_sdwebimage"
  s.author = { "YOHO iOS" => "xiaojun.zhu@yoho.cn" }
  s.source = { :git => "http://git.yoho.cn/ios/yh_sdwebimage.git", :tag => s.version.to_s }

  s.description = 'This library provides a category for UIImageView with support for remote '      \
                  'images coming from the web. It provides an UIImageView category adding web '    \
                  'image and cache management to the Cocoa Touch framework, an asynchronous '      \
                  'image downloader, an asynchronous memory + disk image caching with automatic '  \
                  'cache expiration handling, a guarantee that the same URL won\'t be downloaded ' \
                  'several times, a guarantee that bogus URLs won\'t be retried again and again, ' \
                  'and performances!'

  s.requires_arc = true
  s.framework = 'ImageIO'
  
  s.default_subspec = 'Core'

  s.subspec 'Core' do |core|
    core.source_files = 'SDWebImage/{NS,SD,UI}*.{h,m}'
  end

  s.subspec 'MapKit' do |mk|
    mk.source_files = 'SDWebImage/MKAnnotationView+WebCache.*'
    mk.framework = 'MapKit'
    mk.dependency 'SDWebImage/Core'
  end

  s.ios.vendored_frameworks = 'Vendors/WebP.framework'
  s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'SD_WEBP=1' }
end