Commit Graph

2625 Commits

Author SHA1 Message Date
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
DreamPiggy c8b84c7575 Add a new optional method for SDAnimatedImage, because we want to do refactory of `Progressive Animated Loading` 2019-11-04 02:21:28 +08:00
DreamPiggy 5d5679a75b Add SDDeviceHelper to hold the memory calculation method, instead of that Static function 2019-11-03 22:40:56 +08:00
DreamPiggy 469d2c5e9b
Merge pull request #2877 from dreampiggy/test_tvOS_platform
Test: Add tvOS platform into core test case
2019-10-28 14:59:22 +08:00
DreamPiggy a4888081ea Change the "Tests" iOS target name into "Tests iOS", since now we have 3 test target, to help for readability 2019-10-28 13:18:12 +08:00
DreamPiggy 57ce5eb459 Add the tvOS flag for codecov 2019-10-28 13:11:57 +08:00
DreamPiggy 0db2169665 Update tvOS available check on test case 2019-10-27 22:48:43 +08:00
DreamPiggy b1f8cf5ed2 Update travis-CI script to add tvOS test coverage 2019-10-27 22:32:53 +08:00
DreamPiggy 77830dd4f2 Add all the Test Case on tvOS platform, using the same code as iOS 2019-10-27 22:32:53 +08:00
DreamPiggy 72a8b3ed8e
Merge pull request #2876 from dreampiggy/fix_SDDisplayLink_test
Fix the SDDisplayLink issue of default value, add test cases
2019-10-27 22:31:19 +08:00
DreamPiggy 1442534f6d Fix the SDDisplayLink issue of default value, add test cases `testSDDisplayLink` 2019-10-27 21:47:09 +08:00
DreamPiggy 61d185d4ee Solve the merge conflict due to SDDisplayLink refactory, using the output time instead of now time of CVDisplayLink on macOS 2019-10-27 21:16:23 +08:00
DreamPiggy 39364483cc Merge branch '5.2.x'
# Conflicts:
#	SDWebImage/Core/SDAnimatedImageView.m
2019-10-27 20:43:09 +08:00
DreamPiggy bcf7576c31 Bumped version to 5.2.5
Update the CHANGELOG
2019-10-27 13:59:50 +08:00
DreamPiggy 15898ce32b
Merge pull request #2875 from dreampiggy/fix_macos_indicator_layout_center
Fix macOS SDWebImageIndicator center layout issue when indicator was initialized with 0 frame
2019-10-27 13:57:06 +08:00
DreamPiggy 61888409fb Fix macOS indicator center layout issue. Should use the frame origin instead of frame, which will cause issue if superView contains no zero bounds origin 2019-10-27 13:12:27 +08:00
DreamPiggy ae6ccf1652 Bumped version to 5.2.4
Update the CHANGELOG
2019-10-27 12:00:53 +08:00
DreamPiggy 6c36b7542a
Merge pull request #2874 from dreampiggy/fix_behavior_macOS_animatedimage_animates_and_set_image
Fix SDAnimatedImage on macOS use extra aniamtes property check, which is not intuitive and cause extra setup before usage
2019-10-27 05:31:21 +08:00
DreamPiggy 3d1382a1cb Update the shouldAnimate status when animating status changes, to avoid that macOS call `animates = NO`, `setImage:newImage`, `aniamtes = YES`, the animation does not restarted issue 2019-10-27 04:52:33 +08:00
DreamPiggy fc4497d4f9
Merge pull request #2873 from dreampiggy/bugfix_animated_image_macOS_pause_resume_speed
Fix the issue that SDAnimatedImageView on macOS will change the wrong duration speed when pause and resume again
2019-10-27 04:39:53 +08:00