Commit Graph

1499 Commits

Author SHA1 Message Date
DreamPiggy 6797ed8be6 Update the SD_MAC define 2018-01-20 16:48:51 +08:00
DreamPiggy c90e100d55 Add missing nullability annotations 2018-01-20 16:48:51 +08:00
DreamPiggy c3a35ea247 Remove one deprecated property `shouldUseCredentialStorage` which not used for a long time 2018-01-20 16:48:51 +08:00
DreamPiggy 9c124435b6 Move the imageLoopCount and isAnimated into UIImage+WebCache file, removed the outdated methods 2018-01-20 16:48:51 +08:00
DreamPiggy 55d0822d20 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Remove the extra __block mark and the early weakOperation define
  Add a convenience method to allow cancel on downloadToken
  Use the weak-strong dancing and the weak reference to manager instance to avoid the leak of runningOperations
  Use the associate object to store the FLAnimatedImage into memory cache, avoid blinking or UIView transaction. Tricky but may work
2018-01-20 15:19:55 +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 e4c1ab86e7 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Fix the getSize method which use the default file manager instead of current file manager
  Deprecate the sd_setImageWithPreviousCachedImageWithURL with the specify options to achieve this usage
  Use the @synchronized to access NSURLCache to fix the potential thread-safe problem, also fix that we always use shared cache but not follow session's configuration
2018-01-18 15:15:34 +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 46a55ba6c7 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Update the test and description to make it more clear
  Fix the issue that `setAnimationImagesWithURLs` weak reference may dealloc before the animated images was set
  Fix the strange file permissions issue
  Add the SDImageCacheQueryMemoryOnly to specify query memory only
  Update the cache options name to make it more clear
  Added missing param in storeImage examples
  Add a NSProgress property represent the image loading progress, this allow user add KVO on it for complicated logic
2018-01-17 19:22:54 +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
DreamPiggy 44cddbfdbf Add the SDImageCacheQueryMemoryOnly to specify query memory only 2018-01-14 21:47:23 +08:00
DreamPiggy df1bb98ad6 Update the cache options name to make it more clear 2018-01-14 21:12:33 +08:00
DreamPiggy 44aa6d513f
Merge pull request #2173 from imryan/patch-1
Added missing param in storeImage examples
2018-01-14 18:12:19 +08:00
DreamPiggy 86d056f3c9 Use the @synchronized to access NSURLCache to fix the potential thread-safe problem, also fix that we always use shared cache but not follow session's configuration 2018-01-14 18:03:06 +08:00
DreamPiggy 80372a07d8
Merge pull request #2151 from dreampiggy/improve_disk_cache
Move that `maxMemoryCost` and `maxMemoryCountLimit` to config property. Add sync version API `diskImageDataExistsWithKey`
2018-01-14 14:06:18 +08:00
Ryan Cohen 9256b51cd8
Added missing param in storeImage examples 2018-01-13 18:23:41 -05:00
DreamPiggy 1ef45bace1 Add a NSProgress property represent the image loading progress, this allow user add KVO on it for complicated logic 2018-01-13 22:34:58 +08:00
DreamPiggy 030a3378da Move that `maxMemoryCost` and `maxMemoryCountLimit` to config property. Add sync version API `diskImageDataExistsWithKey` 2018-01-13 16:46:21 +08:00
DreamPiggy 85e389ee7a
Merge pull request #2164 from AaronZhang2015/master
fix 'nullable' to 'nonull'
2018-01-13 15:51:46 +08:00
DreamPiggy 0930442287 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Update the comments
  Add a query cache options to allow some specify logic.
2018-01-13 15:46:41 +08:00
DreamPiggy 09e90b5215
Merge pull request #2162 from dreampiggy/feature_query_cache_options
Feature query cache options
2018-01-13 15:39:18 +08:00
DreamPiggy 8554fec55f Update the comments 2018-01-13 15:37:58 +08:00
DreamPiggy 9420a20f3f Add a query cache options to allow some specify logic.
Currently is used for FLAnimatedImage
2018-01-12 18:34:09 +08:00
DreamPiggy 092e88e55f Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Update the spec file to define the dependency version for libwebp
  Bugfix for loopCount (#2155)
  Fix that 0 pixels error should be used when width OR height is zero but not AND
  Avoid user accidentally invalidates the session used in shared downloader
  Remove the extra memory warning notification for AutoPurgeCache
2018-01-12 17:35:24 +08:00
DreamPiggy 261a1dc2d6
Merge pull request #2169 from dreampiggy/fix_spec_libwebp_version
Update the spec file to define the dependency version for libwebp
2018-01-12 15:11:07 +08:00
DreamPiggy 4f4a33030f Update the spec file to define the dependency version for libwebp 2018-01-12 11:53:50 +08:00
DreamPiggy 5667d67fdc
Merge pull request #2153 from dreampiggy/improve_duplicate_memory_warning
Remove the extra memory warning notification for AutoPurgeCache
2018-01-11 16:59:07 +08:00
Ming Zhang 803210912d fix 'nullable' to 'nonull' 2018-01-10 19:39:48 +08:00
线程 a6c0570987 Bugfix for loopCount (#2155)
If a GIF image has no Netscape 2.0 loop extension, it is meant to play once and then stop
2018-01-09 21:59:30 +08:00
DreamPiggy 61703fced0
Merge pull request #2160 from dreampiggy/fix_zero_pixels
Fix that 0 pixels error should be used when width OR height is zero but not AND
2018-01-08 15:12:27 +08:00
DreamPiggy 31a87af0ab Fix that 0 pixels error should be used when width OR height is zero but not AND 2018-01-08 11:01:19 +08:00
DreamPiggy 8f456ff08c
Merge pull request #2154 from dreampiggy/improve_avoid_invalidate_shared_downloader
Avoid user accidentally invalidates the session used in shared downloader
2018-01-05 15:10:16 +08:00
DreamPiggy ff8d23dacf Avoid user accidentally invalidates the session used in shared downloader 2018-01-04 20:11:20 +08:00
DreamPiggy 7704c1e5b5 Remove the extra memory warning notification for AutoPurgeCache 2018-01-04 20:09:18 +08:00
DreamPiggy 7c14f41cb6
Merge pull request #2148 from dreampiggy/refactor_disk_cache
Refactor storeImageDataToDisk and support writing options
2018-01-04 15:58:20 +08:00
DreamPiggy 0d7c93d7b7 Add a `diskCacheWritingOptions` to allow user to specify disk data writing options 2018-01-03 15:21:09 +08:00
DreamPiggy db5307eb94 Change our imageCache `storeImageDataToDisk` to internal use IO-queue. And also change error from POSIX errno to Cocoa file error 2018-01-03 15:21:02 +08:00