Commit Graph

1624 Commits

Author SHA1 Message Date
DreamPiggy 464d725368 Adopt the transformer to cache & manager. Use a new context option SDWebImageContextCustomTransformer to bind the transformer
Drop old way of delegate method for transformer. Add two new delegate methods to allow advanced use case after we remove that.
2018-03-17 21:18:19 +08:00
DreamPiggy b4ea87f6c5 Add image transformer protocol and class. Add UIImage+Transformer category including common image geometry, tinting, blur effect processor. 2018-03-17 21:18:19 +08:00
DreamPiggy 5ff999f3d1 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Bumped version to 4.3.3
  Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager

# Conflicts:
#	SDWebImage/SDWebImageManager.h
2018-03-13 00:04:35 +08:00
DreamPiggy dc5c974b89 Bumped version to 4.3.3
update CHANGELOG
2018-03-12 23:06:02 +08:00
DreamPiggy 9ca9fa3d96
Merge pull request #2245 from dreampiggy/feature_cache_serializer
Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager
2018-03-12 22:57:34 +08:00
DreamPiggy 5e1093615c Merge branch 'refactor_api_style' into 5.x
* refactor_api_style:
  Update the comments for `operationClass`
2018-03-11 19:14:43 +08:00
DreamPiggy 96990ab9e7 Update the comments for `operationClass` 2018-03-11 19:12:03 +08:00
DreamPiggy 4aa48267a1
Merge pull request #2250 from dreampiggy/refactor_api_style
Refactor api style
2018-03-11 18:44:02 +08:00
DreamPiggy c9dfe39e36 Change all sharedInstance from method to class property 2018-03-11 16:08:33 +08:00
DreamPiggy e0ad0711da Mark two set method in SDWebImageDownloader as property 2018-03-11 15:53:18 +08:00
DreamPiggy a6fc140f36
Merge pull request #2191 from dreampiggy/refactor_prefetcher
Refactor the implementation of SDWebImagePrefetcher
2018-03-09 19:12:00 +08:00
DreamPiggy 6f40adbaa0 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Add a delegate method to control the custom logic when blocking the failed url
  Clarify the block comment in SDWebImageManager
  Enable CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF

# Conflicts:
#	SDWebImage/SDImageCache.m
2018-03-09 16:52:46 +08:00
DreamPiggy 91e4118b6e
Merge pull request #2246 from dreampiggy/feature_failed_url_delegate
Add a delegate method to control the custom logic when blocking the failed url
2018-03-09 16:42:08 +08:00
DreamPiggy f364962004 Add a delegate method to control the custom logic when blocking the failed url 2018-03-08 12:45:12 +08:00
DreamPiggy 51024a34f7 Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager 2018-03-08 12:13:52 +08:00
DreamPiggy 92cb7cd8fc
Merge pull request #2242 from sberrevoets/master
Enable CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
2018-03-08 10:46:38 +08:00
DreamPiggy 2aa7aefa2e
Merge pull request #2244 from wuwm/master
Clarify the block comment in SDWebImageManager
2018-03-08 10:46:08 +08:00
Weiming Wu 09639a8795 Clarify the block comment in SDWebImageManager 2018-03-07 18:09:48 -08:00
Scott Berrevoets 3ceb8308eb Enable CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
This enables the CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning on all
targets. #2225 fixed a number of these, but a new one crept back in so
this fixes that issue as well.
2018-03-07 14:40:53 -08:00
DreamPiggy 3ba2fd8e6a Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Bumped version to 4.3.2
  Follow Apple's doc, add NSOperation only after all configuration done.
  Update the comments
  Fix that iOS 8 NSURLSessionTaskPriorityHigh symbol not defined in Foundation framework and cause crash
2018-02-28 12:54:43 +08:00
DreamPiggy 5147ae5c89 Bumped version to 4.3.2
update CHANGELOG
2018-02-28 12:05:42 +08:00
DreamPiggy 48dd190835
Merge pull request #2232 from dreampiggy/improvement_add_operation
Follow Apple's doc, add NSOperation only after all configuration done.
2018-02-28 11:42:42 +08:00
DreamPiggy 6318776427
Merge pull request #2231 from dreampiggy/fix_iOS8_priority_symbol_crash
Fix that iOS 8 NSURLSessionTaskPriorityHigh symbol not defined in Foundation framework and cause crash
2018-02-28 02:18:27 +08:00
DreamPiggy 776ce2b85e Follow Apple's doc, add NSOperation only after all configuration done. 2018-02-28 01:11:20 +08:00
DreamPiggy a2eb8958ab Update the comments 2018-02-28 00:04:56 +08:00
DreamPiggy 49acbdf9a9 Fix that iOS 8 NSURLSessionTaskPriorityHigh symbol not defined in Foundation framework and cause crash 2018-02-27 23:50:41 +08:00
DreamPiggy a54f41204d Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Bumped version to 4.3.1
  update CHANGELOG
  Create a subclass of NSCache using a weak cache. Only remove the cache when memory warning and sync back the alive instance from weak cache into cache.

# Conflicts:
#	SDWebImage/SDImageCache.m
2018-02-26 12:58:22 +08:00
DreamPiggy 71caeb82e4 Bumped version to 4.3.1 2018-02-25 22:53:33 +08:00
DreamPiggy 8ec529521c update CHANGELOG
Update the changes for 4.3.1
2018-02-25 22:50:50 +08:00
DreamPiggy 37e93a1e7c
Merge pull request #2228 from dreampiggy/improvement_weak_cache
Create a subclass of NSCache using a weak cache.
2018-02-25 11:47:01 +08:00
DreamPiggy 216dfebc4a Create a subclass of NSCache using a weak cache. Only remove the cache when memory warning and sync back the alive instance from weak cache into cache. 2018-02-23 23:34:55 +08:00
DreamPiggy 69bc9cbd2c Update the prefetcher test to ensure that prefetch different urls works and the delegate methods work 2018-02-22 13:38:39 +08:00
DreamPiggy b831eff316 Refactor the implementation of SDWebImagePrefetcher. Now prefetcher do not cancel previous request and it separate different prefetching process. When you call prefetchURLs for different url lists, you can get callback for different completion block 2018-02-22 13:38:39 +08:00
DreamPiggy 4557278cb5 Ignore the unguarded availability warning for indicator 2018-02-21 19:06:24 +08:00
DreamPiggy e7e3caae72 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning
  Disable travis-ci email notification
  Fix prefetcher test to first clear the disk cache, and manager test to only fulfill the finished one
  Improve the travis-ci to not clean the build for dynamic framework to speed up the demo build
  Create a subclass of NSBitmapImageRep to fix the GIF frame duration issue on macOS
  Use lock instead of barrier queue to keep callbacks block thread-safe
  Decode the image in the operation level's queue instead of URLSession delegate queue. Because URLSession delegate queue is a barrier queue and shared between different operations
  Expose the read write to FLAnimatedImage associate to the UIImage to allow advanced feature like placeholder
  Fix that SDImageCacheQueryDataWhenInMemory should response cacheType to memory cache when the in-memory cache hit (#2218)
  Update the docs
  Improvement download operation for priority and some protect (#2208)
  Update the readme about macOS minimum deployment target version
  Fix the macOS wrong minimum deployment target version to 10.9. And also fix the warning on Xcode 9 by enable more warning options

# Conflicts:
#	SDWebImage.podspec
#	SDWebImage.xcodeproj/project.pbxproj
#	SDWebImage/SDImageCache.m
#	SDWebImage/SDWebImageDownloaderOperation.m
#	SDWebImage/SDWebImageFrame.h
2018-02-21 18:59:03 +08:00
DreamPiggy 1986669d49
Merge pull request #2199 from dreampiggy/performance_decode_in_operation_queue
Decode the image in the operation level's queue instead of URLSession delegate queue
2018-02-21 16:07:48 +08:00
DreamPiggy efdeca4f99
Merge pull request #2225 from dreampiggy/fix_block_implicit_retain_self
Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning
2018-02-21 15:51:50 +08:00
DreamPiggy e11ac90387
Merge pull request #2223 from dreampiggy/improvement_macOS_gif_duration
Create a subclass of NSBitmapImageRep to fix the GIF frame duration issue on macOS
2018-02-21 15:45:23 +08:00
DreamPiggy ad02e3eaae Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning 2018-02-21 15:30:37 +08:00
DreamPiggy 47b77b7448 Disable travis-ci email notification 2018-02-20 21:18:14 +08:00
DreamPiggy 9c3928a9db Fix prefetcher test to first clear the disk cache, and manager test to only fulfill the finished one 2018-02-20 21:18:08 +08:00
DreamPiggy 7a737acd85 Improve the travis-ci to not clean the build for dynamic framework to speed up the demo build 2018-02-20 21:17:57 +08:00
DreamPiggy 0fa6e88fa1 Disable travis-ci email notification 2018-02-20 20:59:16 +08:00
DreamPiggy 90632d0abc Fix prefetcher test to first clear the disk cache, and manager test to only fulfill the finished one 2018-02-20 20:58:39 +08:00
DreamPiggy 835495a051 Improve the travis-ci to not clean the build for dynamic framework to speed up the demo build 2018-02-20 11:41:21 +08:00
DreamPiggy 57e56d0154 Fix the test because one header file not available on iOS. Tests header search path is different from main project 2018-02-20 02:38:14 +08:00
DreamPiggy 9d78dccac7 Add tests scheme for macOS. Because we now support cross-platform, some implementation is different from UIKit & AppKit. So we also need test 2018-02-20 00:49:25 +08:00
DreamPiggy da807416b0 Merge branch 'refactor_api_style' into 5.x
* refactor_api_style:
  Use property instead of method for UIButton/NSButton current url.
2018-02-19 20:48:03 +08:00
DreamPiggy 150affd201 Add new SDCategoriesTests for any other WebCache category tests 2018-02-19 20:38:55 +08:00
DreamPiggy 1f27d3c15f Rename SDCategoriesTests to SDWebCacheCategoriesTests to make it focus on view category, import KVOController instead of build-in KVO for test 2018-02-19 20:19:14 +08:00