DreamPiggy
18eda252d2
Change the default delegate method to allows optional cert in SSL verify, matches URLSession's behavior
2021-05-23 11:36:39 +08:00
DreamPiggy
b1ee90dca6
Change the default value for `shouldUseWeakMemoryCache` to NO. This feature may effect a little query performance, so it's not suitable to enable by default.
2021-05-21 17:04:06 +08:00
DreamPiggy
e58a872daa
Do a extra memory cache sync when weak cache feature enabled. This can avoid the deallocation from imageView during `sd_setImageWithURL:`
...
This actually fix current weak cache feature's main use case. Before the weak cache may not works as function
2021-05-21 16:59:37 +08:00
DreamPiggy
fd326e3d51
Merge pull request #3238 from dreampiggy/fix_image_from_cache_api_behavior
...
Fix imageFromCacheForKey with options and context behavior, matching the async version one.
2021-05-21 15:43:14 +08:00
DreamPiggy
63a3d0b996
Merge pull request #3237 from kinarobin/fix-wrong-memory-cost
...
Fix wrong memory cost in `_UIAnimatedImage`
2021-05-21 15:37:27 +08:00
DreamPiggy
e83b76946a
Update the test for sync version API as well
2021-05-21 15:13:07 +08:00
kinarobin
426830d55f
change to AWebP
2021-05-21 14:57:14 +08:00
DreamPiggy
04c07f983f
Fix imageFromCacheForKey with options and context behavior, matching the async version one.
...
Support `SDImageCacheDecodeFirstFrameOnly` and `SDImageCacheMatchAnimatedImageClass`
2021-05-21 14:28:16 +08:00
kinarobin
22cd94d08a
fix wrong memory cast in _UIAnimatedImage
2021-05-21 14:06:26 +08:00
DreamPiggy
2e07701e50
Merge pull request #3236 from dreampiggy/fix_warning
...
Fix the warning, enable `APPLICATION_EXTENSION_API_ONLY` for all framework target
2021-05-21 11:50:32 +08:00
DreamPiggy
46912090f9
Fix the warning, enable `APPLICATION_EXTENSION_API_ONLY` for all framework target
2021-05-21 11:50:12 +08:00
DreamPiggy
0b304a867d
Merge pull request #3227 from dreampiggy/feature_acceptable_status_code_content_type
...
Feature: allow user to custom acceptable status code and content type
2021-05-11 16:17:43 +08:00
DreamPiggy
f3d68c9cc2
Added `SDWebImageErrorDownloadResponseKey` userInfo for better error report
2021-05-07 16:40:10 +08:00
DreamPiggy
43219b0739
Added test case `test29AcceptableStatusCodeAndContentType`
2021-05-07 16:26:52 +08:00
DreamPiggy
df7d56373d
Added the feature to config the status code and content type checking logic, do not hard-coded 200-400
2021-05-07 16:26:38 +08:00
DreamPiggy
041377680b
Merge pull request #3223 from Huang-Libo/patch-2
...
Correct document in SDWebImageDownloader
2021-04-26 11:16:31 +08:00
Huang-Libo
e1d928a10d
Correct document in SDWebImageDownloader
2021-04-25 23:25:35 +08:00
DreamPiggy
76dd4b4911
Bumped version to 5.11.1
...
update CHANGELOG
2021-04-23 20:33:53 +08:00
DreamPiggy
a4199067ef
Merge pull request #3221 from dreampiggy/bugfix_original_cache_miss_continue_download
...
Fix the bug that when querying original cache miss, the download process will be skipped. This is not designed behavior.
2021-04-23 19:50:30 +08:00
DreamPiggy
896c5f62f7
Fix the bug that when querying original cache miss, the download process will be skipped. This is not designed behavior.
2021-04-23 12:43:27 +08:00
DreamPiggy
e88df1f819
Merge pull request #3219 from dreampiggy/behavior_transformer_store_query_default_disk
...
Change the .originalStoreCaheType and .originalQueryCacheType into .disk, Now we will store the full image data into disk and re-query the full image data by default
2021-04-23 12:43:02 +08:00
DreamPiggy
72daa08a04
Merge pull request #3220 from Huang-Libo/patch-1
...
Fix spelling error in SDWebImageDownloaderOperation
2021-04-23 12:26:32 +08:00
Huang-Libo
f9a8de5684
Fix spelling error in SDWebImageDownloaderOperation
...
tokent -> token
2021-04-23 11:34:34 +08:00
DreamPiggy
a9ef21bd80
Change the .originalStoreCaheType and .originalQueryCacheType into [.disk]. Now we will store the full image data into disk and re-query the full image data by default, which makes it easy for transformer to avoid re-downloading the full size image data.
2021-04-22 17:34:53 +08:00
DreamPiggy
05a459e55b
Merge pull request #3210 from dreampiggy/bugfix_will_terminate_clear_disk_cache
...
Change the willTerminate auto clean cache logic into sync version
2021-04-11 14:45:10 +08:00
DreamPiggy
51176c7b74
Added new disk cache config `shouldRemoveExpiredDataWhenTerminate`
2021-04-11 12:53:54 +08:00
DreamPiggy
8f34f98c61
Change the willTerminate auto clean cache logic into sync version
2021-04-11 11:30:51 +08:00
DreamPiggy
15e16e9e7f
Merge pull request #3205 from dreampiggy/bugfix_session_invalid
...
Ensure the invalid URLSeesion will receive the cancel callback and does not trigger the any exception from framework
2021-04-08 14:44:01 +08:00
DreamPiggy
d452afdb54
Ensure the invalid URLSeesion will receive the cancel callback and does not trigger the any exception from framework
2021-04-07 11:03:56 +08:00
DreamPiggy
3fcf40d12f
Merge pull request #3206 from dreampiggy/revert_imageio_terminate_decode_crash
...
Revert the "Don't encode/decode image when app will terminate"
2021-04-07 11:02:44 +08:00
DreamPiggy
bed1638b42
Revert the "Don't encode/decode image when app will terminate"
2021-04-06 18:21:16 +08:00
DreamPiggy
d1c75d8397
Hotfix for the wrong naming selector during gardening
2021-04-06 11:40:32 +08:00
DreamPiggy
9ffc546b8f
Bumped version to 5.11.0
...
update CHANGELOG
2021-04-01 21:18:11 +08:00
DreamPiggy
7c7f279b36
Code garden for terminate check
2021-04-01 21:10:26 +08:00
DreamPiggy
aa2e264ffb
Merge pull request #3149 from kinarobin/fix-ImageIO-encode/decode-crash
...
Don't encode/decode image when app will terminated
2021-04-01 20:36:59 +08:00
DreamPiggy
3632adced0
Merge pull request #3184 from dreampiggy/feature_original_image_cache
...
Added the new context option `SDWebImageContextOriginalImageCache`, which control the cache instance used for original full size image query/write when using transformer
2021-03-11 20:43:20 +08:00
DreamPiggy
d621667954
Code garden for the original cache key generation
2021-03-09 15:47:54 +08:00
DreamPiggy
140db1ca46
Fix the logic for choosing the cache instance when using transformer. The original cache should be used when query/store the original image; The transformed cache should be used when query/store transformed image.
...
Added test case `test16ThatTransformerUseDifferentCacheForOriginalAndTransformedImage`
2021-03-09 15:42:09 +08:00
DreamPiggy
ae2ca99465
Added the new context option `SDWebImageContextOriginalImageCache`, which control the cache instance used for original full size image query/write when using transformer
2021-03-09 14:51:55 +08:00
DreamPiggy
351e76b2b9
Update the demo to remove the usage of `SDWebImageRefreshCached`
2021-03-09 14:33:00 +08:00
DreamPiggy
ee1115f0bb
Merge pull request #3183 from dreampiggy/break_retain_during_download_decoding
...
Avoid the strong retain during download decoding, this can make the download opearation fast to destroy and reduce memory peak, especially in progressive decoding
2021-03-05 15:10:10 +08:00
DreamPiggy
30618ce37d
Avoid the strong retain during download decoding, this can make the download opearation fast to destroy and reduce memory peak, especially in progressive decoding
2021-03-05 10:51:00 +08:00
DreamPiggy
a521d0da77
Merge pull request #3182 from dreampiggy/performance_progressive_reuse_when_download_finished
...
Increase progressive decoding performance by using the progressive decoder's result instead of re-decoding the full image data
2021-03-05 10:43:32 +08:00
DreamPiggy
d277514cbe
Added `test28ProgressiveDownloadShouldUseSameCoder`
2021-03-04 21:09:22 +08:00
DreamPiggy
319a308995
Change to not mark the `is_incremental` when the progressive decoding `finished` is YES. This can avoid one extra decoding during progressive loading
2021-03-04 20:31:52 +08:00
DreamPiggy
2e7d526a69
Performance enhancement: Allows to use progressive decoding image to callback the completion when finished. Which can reduce the decoding pressure and animation loading delay
2021-03-04 18:46:29 +08:00
DreamPiggy
c82b7552b3
Merge pull request #3177 from Jackylee1992/patch-1
...
Update UIView+WebCache.m
2021-02-19 11:36:09 +08:00
jackylee
013223ca8e
Update UIView+WebCache.m
...
fix typo error from `callCompletedBlockClojure` to `callCompletedBlockClosure`
2021-02-13 23:56:56 +08:00
DreamPiggy
a6b6e44ead
Bumped version to 5.10.4
...
update CHANGELOG
2021-02-02 17:56:01 +08:00
DreamPiggy
f9b80167f4
Merge pull request #3167 from younata/no_data_copy_in_decoding
...
Don't unnecessarily copy image data in the Download Operation
2021-02-02 17:44:28 +08:00