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
1c0a13fb97
Fix line-break
2018-01-23 21:37:58 +08:00
DreamPiggy
8ea2322a00
Merge pull request #2189 from dreampiggy/refactor_context_option
...
Pass the context arg from the top level to the bottom level to allow specify logic in the future
2018-01-23 21:10:03 +08:00
DreamPiggy
a2f760c7be
Pass the context arg from the top level to the bottom level to allow specify logic in the future
2018-01-23 21:06:07 +08:00
DreamPiggy
6d64f740bb
Merge pull request #2188 from dreampiggy/refactor_context_option
...
Move the context option to a separate header to allow to be included without dependency
2018-01-23 14:47:20 +08:00
DreamPiggy
eedc0ad20c
Move the context option to a separate header to allow to be included without dependency, use String Enum to bridge for Swift
2018-01-23 13:48:47 +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
edd26fc1e6
Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
...
* 'master' of https://github.com/rs/SDWebImage :
Add protect to some Core Graphics methods
Change all UIImage init method to alloc instead of autorelease to immediately release it after usage
Add a option SDWebImageFromCacheOnly to load the image from cache only and prevent network
Update the test for custom operation interface
Use synchronized instead of semaphore in SDWebImageDownloader to make it more easy to understand :)
Use a lock instead of barrier queue to avoid dispatch_sync blocking the main queue on race condition
2018-01-23 11:51:49 +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
f4b61b909c
Merge pull request #2152 from dreampiggy/little_refactor_and_deprecate
...
Move the imageLoopCount and isAnimated into UIImage+WebCache file, removed the outdated methods
2018-01-23 11:48:05 +08:00
DreamPiggy
d4daca3c12
Change our SDScaledImageForKey to use scale on macOS
2018-01-22 21:54:12 +08:00
DreamPiggy
9e48da8a8a
Update and remove the deprecated method. Add some documents for un-documented methods
2018-01-22 21:54:12 +08:00
DreamPiggy
6f6f54e6c5
Mark one function which return value should follow the GET rule
2018-01-22 21:54:12 +08:00
DreamPiggy
82c44e275a
Update the test
2018-01-22 21:54:12 +08:00
DreamPiggy
dc5d7d189d
Rename UIImage+ForceDecode method with sd prefix to avoid name conflict
2018-01-22 21:54:12 +08:00
DreamPiggy
b6e108a5b1
Rename `NSImage+WebCache` to `NSImage+Addtions`. Add helper methods, use property based API, which more suitable for Swift
2018-01-22 21:54:12 +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
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
1d7238c671
Use synchronized instead of semaphore in SDWebImageDownloader to make it more easy to understand :)
2018-01-20 16:42:56 +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
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
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