Commit Graph

2644 Commits

Author SHA1 Message Date
DreamPiggy 69d163fc37 Using one global function to ensure we always sync all the UIImage category assocaited object status correctly inside our framework 2019-12-03 21:21:07 +08:00
DreamPiggy 936d04f726 Fix the build issue on SDWebImage Static library target 2019-12-03 20:42:46 +08:00
DreamPiggy d6068191d7 Merge branch '5.3.x' 2019-12-03 20:05:19 +08:00
DreamPiggy 1f801b44ef Bumped version to 5.3.3
Update the CHANGELOG
2019-12-03 19:40:36 +08:00
Ben Cherry 9f6422b506 Support using NSCache delegate with SDMemoryCache default implementation 2019-12-03 19:30:22 +08:00
DreamPiggy 0139a8004e
Merge pull request #2899 from bcherry/nscache_delegate
Support using NSCache delegate with SDMemoryCache default implementation
2019-12-02 20:36:47 +08:00
DreamPiggy 96bb7b753e
Merge pull request #2900 from dreampiggy/feature_wait_store_cache
Add `SDWebImageWaitStoreCache`, which wait for all the async disk cache written finished and then callback, useful for advanced user who want to touch the cache right in completion block
2019-12-02 20:34:16 +08:00
DreamPiggy e37d07bda8 Add `SDWebImageWaitStoreCache`, which wait for all the async disk cache written finished and then callback, useful for advanced user who want to touch the cache right in completion block 2019-11-29 15:02:16 +08:00
DreamPiggy 6d7a68e07e
Merge pull request #2898 from dreampiggy/feature_extended_metadata_disk_cache
Allows advanced user to read/write extended metadata associated with image data from disk cache
2019-11-29 14:58:43 +08:00
DreamPiggy 5c1351a2fd Added `test47DiskCacheExtendedData` test case 2019-11-28 21:02:26 +08:00
DreamPiggy 5f2a9695d8 Add the test case for SDFileAttributeHelper, fix the issue that associated object is lost 2019-11-28 19:49:51 +08:00
Ben Cherry dd2c5263c8 Support using NSCache delegate with SDMemoryCache default implementation 2019-11-26 10:22:35 -08:00
DreamPiggy 9aa4ac1ca7 Rename the NSFileManager+ExtendedAttributes into the SDFileAttributeHelper, because it does not have any reply on NSFileManager API 2019-11-25 21:53:12 +08:00
DreamPiggy 1df1d6a3ce Using the new NSKeyedArchive method on iOS 11+, use try catch on the old fireware to protect runtime crash 2019-11-25 20:10:35 +08:00
DreamPiggy 9f470954c4 Change the id<NSCoding> into id<NSObject, NSCoding>, to support directlly usage like isKindOfClass 2019-11-25 17:05:27 +08:00
DreamPiggy 46b0c4bae8 Use the NSCoding object instead of `NSData`, make it possible to directlly get the extended data from memory cache without unarhive by user. 2019-11-25 15:43:31 +08:00
DreamPiggy 7c8d3225c8 Rename the the extended data to bind it into the UIImage object, which make it compatible for memory cache 2019-11-24 01:33:08 +08:00
DreamPiggy 892a7ad892 Add the feature to allows advanced user to provided extended data associarted with image data, used for scale factor saving, rich link metadata saving, etc 2019-11-23 18:50:39 +08:00
DreamPiggy 74526bdde4 Bumped version to 5.3.2
Update the CHANGELOG
2019-11-22 16:22:42 +08:00
DreamPiggy d1be404b63 Remove the untracked DS_Store file 2019-11-22 16:16:20 +08:00
DreamPiggy 2e4107e21e
Merge pull request #2895 from ZXIOU/fixAnimatedImageBugs
Fix animated image playback bugs
2019-11-22 14:23:37 +08:00
zxiou dd8ea8f7fb delete IDEWorkspaceChecks 2019-11-22 11:49:57 +08:00
zxiou d5da5dbef7 delete useless files 2019-11-21 19:32:11 +08:00
zxiou fe0e42afc2 fix the core render of SDAnimatedImagePlayer and fix assignment animationRepeatCount does not work
Signed-off-by: zxiou <zhangxu6@xiaomi.com>
2019-11-21 19:17:44 +08:00
DreamPiggy 7adc385b7d Bumped version to 5.3.1
Update the CHANGELOG
2019-11-09 15:17:33 +08:00
DreamPiggy 92d173e221
Merge pull request #2888 from dreampiggy/bugfix_animated_player_when_invisible
Fix the case even when Animated Image View is not visible, user calll startAnimating can still do animation
2019-11-09 14:53:38 +08:00
DreamPiggy 983dd59e4f Add one test case for this behavior: `test14AnimatedImageViewStopPlayingWhenHidden` 2019-11-09 13:48:27 +08:00
DreamPiggy 29027a693a Update the test case for animated image view format test 2019-11-09 03:10:18 +08:00
DreamPiggy eef82411c4 Add a double check on SDAnimatedImageView's startAnimating, don't actually do animation when not visible 2019-11-08 22:34:47 +08:00
DreamPiggy b75c227433 Do not cause the display link to fire before user calling `startPlaying` method 2019-11-08 22:23:50 +08:00
DreamPiggy 48909c2a74 Bumped version to 5.3.0
Update the CHANGELOG
2019-11-06 21:56:41 +08:00
DreamPiggy 387944bbc1
Merge pull request #2886 from dreampiggy/feature_runloop_mac
Support the runloop mode control for macOS.  Which can be useful when user want to pause animation when drag the mouse, or presenting modal window
2019-11-06 20:19:22 +08:00
DreamPiggy ed9696f65b SDDisplayLink on macOS, if runloopMode is nil (remove all), don't callback at all, match iOS/tvOS/watchOS behavior. 2019-11-06 14:32:08 +08:00
DreamPiggy 323e038aaf Support the runloop mode control for macOS. Which can be useful when user want to pause animation when drag the mouse, or open the Save/Open modal window 2019-11-06 14:32:08 +08:00
DreamPiggy 253a5eb7f2
Merge pull request #2885 from dreampiggy/feature_animated_player_rate
Feature supports to control the AnimatedImage View/Player 's play rate
2019-11-06 14:27:13 +08:00
DreamPiggy 867da45caf Rename playRate to playbackRate, match the Apple API naming 2019-11-06 01:18:49 +08:00
DreamPiggy 4e157a84f9 Check playRate in advance to avoid querying to frame duration 2019-11-06 01:00:16 +08:00
DreamPiggy 25e96717d6 Remove the cocoapods spec source to get benefit from 1.8.0+ CDN source 2019-11-06 00:55:05 +08:00
DreamPiggy a6e515208b Add animated image playback rate config. Allows user to control the animation speed 2019-11-05 23:11:53 +08:00
DreamPiggy f7821b8285
Merge pull request #2882 from dreampiggy/refactory_animated_player_phase2
Refactory AnimatedImageView with player backend, supports more rendering target like WatchKit/SwiftUI
2019-11-05 21:23:09 +08:00
DreamPiggy aa3d2225db Update the example with toggle animation button 2019-11-05 20:50:13 +08:00
DreamPiggy 64b4c24535 Code indent garden 2019-11-05 11:36:00 +08:00
DreamPiggy 2c723aa2a3 Add protect code again for animated player 2019-11-05 11:30:18 +08:00
DreamPiggy 6a3f97551c Fix test case again because of SDDisplayLink behavior, do not use the isRunning check 2019-11-04 20:13:22 +08:00
DreamPiggy 6d4b241c39 Add some protect code for user-provided frameCount and loopCount to SDAnimatedImagePlayer 2019-11-04 12:39:57 +08:00
DreamPiggy 4c7cbc6aa7 Update the test case to SDAnimatedImageView/Player 2019-11-04 12:34:36 +08:00
DreamPiggy 9461bd5c11 Update the WatchKit demo with the `SDAnimatedPlayer` to show the simple usage 2019-11-04 03:59:48 +08:00
DreamPiggy b0d6825842 Fix the header of that animated player 2019-11-04 03:52:52 +08:00
DreamPiggy 5f74f0aa23 Update all the comments about aniamted player 2019-11-04 03:24:21 +08:00
DreamPiggy 1fe5fb28af Refactory the `SDAnimatedImageView` implementation. Put all animation calculation logic into `SDAnimatedPlayer`. Refactory the animated progressive implementation to directly get the coder 2019-11-04 02:52:27 +08:00