Commit Graph

2954 Commits

Author SHA1 Message Date
DreamPiggy 374b3f7981
Merge pull request #2971 from dreampiggy/fix_framework_version_symbol_link_error
Fix the issue for Carthage/SwiftPM framework version symbols, this should match the framework name SDWebImage, or will get a link error when used
2020-04-03 21:00:26 +08:00
DreamPiggy d4782871e0 Fix the issue for Carthage/SwiftPM framework version symbols, this should match the framework name SDWebImage, or will get a link error when used 2020-04-03 20:05:28 +08:00
DreamPiggy 897e38c1b6
Merge pull request #2966 from dreampiggy/bugfix_refactory_thumbnail_cache_key
Refactory the current thumbnail && transformer about cache key. Developer should have the API to calcualte the cache key from thumbnail or transformer, not hard-coded.
2020-04-03 16:30:39 +08:00
DreamPiggy 8c2141ecda Added the API to query disk image with options and context, this is needed if you have animated image/transformer/thumbnail usage 2020-04-03 11:25:47 +08:00
DreamPiggy dfc8fe27d9 Refactory to simplify the code to calculate the original cache key, pass null to disable this. 2020-04-02 20:15:22 +08:00
DreamPiggy 543b5c95d4 Fix the test case about the original cache key calculation rule 2020-04-02 20:15:22 +08:00
DreamPiggy 1dc70b8430 Refactory the current thumbnail && transformer about cache key. Developer should have the API to calcualte the cache key from thumbnail or transformer, not hard-coded. 2020-04-02 20:15:22 +08:00
DreamPiggy 51dee05acf
Merge pull request #2968 from dreampiggy/feature_query_cache_type
Added new query cache type support, including the SDImageCache API and context option
2020-04-02 16:55:56 +08:00
DreamPiggy ce4eced4d4 Added the query cache type cases as well, update some documentation 2020-04-02 16:15:10 +08:00
DreamPiggy 067174b1fd Added the test case about using the custom cache and loader with context option to manager, full pipeline testing 2020-04-02 12:49:15 +08:00
DreamPiggy d4da82e9c3 Update the test cases about the custom ImageCache protocol 2020-04-02 12:18:12 +08:00
DreamPiggy ae1f6b9b8c Revert the removal to the old SDImageCache protocol API, should keep API with to use .all cache type, until next major version 2020-04-02 11:41:17 +08:00
DreamPiggy 5d45bb9301
Merge pull request #2967 from huangboju/master
Simplify the xattr helper method's code with modern Objective-C syntax
2020-04-02 11:19:10 +08:00
huangboju 45be39f4a1 Update SDFileAttributeHelper.m 2020-04-02 10:15:12 +08:00
DreamPiggy de153b0a32 Added the new Async API for disk data query, to avoid user to dispatch their own global queu (not IO queue), solve the IO safe issue 2020-04-01 17:16:33 +08:00
DreamPiggy 7f540a6296 Fix the test cases for cacheType arg 2020-04-01 17:16:33 +08:00
DreamPiggy fbe76bc436 Added new query cache type support, including the SDImageCache API and context option 2020-04-01 17:16:33 +08:00
huangboju a7606eb5e2 simplify code 2020-04-01 14:38:22 +08:00
DreamPiggy 0335b96114
Merge pull request #2962 from rain2540/patch-1
Update README.md
2020-03-25 14:40:30 +08:00
rain2540 ef6aebf9ae
Update README.md 2020-03-25 14:16:19 +08:00
DreamPiggy 2dcf1b6599 Bumped version to 5.6.1
Update the CHANGELOG
2020-03-13 20:49:15 +08:00
DreamPiggy ab2be2373f
Merge pull request #2483 from dreampiggy/fix_progressive_coder_queue
Keep the progressive decoding process only exist one per image download. Cancel the unused progressive decoding when full pixel data is available.
2020-03-13 11:43:39 +08:00
DreamPiggy 0f2818a6c1
Merge pull request #2959 from dreampiggy/little_private_header_garden
Fix the NotificationCenter does not remove the observer and little private header garden
2020-03-11 14:51:09 +08:00
DreamPiggy 8f9174a952 Coding Style fix 2020-03-11 12:19:10 +08:00
DreamPiggy 13d0e739fb Update the coderQueue QoS based on SDWebImageDownloaderLowPriority && SDWebImageDownloaderHighPriority 2020-03-11 11:54:10 +08:00
DreamPiggy 3d1280315b Keep the progressive decoding process only exist one per image download. Cancel the unused progressive decoding when full pixel data is available. 2020-03-11 11:46:03 +08:00
DreamPiggy c975288eb4 Update the readme again with the SwiftPM support on codecs 2020-03-09 20:22:53 +08:00
DreamPiggy b080a4c5a2 Update the readme again about the coder plugins's framework and Animated Image 2020-03-09 20:14:45 +08:00
DreamPiggy 4b0c4c7d8c Update the readme about Lottie animation coder, describe the coder's base codec as well. 2020-03-09 20:05:33 +08:00
DreamPiggy aa7cc070cc Bumped version to 5.6.0
Update the CHANGELOG
2020-03-05 18:48:43 +08:00
DreamPiggy bd33f4179d Supresss the deprecation warning when min deployment target version set to iOS 13+ or macCatalyst 2020-03-05 18:44:50 +08:00
DreamPiggy b54cdcc4bb Change the deprecatation into the soft deprecation, which still works but will be removed in SDWebImage 6.0.0 2020-03-05 17:55:39 +08:00
DreamPiggy c4a5f63463
Merge pull request #2955 from dreampiggy/feature_context_option_cache_loader_coder
Feature add context option for cache, loader and coder, deprecated SDWebImageContextCustomManager
2020-03-05 17:42:52 +08:00
DreamPiggy cf79d1c3ae Revert the changes to check `SDWebImageRetryFailed` before adding the black list. This is the previous version behavior. 2020-03-05 17:00:04 +08:00
DreamPiggy 8736d98f85 Fix the compatible with Xcode 11.0~Xcode 11.3 on SwiftPM, the `exclude` arg does not treat the source code in the publicHeadersPath. 2020-03-04 12:52:02 +08:00
DreamPiggy 2abb8d0628 Formal deprecate the SDWebImageContextCustomManager context option 2020-03-04 12:25:59 +08:00
DreamPiggy f0388739b6 Add the new context option, including the cache, loader and coder. They can be used to use custom cache/loader in a more convenient way, instead of creating dummy SDWebImageManager 2020-03-04 12:18:29 +08:00
DreamPiggy 412269368e Fix the SwiftPM Package.swift declaration for Xcode 11.4-Beta 3 and old versions 2020-03-04 12:17:24 +08:00
DreamPiggy b9bcbad5a6
Merge pull request #2953 from dreampiggy/behavior_handle_image_foramt_when_no_image_data
Add a better check to handle the cases when call `storeImage` without  imageData
2020-03-02 15:19:51 +08:00
DreamPiggy f415e51508 Update the test case, because previouslly we have no test case about the storeImage behavior when imageData is nil 2020-03-02 14:52:50 +08:00
DreamPiggy cc8e80ff84 Try to fix the test case `test11ThatCancelAllDownloadWorks` to make it stable 2020-03-02 14:52:50 +08:00
DreamPiggy d88b7d81db Update the test case with Case 3: UIAnimatedImage without sd_imageFormat should use GIF not APNG 2020-03-02 14:52:50 +08:00
DreamPiggy 6f8d83b2f2 Add another logic. to check UIAnimatedImage when there are no image format to detect, this should use GIF to encode 2020-03-02 14:52:50 +08:00
DreamPiggy 12bdd57f31 Added the test case `test42StoreCacheWithImageAndFormatWithoutImageData` to ensure this behavior 2020-03-02 14:52:50 +08:00
DreamPiggy 3df399508e Add a better check to handle the cases when call `storeImage` without imageData. Firstly check SDAnimatedImage, then check sd_imageFormat. 2020-03-02 14:52:50 +08:00
Kinarobin f4548bba5c
Merge pull request #2954 from dreampiggy/fix_rare_case_cancel_double_callback
Fix the rare case when call `SDWebImageDownloaderOperation.cancel`, the completion block may callback twice
2020-03-02 14:50:21 +08:00
DreamPiggy 692f01b84b Fix the rare case when call `SDWebImageDownloaderOperation.cancel`, the completion block will callback twice 2020-03-02 13:06:09 +08:00
DreamPiggy eea85faaa5 Update the readme with SDWebImageLottiePlugin 2020-03-01 15:44:06 +08:00
DreamPiggy f1eee6c627
Merge pull request #2948 from dreampiggy/fix_error_description
Complete all the SDWebImage error code with the localized description, make it easy for debugging
2020-02-27 21:29:26 +08:00
DreamPiggy f607e909bc Fix the SDWebImageDownloadStopNotification does not get removed on dealloc 2020-02-27 16:31:54 +08:00