DreamPiggy
e13f503125
Merge pull request #2346 from dreampiggy/fix_operation_race_condition
...
Fix that the downloader operation may not call the completion block in race condition
2018-06-06 14:25:59 +08:00
DreamPiggy
48acb8e423
Fix that the downloader operation may not call the completion block in race condition, which the operation we get is finished but not been removed from the operation array.
2018-06-04 20:20:28 +08:00
DreamPiggy
5062a7653e
Bumped version to 4.4.0
...
update CHANGELOG
2018-05-31 17:39:02 +08:00
DreamPiggy
c6bb3971ab
Merge pull request #2343 from dreampiggy/feature_watchkit_setImage_4.x
...
Add the support for watchOS to use View Category method (sd_setImageWithURL:) on WKInterfaceImage
2018-05-31 17:01:15 +08:00
DreamPiggy
799ef18c06
Add the support for watchOS to use View Category method (sd_setImageWithURL:) on WKInterfaceImage
2018-05-31 11:32:52 +08:00
DreamPiggy
dfe010273a
Merge pull request #2323 from dreampiggy/feature_FLAnimatedImageVIewOptimizationLevel
...
Add optimalFrameCacheSize && predrawingEnabled options for FLAnimatedImage
2018-05-30 21:58:55 +08:00
DreamPiggy
6661575432
Merge pull request #2340 from hulizhen/optimization/replace-synchronized
...
Replace @synchronized with dispatch_semaphore_t in SDWebImageManager
2018-05-30 15:28:20 +08:00
Lizhen Hu
3ee1b60678
Revert replacement of @synchronized in SDWebImageCombinedOperation
2018-05-30 14:57:41 +08:00
Lizhen Hu
0b8207b1d2
Refactor in SDWebImageManager
2018-05-30 13:58:47 +08:00
Lizhen Hu
1aced8aa62
Remove unused header file
2018-05-28 23:26:09 +08:00
Lizhen Hu
09020fac87
Replace @synchronized lock with dispatch_semaphore lock for SDWebImageCombinedOperation
2018-05-28 23:14:12 +08:00
Lizhen Hu
7dc38751e9
Use non-recursive lock for runningOperations in SDWebImageManager
2018-05-28 23:10:40 +08:00
Lizhen Hu
a6e3907f26
Replace @synchronized with pthread_mutex_t & dispatch_semaphore_t in SDWebImageManager
2018-05-28 13:35:19 +08:00
DreamPiggy
76f7eacdd0
Merge pull request #2329 from zhongwuzw/fix-async
...
Minor optimize for dispatch_queue_async_safe
2018-05-25 13:20:09 +08:00
zhongwuzw
7515f06b44
Minor optimize for dispatch_queue_async_safe
2018-05-22 20:34:41 +08:00
DreamPiggy
e9527b393a
Add optimalFrameCacheSize && predrawingEnabled options for FLAnimatedImage. It makes users to set optimal frame cache size of FLAnimatedImage after image load.
2018-05-16 15:35:55 +08:00
Bogdan Poplauschi
55d65569dc
Merge pull request #2318 from dreampiggy/bugfix_WebP_encode_color_mode
...
Fix WebP Encoding only works for RGBA8888 CGImage but not other color mode
2018-05-11 13:14:43 +03:00
DreamPiggy
18ee2352b0
Fix WebP Encoding only works for RGBA8888 CGImage but not other color mode.
...
Detect the current CGImage color mode, covert the all other case to RGB888/RGBA8888 using vImage
2018-05-10 14:22:51 +08:00
Bogdan Poplauschi
12fe445498
Merge pull request #2315 from dreampiggy/improvement_image_transition_user_interaction
...
Add `UIViewAnimationOptionAllowUserInteraction` as default options for convenient image transition
2018-05-09 12:50:53 +03:00
DreamPiggy
e9c824c95f
Merge pull request #2314 from dreampiggy/fix_duplicated_force_decode_imageIO
...
Remove the duplicated process to force decode (draw on bitmap context) in Image/IO's progressive decoding.
2018-05-07 19:41:40 +08:00
DreamPiggy
7ae1c149ad
Merge pull request #2313 from dreampiggy/performance_image_orientation
...
Remove the extra calculation of image orientation for ImageIO coder
2018-05-07 18:17:06 +08:00
DreamPiggy
ec37a48ba3
Add `UIViewAnimationOptionAllowUserInteraction` as default options for convenient image transition
2018-05-04 16:48:52 +08:00
DreamPiggy
ab854e3575
Remove the duplicated process to force decode (draw on bitmap context) in Image/IO's progressive decoding.
2018-05-04 16:38:17 +08:00
DreamPiggy
c6fa6e31fb
Remove the extra calculation of image orientation for ImageIO coder
2018-05-04 16:30:39 +08:00
DreamPiggy
22e532c9e3
Fix function storeImageDataToDisk description
2018-04-24 21:32:26 +08:00
Bogdan Poplauschi
bfa9670c2d
Merge pull request #2301 from plokijuhhb/plokijuhhb-patch-2
...
Fix function storeImageDataToDisk description
2018-04-24 16:05:57 +03:00
plokijuhhb
745dc38986
Fix function storeImageDataToDisk description
...
New Pull Request Checklist
I have read and understood the CONTRIBUTING guide
I have read the Documentation
I have searched for a similar pull request in the project and found none
I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)
I have added the required tests to prove the fix/feature I am adding
I have updated the documentation (if necessary)
I have run the tests and they pass
I have run the lint and it passes (pod lib lint)
This merge request fixes / reffers to the following issues: ...
Pull Request Description
####Description
There are some problems in this description
Or using marco like SDWebImageCompat avoid deadlocks
#ifndef dispatch_queue_sync_safe
#define dispatch_queue_sync_safe(queue, block)\
if (strcmp(dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL), dispatch_queue_get_label(queue)) == 0) {\
block();\
} else {\
dispatch_sync(queue, block);\
}
#endif
2018-04-24 00:33:54 +08:00
Bogdan Poplauschi
8154d16bb2
Merge pull request #2274 from dreampiggy/fix_coders_array
...
Fix the thread-safe issue for coders manager.
2018-04-19 08:34:43 +03:00
Bogdan Poplauschi
96ec9719a0
Merge pull request #2281 from dreampiggy/feature_scale_download_cache_options
...
Add `SDImageCacheScaleDownLargeImages` to allow cache to scale down large images if need
2018-04-18 09:22:13 +03:00
DreamPiggy
0dfeebefeb
Add `SDImageCacheScaleDownLargeImages` to allow cache to scale down large images if need
2018-04-14 22:14:59 +08:00
DreamPiggy
dfe4a66424
Fix the thread-safe issue for coders manager. Use lock and immutable object to keep `addCoder`, `removeCoder` thread-safe.
2018-04-12 13:40:10 +08:00
DreamPiggy
e549e1abeb
Merge pull request #2272 from dreampiggy/fix_force_decode_alpha
...
Fix that force decode not works for alpha-channel images.
2018-04-11 16:40:21 +08:00
DreamPiggy
46e5b196f8
Fix the test about alpha images force decode
2018-04-11 16:10:41 +08:00
DreamPiggy
49cecfe34a
Fix that force decode not works for alpha-channel images. This should only exclude animated images. All other images should use the display alpha info based on whether contains alpha or not to force decode
2018-04-11 14:15:27 +08:00
DreamPiggy
0f36f97ae8
Fix the documentation issue about cacheSerializer
2018-04-01 21:54:10 +08:00
DreamPiggy
d6cb5adab8
Merge pull request #2260 from dreampiggy/fix_wrong_nsarray_generics
...
Fix the wrong declaration of NSArray generics
2018-03-24 14:32:49 +08:00
DreamPiggy
bb5bd74b81
Fix the wrong declaration of NSArray generics
2018-03-23 22:09:04 +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
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
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