2012-07-12 05:14:29 +08:00
|
|
|
Pod::Spec.new do |s|
|
2013-01-16 19:10:45 +08:00
|
|
|
s.name = 'SDWebImage'
|
2016-05-09 00:32:10 +08:00
|
|
|
s.version = '3.7.6'
|
2015-10-31 00:36:10 +08:00
|
|
|
s.ios.deployment_target = '5.0'
|
|
|
|
s.tvos.deployment_target = '9.0'
|
2013-01-16 19:10:45 +08:00
|
|
|
s.license = 'MIT'
|
|
|
|
s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.'
|
2012-07-12 05:14:29 +08:00
|
|
|
s.homepage = 'https://github.com/rs/SDWebImage'
|
2013-01-16 19:10:45 +08:00
|
|
|
s.author = { 'Olivier Poitrey' => 'rs@dailymotion.com' }
|
2013-11-23 09:12:30 +08:00
|
|
|
s.source = { :git => 'https://github.com/rs/SDWebImage.git', :tag => s.version.to_s }
|
2012-07-12 05:14:29 +08:00
|
|
|
|
2013-06-08 13:31:36 +08:00
|
|
|
s.description = 'This library provides a category for UIImageView with support for remote ' \
|
2013-01-16 19:10:45 +08:00
|
|
|
'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!'
|
2012-07-12 05:14:29 +08:00
|
|
|
|
2013-01-16 19:10:45 +08:00
|
|
|
s.requires_arc = true
|
2012-09-12 19:02:33 +08:00
|
|
|
s.framework = 'ImageIO'
|
2013-08-14 15:02:06 +08:00
|
|
|
|
|
|
|
s.default_subspec = 'Core'
|
2012-07-12 05:14:29 +08:00
|
|
|
|
2013-08-14 15:02:06 +08:00
|
|
|
s.subspec 'Core' do |core|
|
|
|
|
core.source_files = 'SDWebImage/{NS,SD,UI}*.{h,m}'
|
|
|
|
core.exclude_files = 'SDWebImage/UIImage+WebP.{h,m}'
|
2015-10-31 00:36:10 +08:00
|
|
|
core.tvos.exclude_files = 'SDWebImage/MKAnnotationView+WebCache.*'
|
2013-08-14 15:02:06 +08:00
|
|
|
end
|
2013-06-08 13:31:36 +08:00
|
|
|
|
2013-01-16 19:10:45 +08:00
|
|
|
s.subspec 'MapKit' do |mk|
|
2015-10-31 00:36:10 +08:00
|
|
|
mk.ios.deployment_target = '5.0'
|
2013-01-16 19:10:45 +08:00
|
|
|
mk.source_files = 'SDWebImage/MKAnnotationView+WebCache.*'
|
|
|
|
mk.framework = 'MapKit'
|
2013-08-14 15:57:20 +08:00
|
|
|
mk.dependency 'SDWebImage/Core'
|
2013-01-16 19:10:45 +08:00
|
|
|
end
|
2013-08-14 15:02:06 +08:00
|
|
|
|
|
|
|
s.subspec 'WebP' do |webp|
|
|
|
|
webp.source_files = 'SDWebImage/UIImage+WebP.{h,m}'
|
|
|
|
webp.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1' }
|
2013-08-14 15:57:20 +08:00
|
|
|
webp.dependency 'SDWebImage/Core'
|
2013-08-14 15:02:06 +08:00
|
|
|
webp.dependency 'libwebp'
|
|
|
|
end
|
2012-07-12 05:14:29 +08:00
|
|
|
end
|