Commit Graph

1499 Commits

Author SHA1 Message Date
DreamPiggy 3c80b0e2af update CHANGELOG
Update the changes for 4.3.0
2018-01-31 18:58:57 +08:00
DreamPiggy f1d46a0385
Merge pull request #2204 from dreampiggy/fix_downloader_headers_thread_safe
Use a lock to ensure headers mutable dictionary thread-safe
2018-01-31 16:31:05 +08:00
DreamPiggy 0065f88696 Update the readme
Move the Common Problems to wiki page and reorder the Get Started section
2018-01-31 11:40:51 +08:00
DreamPiggy 79ae7be719 Update the readme and issue template
Provide the wiki page and make issue template up to date
2018-01-31 11:00:09 +08:00
DreamPiggy 7f6dbd4e34 Use a lock to ensure headers mutable dictionary thread-safe 2018-01-31 03:22:10 +08:00
DreamPiggy 5b7f669bc1 Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check 2018-01-30 12:50:50 +08:00
DreamPiggy 37a062adc2
Merge pull request #2197 from dreampiggy/fix_urlcache_behavior_and_leak
Ensure all the session delegate completionHandler called
2018-01-30 10:51:51 +08:00
DreamPiggy 9080afdbac Use the correct way to specify cancel if the response status code is invalid. 2018-01-29 14:12:00 +08:00
DreamPiggy dd68f2f2d4 Ensure all the session delegate completionHandler called. Fix the leak when response error code below iOS 10 2018-01-29 14:12:00 +08:00
DreamPiggy a9a123fc74
Merge pull request #2196 from dreampiggy/fix_prefetcher_recursion_stackoverflow
Fix the issue that prefetcher will cause stack overflow is the input urls list is huge because of recursion function call
2018-01-28 19:30:48 +08:00
DreamPiggy 7e96b776ca Fix the issue that prefetcher will cause stack overflow is the input urls list is huge because of recursion function call 2018-01-28 19:06:46 +08:00
DreamPiggy 2052557e83 Update the comments for image transition 2018-01-27 15:20:02 +08:00
DreamPiggy 14d83fff5b Expose the associate FLAnimatedImage to user for advanced usage. Update the comments 2018-01-27 14:47:43 +08:00
DreamPiggy 1749666720 Revert that SDImageCacheQueryMemoryOnly because it's misunderstanding. Use `imageFromMemoryCacheForKey` instead 2018-01-26 23:42:51 +08:00
DreamPiggy 5308754e17 Update the comments and a little enhancement for FLAnimatedImageView Category 2018-01-26 21:41:58 +08:00
DreamPiggy 311c9e1a5e Use a dispatch semaphore to keep thread safe for downloader because it need the hold cancel and add procedure be thread-safe 2018-01-26 19:56:54 +08:00
DreamPiggy f2d9abbc4a
Merge pull request #2190 from dreampiggy/fix_check_io_queue
Add sync version API diskImageDataExistsWithKey and keep thread-safe. Add diskCacheWritingOptions
2018-01-26 18:34:52 +08:00
DreamPiggy 3a63a68c9d
Merge pull request #2183 from dreampiggy/feature_nsbutton_webcache
Feature nsbutton webcache
2018-01-26 18:03:58 +08:00
DreamPiggy bccdd2a766 Add the current image/alternateImage url for NSButton category. A little code refactoring 2018-01-26 14:28:50 +08:00
DreamPiggy 7996b0dac8 Update macOS demo to add a clear cache button using NSButton category 2018-01-25 16:42:25 +08:00
DreamPiggy 634e4f4522 Fix that reset alternateImage cancel the image load operation for NSButton+WebCache 2018-01-25 16:40:40 +08:00
DreamPiggy 8590388a6e Add WebCache category for NSButton on macOS 2018-01-25 16:40:40 +08:00
DreamPiggy 9be6ba496e A little enhancement to avoid block capture the heap object 2018-01-24 23:58:49 +08:00
DreamPiggy 496dad02c1
Merge pull request #2182 from dreampiggy/feature_image_transition
Feature image transition
2018-01-24 23:49:37 +08:00
DreamPiggy fbcfa2808d Use a internal method to avoid thread-safe issue for file manager. Remove that checkIOQueue and add sync version exist API 2018-01-24 23:30:53 +08:00
DreamPiggy 829d54ff03 Add the image transition argument for all UIView+WebCache, make this easy for user to do some fade transition. It also reuse the current setImageBlock and make it easy to customize 2018-01-23 11:58:22 +08:00
DreamPiggy 0faf0db5b0
Merge pull request #2186 from dreampiggy/feature_image_from_cache_only
Add a option SDWebImageFromCacheOnly to load the image from cache only and prevent network
2018-01-23 11:51:09 +08:00
DreamPiggy 8a034a403b Add protect to some Core Graphics methods 2018-01-21 23:43:48 +08:00
DreamPiggy 2e4266b7db Change all UIImage init method to alloc instead of autorelease to immediately release it after usage 2018-01-21 23:32:26 +08:00
DreamPiggy c95e139c7b Add a option SDWebImageFromCacheOnly to load the image from cache only and prevent network 2018-01-21 13:26:30 +08:00
DreamPiggy b758c97df4
Merge pull request #2184 from dreampiggy/fix_downloader_blocking_main_queue
Use a lock instead of barrier queue to avoid dispatch_sync blocking the main queue on race condition
2018-01-21 13:08:24 +08:00
DreamPiggy aac654b069 Update the test for custom operation interface 2018-01-21 11:11:46 +08:00
DreamPiggy 1d7238c671 Use synchronized instead of semaphore in SDWebImageDownloader to make it more easy to understand :) 2018-01-20 16:42:56 +08:00
DreamPiggy 1d82b12ba2 Use a lock instead of barrier queue to avoid dispatch_sync blocking the main queue on race condition 2018-01-20 15:16:01 +08:00
DreamPiggy 5946727d94
Merge pull request #2177 from dreampiggy/fix_running_operation_leak
Use the weak-strong dancing and the weak reference to manager instance to avoid the leak of runningOperations
2018-01-20 15:09:29 +08:00
DreamPiggy 4e5af52fd0 Remove the extra __block mark and the early weakOperation define 2018-01-20 15:03:31 +08:00
DreamPiggy 3b4dd0b184 Add a convenience method to allow cancel on downloadToken 2018-01-19 21:27:56 +08:00
DreamPiggy 9c7224fd50 Use the weak-strong dancing and the weak reference to manager instance to avoid the leak of runningOperations 2018-01-19 21:27:56 +08:00
DreamPiggy 0ad1ffa012
Merge pull request #2181 from dreampiggy/trick_code_fix_FLAnimatedImageView_fade
Use the associate object to store the FLAnimatedImage into memory cache, avoid blinking or UIView transaction. Tricky but may work
2018-01-19 20:53:00 +08:00
DreamPiggy c79155e442
Merge pull request #2174 from dreampiggy/fix_shared_url_cache_thread_safe
Use the @synchronized to access NSURLCache and try fix the potential thread-safe problem
2018-01-17 19:38:35 +08:00
DreamPiggy ccca6184d3
Merge pull request #2180 from dreampiggy/fix_cache_get_size_file_manager
Fix the getSize method which use the default file manager instead of current file manager
2018-01-17 19:35:57 +08:00
DreamPiggy 75ced4a907
Merge pull request #2175 from dreampiggy/deprecated_setImageWithPreviousCachedImageWithURL
Deprecate the sd_setImageWithPreviousCachedImageWithURL with the specify options to achieve this usage
2018-01-17 19:25:34 +08:00
DreamPiggy 6717be1346
Merge pull request #2178 from dreampiggy/fix_setAnimationImagesWithURLs_dealloc
Fix the issue that `setAnimationImagesWithURLs` weak reference may dealloc before the animated images was set
2018-01-17 15:25:43 +08:00
DreamPiggy 61670d3530 Use the associate object to store the FLAnimatedImage into memory cache, avoid blinking or UIView transaction. Tricky but may work 2018-01-17 11:45:34 +08:00
DreamPiggy e9412791bd Fix the getSize method which use the default file manager instead of current file manager 2018-01-16 23:21:26 +08:00
DreamPiggy 9048f3ba72
Merge pull request #2172 from dreampiggy/feature_add_nsprogress
Add a NSProgress property represent the image loading progress, this allow user add KVO on it for complicated logic
2018-01-16 12:34:54 +08:00
DreamPiggy 3f3a309fb4 Update the test and description to make it more clear 2018-01-16 11:34:56 +08:00
DreamPiggy 3d1d9f2506 Fix the issue that `setAnimationImagesWithURLs` weak reference may dealloc before the animated images was set 2018-01-15 20:19:43 +08:00
DreamPiggy 08bc07f82f Fix the strange file permissions issue 2018-01-15 19:57:24 +08:00
DreamPiggy 6c32cc48c8 Deprecate the sd_setImageWithPreviousCachedImageWithURL with the specify options to achieve this usage 2018-01-14 23:34:35 +08:00