Commit Graph

3660 Commits

Author SHA1 Message Date
DreamPiggy fbe79221b1
Added xcprivacy manifest to CocoaPods (#3649)
* Added xcprivacy manifest to CocoaPods

Using the resource bundle syntax

* Update the README

Added xcprivacy for CocoaPods
2023-12-08 20:06:55 +08:00
DreamPiggy 0383fd49fe Bumped version to 5.18.6
update CHANGELOG
2023-12-05 16:00:14 +08:00
DreamPiggy 9d3330dc52
Merge pull request #3644 from dreampiggy/bugfix/display_link_duration_promotion_vision
Use the new solution for CADisplayLink duration calculation and fix 90Hz/120Hz display (iPhone Pro or Vision Pro)
2023-11-29 18:55:49 +08:00
DreamPiggy e4243aa13b Ignore the availability warning 2023-11-29 17:52:23 +08:00
DreamPiggy 5dec4049c1 Update the new test case for `testSDDisplayLink` 2023-11-29 17:46:43 +08:00
DreamPiggy 40b3d7f438 Remove the unused legacy code for weak retain 2023-11-29 17:37:29 +08:00
DreamPiggy 112c74c1b9 Use the new solution for CADisplayLink duration calculation based on WWDC 10147
This visually fix visionOS (90Hz) animated image duration

We don't use Media Time because it's not correct when lag or VSync not callback in current runloop

Instead, we use the `next targetTimestamp - previous targetTimestamp` to get the actual time during callbacks
2023-11-29 17:16:39 +08:00
DreamPiggy 191b94cd54
Update the code comments 2023-11-17 00:14:34 +08:00
DreamPiggy 1b9a2e902c Bumped version to 5.18.5
update CHANGELOG
2023-11-16 18:59:03 +08:00
DreamPiggy 76a667ff0a
Merge pull request #3639 from dreampiggy/test/update_placeholder_url
[Unit test] Use placehold.co to replace the down site via.placeholder.com
2023-11-16 18:55:52 +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 3e31c3defe
Merge pull request #3637 from dreampiggy/bugfix/color_at_point
Fix the sd_colorAtPoint/sd_colorsWithRect return wrong value on pre-multiplied CGImage
2023-11-16 18:31:37 +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 9efacfed97 Fix the sd_colorAtPoint return wrong value on pre-multiplied CGImage
Should always un-multiplied the color to match CGColor/UIColor documentation
2023-11-16 16:37:19 +08:00
DreamPiggy 213be11357
Merge pull request #3634 from dreampiggy/bugfix/workaround_hacky_imageio_png_indexed_color
Introduce the hacky workaround for iOS 17 ImageIO indexed color png decode (Apple's bug)
2023-11-15 16:11:20 +08:00
DreamPiggy 526ec84183
Merge pull request #3636 from dreampiggy/bugfix/ios17_animatedimageview_render_issue_background_foreground
Fix the iOS 17 UIKit issue that UIImageView entering the background will reset CALayer's contents, which cause SDAnimatedImageView render issue (out-of-sync)
2023-11-15 16:07:36 +08:00
DreamPiggy a95075b54d Fix the iOS 17 UIKit behavior issue that UIImageView entering the background will reset CALayer's contents, which cause animated image render issue
Should use traitCollectionDidChange to refresh the CALayer's contents status to match current frame index
2023-11-14 16:12:50 +08:00
DreamPiggy d5dccaeeef Introduce the hacky workaround for iOS 17 ImageIO indexed color png code bug
This use the runtime detection instead of available check, more stable

When we detect the ImageIO is buggy, we will change the correct alpha info with non-premultiplied
2023-11-10 18:41:09 +08:00
DreamPiggy fd1950de05 Bumped version to 5.18.4
update CHANGELOG
2023-10-27 17:38:18 +08:00
DreamPiggy 7550aa759c
Merge pull request #3626 from dreampiggy/behavior/sdanimatedimage_jpeg_nonnil
SDAnimatedImage now supports static image like JPEG data
2023-10-21 18:52:25 +08:00
DreamPiggy 0a0f7e10f6 Update the behavior that SDAnimatedImage should pass the path and scale to coder as well
This metadata information is important for some edge cases decoding
2023-10-21 18:14:38 +08:00
DreamPiggy 42f35ca3f6 SDAnimatedImage now supports static image like JPEG data
This previously will only return nil for static image, so this may be a behavior changes
For example, SDAnimatedImageView loading url will cache the `SDAnimatedImage` instead of `UIImage`
2023-10-21 17:58:24 +08:00
DreamPiggy 1f06ef5007 Bumped version to 5.18.3
update CHANGELOG
2023-10-10 15:58:59 +08:00
DreamPiggy 9a24bfd425
Merge pull request #3620 from dreampiggy/feature/visionOS_15_1
Update the TargetConditionals check for visionOS on Xcode 15.1
2023-10-10 15:55:21 +08:00
DreamPiggy 970472e91c Update the TargetConditional check for visionOS for Xcode 15.1
VisionOS should be in the UIKit variant
2023-10-10 15:35:49 +08:00
DreamPiggy db07b09632
Merge pull request #3619 from dreampiggy/bugfix/try_remove_duplicate_filter_notification
Try to remove the unused NSNotification object filter, do filter by ourself
2023-10-10 15:03:22 +08:00
DreamPiggy cae43d7c88 Try to remove the unused NSNotification object filter, do filter by ourself 2023-10-10 14:46:23 +08:00
DreamPiggy 8b8e70f140
Merge pull request #3617 from dreampiggy/feat/convenient_encode_api_format_same
Update the convenient API for case when user encode the format the same as image format, provide better quick return
2023-10-10 14:31:05 +08:00
DreamPiggy 9078f316f7 Update the convenient API for UIImage (not SDAnimatedImage) to grab the current image format when no encode format provided
This match two classes behavior
2023-10-08 15:34:25 +08:00
DreamPiggy 4acf569171 Update the convenient API for case when user encode the format the same as image format, provide better quick return 2023-10-08 15:25:10 +08:00
DreamPiggy 936f1c7067 Bumped version to 5.18.2
update CHANGELOG
2023-09-21 23:22:35 +08:00
DreamPiggy 5b14f51ae1
Merge pull request #3607 from dreampiggy/bugfix/watchOS_displayLink
Fix the SDDisplayLink on watchOS does not behave like other platform
2023-09-21 23:04:12 +08:00
DreamPiggy 0b8e0f68d3 Fix the SDDisplayLink on watchOS does not behave like other platform
The first callback should be trigger in next runloop when calling `start`, not callback in sync
2023-09-21 22:57:22 +08:00
DreamPiggy 6e844d1967 Bumped version to 5.18.1
update CHANGELOG
2023-09-12 16:15:43 +08:00
DreamPiggy eee4b6b681
Merge pull request #3600 from dreampiggy/feature/xcprivacy
Added xcprivacy to framework target and SPM
2023-09-12 16:03:36 +08:00
DreamPiggy 9faa68dc15 Added xcprivacy to framework target and SPM
CocoaPods does not has this feature currently
2023-09-12 15:40:57 +08:00
DreamPiggy 27b5f0fa90
Merge pull request #3599 from dreampiggy/bugfix/warning_garden
Fix one warning because local variable shadows the variable outside of block
2023-09-12 14:40:24 +08:00
DreamPiggy 57ebdeafcf Fix one warning because local variable shadows the variable outside of block 2023-09-12 14:39:12 +08:00
DreamPiggy 345c935b8d
Merge pull request #3598 from dreampiggy/bugfix/xros_script
Added the visionOS support for "Build XCFramework" script target
2023-09-11 17:40:27 +08:00
DreamPiggy 50c8acefd7 Remove the script target output file, since it's dynamic based 2023-09-11 17:37:51 +08:00
DreamPiggy 99770368b5 Update the build scripts with destination-based instead of sdk-based
Which fix the issue on M1 Mac for x86_64 cross-build
2023-09-11 17:27:15 +08:00
DreamPiggy b231b2c55e Update the README.md about the installation guide 2023-09-11 15:31:49 +08:00
DreamPiggy 35089a0b9b Added the visionOS support for "Build XCFramework" script target
Move the scripts from xcproj into the actual Scripts folder
2023-09-11 15:31:49 +08:00
DreamPiggy f62ae2adf8
Merge pull request #3597 from dreampiggy/bugfix/jfif_orientation
Fix the JFIF image orientation bug (which does not use EXIF but JFIF metadata)
2023-09-11 14:48:27 +08:00
DreamPiggy 56b4379984 Added test case for this down-orientation JFIF image file 2023-09-08 17:17:50 +08:00
DreamPiggy 9ff08a1e66 A quick ugly fix for JFIF image orientation bug
We need the `kSDCGImageSourceSkipMetadata`, or the EXIF orientation translated by JFIF stills contains the non-Up side, and apply twice (by Apple's ImageIO and us)
2023-09-08 15:56:23 +08:00
DreamPiggy 36e484b317 Bumped version to 5.18.0
update CHANGELOG
2023-09-02 20:31:19 +08:00
DreamPiggy 9ccedcc09e Update xcodeproj to add support on MapKit for visionOS 2023-09-02 20:25:19 +08:00