Commit Graph

483 Commits

Author SHA1 Message Date
DreamPiggy e669dee3c3 Added test case for animationTransformer 2024-11-01 18:57:12 +08:00
Tim Johnsen 0cde1582d8
Update SDWebImageTestCache.m
Co-authored-by: DreamPiggy <lizhuoli1126@126.com>
2024-10-11 20:21:10 -07:00
Tim Johnsen dcd0c46b7f
Update SDWebImageTestCache.m
Co-authored-by: DreamPiggy <lizhuoli1126@126.com>
2024-10-11 20:21:03 -07:00
Tim Johnsen e524ca0310
Update default disk cleaning method to use content access date.
This is possibly controversial, but I suspect most clients of SDWebImage would prefer files purged based on their last time of use instead of the date when they were downloaded.
2024-10-09 10:13:17 -07:00
DreamPiggy 05e1840538 Behavior changes: change the default tint transformer to use `sourceIn` instead of `sourceAtop`
This matches the Apple UIKit's naming and behavior
2024-10-08 19:22:46 +08:00
DreamPiggy 7892f4ca20 Fix some CIFilter implementation 2024-10-08 17:40:50 +08:00
DreamPiggy 3c89a092cd Added the blend mode to transformer API as well
Update unit tests
2024-10-08 17:40:50 +08:00
DreamPiggy c8f74d2de0 Fix the test case on iOS 18.0 simulator 2024-10-08 17:39:50 +08:00
DreamPiggy d68b92db85 Update the test case 2024-08-23 10:23:09 +08:00
DreamPiggy d42cc279f4 Fix the issue that some URL which has percent-encoding with \0 will cause nil cache path
Use the more robust way to calculate cache path, still keep the exists behavior
2024-08-22 17:39:58 +08:00
DreamPiggy 95401e3cca Use the new way to detect JFIF, and do not apply EXIF orientation to workaround Apple's bug 2024-08-21 20:35:42 +08:00
DreamPiggy 0df663ca95 Update the test case 2024-08-07 14:47:19 +08:00
DreamPiggy ecedea2e06 Use the better way to detect lazy/non-lazy CGImage. Only do force decoding for lazy image
This effect the thumbnail decoding (which produce non-lazy CGImage, but accidentally been force decoded)
2024-08-02 17:35:35 +08:00
DreamPiggy 49a2bbaa7a Revert the test case url 2024-07-26 14:49:14 +08:00
DreamPiggy c3b5e5f034 Temp dsiable the test48CacheUseConcurrentIOQueue
Seems still buggy on GitHub CI action
2024-07-24 15:14:42 +08:00
DreamPiggy 368723f8ae Fix some random unit test failure 2024-07-24 14:54:20 +08:00
DreamPiggy 11271d14ce Use file url for some tests to avoid network issue 2024-07-23 16:51:25 +08:00
DreamPiggy ce406a2b2d Disable the heics animated encoding on macOS Virtualization only (still broken)
Rename this file extension to heics to match the standard
2024-07-23 15:48:32 +08:00
DreamPiggy f6771d8fcd Try to re-enable the HEIC encoding test and visionOS xctest 2024-07-23 14:41:04 +08:00
DreamPiggy bcbe72a77f Added test case about SVG image 2024-07-01 18:26:21 +08:00
DreamPiggy b2d6372254 Fix the unit test on macOS 2024-05-08 17:01:08 +08:00
DreamPiggy 11dcb29b4f Ignore the HEIC encoding unit test on GitHub CI environment
Seems they use VM solution and breaks Apple's ImageIO HEIC encoding
2024-05-07 18:50:33 +08:00
DreamPiggy 753649217a Added the new test case for fixed SDAnimatedImage behavior 2024-05-06 16:12:53 +08:00
ChengzhiHuang d5e3e7f7c5
Replace NSFileManager.enumeratorAtPath with enumeratorAtURL for performance and RAM saving (#3690)
* fix #3689

1. repalce @selector(enumeratorAtURL:) with @selector(enumeratorAtURL:)
2. replace ioQueueAttributes from DISPATCH_QUEUE_SERIAL to DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL >= iOS 10

* fix: remove NSDirectoryEnumerationProducesRelativePathURLs option

* feat: replace enumeratorAtPath:

* fix: update test44DiskCacheMigrationFromOldVersion

---------

Co-authored-by: huangchengzhi <huangchengzhi@bytedance.com>
2024-03-26 17:15:42 +08:00
DreamPiggy b156318507
Allows the transformer to preserve the UIImage metadata like image format (#3688)
* Allows the transformer to preserve the UIImage metadata like image format

This can make it by defaults to still use JPEG encoding for JPEG thumbnail image

* Update the test case for preserveImageMetadata

* Fix the `sd_isTransformed` metadata
2024-03-25 16:57:35 +08:00
DreamPiggy b557de276d Update test case function `SDAssertCGImagePixelFormatEqual` to avoid assert on iOS 17.0 2024-03-25 15:43:13 +08:00
aasdsjk 98d058a1ea
url is kind of NSString and shouldUseWeakMemoryCache is YES, APP will crash. (#3686)
* NSString will crash

* unit test

* unit test opt

---------

Co-authored-by: songjk <fusheng@douyu.tv>
2024-03-14 15:20:11 +08:00
DreamPiggy f761fc7e7b Fix the unit test `test31ThatMultipleRequestForSameURLFailedCallback` 2024-02-27 14:45:57 +08:00
DreamPiggy 12a7c99687 Update test case 2024-02-24 14:20:05 +08:00
DreamPiggy 2424848c92 Formally deprecate `sd_cancelCurrentImageLoad`, which cause misunderstanding on UIImageView category
Use `sd_cancelLatestImageLoad` instead
2024-02-24 14:18:46 +08:00
DreamPiggy 64d12968fd Remove the SDWebImageWebPCoder to its own repo 2024-02-24 12:43:48 +08:00
DreamPiggy c99b60eed0 Fix the unit test compile issue
Fix the webp unit test for visionOS
2024-02-23 18:39:24 +08:00
DreamPiggy da55e08994 Added test case about RGBA16 PNG 2024-02-23 16:24:37 +08:00
DreamPiggy c349d78ff9 Upgrade the test case because of simulator version upgrade 2024-02-13 15:16:22 +08:00
DreamPiggy aaad37213b Fix the wrong changes for tvOS unit tests 2024-02-13 13:12:02 +08:00
DreamPiggy 01de674a79 Fix some strange behavior in visionOS, all tests passed 2024-02-13 12:54:09 +08:00
DreamPiggy ef399a53f4 Added visionOS official unit tests
Since the KVOController/Expecta is no longer maintained, I have to copy the podspec and modify to add visionOS support
2024-02-13 11:53:26 +08:00
DreamPiggy 62e3491eb3 Added visionOS official Demo and update Podfile
Copy the code from SwiftUI repo currently, will merge these two repo in 6.x
2024-02-13 10:45:29 +08:00
DreamPiggy 8b836d565c Added the official visionOS CocoaPods podspec support 2024-02-13 10:10:24 +08:00
DreamPiggy b95b390f17 Update the unit test
Fix the `testUIViewCancelCurrentImageLoadWithTransition`
2024-01-10 16:17:41 +08:00
DreamPiggy a6cce6677b Update unit test
The `test15CancelQueryShouldCallbackOnceInSync` should use a better way to check
2024-01-10 14:35:29 +08:00
DreamPiggy 9ae93e5456 Update the test case for new behavior 2024-01-09 17:04:55 +08:00
DreamPiggy 5dec4049c1 Update the new test case for `testSDDisplayLink` 2023-11-29 17:46:43 +08:00
DreamPiggy 404d992c8f Update one failed test case during the 5.18 version changes 2023-11-16 18:46:15 +08:00
DreamPiggy 106a8d1a15 Use placehold.co to replace the down site via.placeholder.com
This only effect test cases
2023-11-16 18:37:04 +08:00
DreamPiggy 471ee9da1d Update the test case because of history wrong value 2023-11-16 17:59:08 +08:00
DreamPiggy 2fa1e1785a Fix the previous wrong changes of iOS 17 indexed PNG color workaround
Added test cases `test30ThatImageIOPNGPluginBuggyWorkaround`
2023-11-16 16:37:19 +08:00
DreamPiggy 56b4379984 Added test case for this down-orientation JFIF image file 2023-09-08 17:17:50 +08:00
DreamPiggy 44470a8e4e Added test cases for AvoidAutoCancelImage options 2023-09-01 16:10:50 +08:00
DreamPiggy 5ef6c83953
Merge pull request #3576 from dreampiggy/feature_set_image_state_api
Add better support for stateful view (UIButton) for image URL/progres s state management
2023-07-31 17:59:57 +08:00