mirror of
https://github.com/SDWebImage/SDWebImage.git
synced 2026-04-07 19:27:40 +00:00
af282c1d5e
* 'master' of https://github.com/rs/SDWebImage: Bumped version to 4.3.0 update CHANGELOG Update the readme Update the readme and issue template Use a lock to ensure headers mutable dictionary thread-safe Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check Use the correct way to specify cancel if the response status code is invalid. Ensure all the session delegate completionHandler called. Fix the leak when response error code below iOS 10 Fix the issue that prefetcher will cause stack overflow is the input urls list is huge because of recursion function call Update the comments for image transition Expose the associate FLAnimatedImage to user for advanced usage. Update the comments
68 lines
2.6 KiB
Ruby
68 lines
2.6 KiB
Ruby
Pod::Spec.new do |s|
|
|
s.name = 'SDWebImage'
|
|
s.version = '4.3.0'
|
|
|
|
s.osx.deployment_target = '10.10'
|
|
s.ios.deployment_target = '8.0'
|
|
s.tvos.deployment_target = '9.0'
|
|
s.watchos.deployment_target = '2.0'
|
|
|
|
s.license = 'MIT'
|
|
s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.'
|
|
s.homepage = 'https://github.com/rs/SDWebImage'
|
|
s.author = { 'Olivier Poitrey' => 'rs@dailymotion.com' }
|
|
s.source = { :git => 'https://github.com/rs/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}'
|
|
core.exclude_files = 'SDWebImage/UIImage+WebP.{h,m}', 'SDWebImage/SDWebImageWebPCoder.{h,m}'
|
|
core.tvos.exclude_files = 'SDWebImage/MKAnnotationView+WebCache.*'
|
|
end
|
|
|
|
s.subspec 'MapKit' do |mk|
|
|
mk.osx.deployment_target = '10.10'
|
|
mk.ios.deployment_target = '8.0'
|
|
mk.tvos.deployment_target = '9.0'
|
|
mk.source_files = 'SDWebImage/MKAnnotationView+WebCache.*'
|
|
mk.framework = 'MapKit'
|
|
mk.dependency 'SDWebImage/Core'
|
|
end
|
|
|
|
s.subspec 'GIF' do |gif|
|
|
gif.ios.deployment_target = '8.0'
|
|
gif.source_files = 'SDWebImage/FLAnimatedImage/*.{h,m}'
|
|
gif.dependency 'SDWebImage/Core'
|
|
gif.dependency 'FLAnimatedImage', '~> 1.0'
|
|
gif.xcconfig = {
|
|
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/FLAnimatedImage/FLAnimatedImage'
|
|
}
|
|
end
|
|
|
|
s.subspec 'WebP' do |webp|
|
|
webp.source_files = 'SDWebImage/UIImage+WebP.{h,m}', 'SDWebImage/SDWebImageWebPCoder.{h,m}'
|
|
webp.xcconfig = {
|
|
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1',
|
|
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
|
|
}
|
|
webp.watchos.xcconfig = {
|
|
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1 WEBP_USE_INTRINSICS=1',
|
|
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
|
|
}
|
|
webp.dependency 'SDWebImage/Core'
|
|
webp.dependency 'libwebp', '~> 0.5'
|
|
end
|
|
end
|