Commit Graph

2661 Commits

Author SHA1 Message Date
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
DreamPiggy 8b14ca759d Revert the code to SDAnimatedImageView, which break the pause and reusme speed
Fix the issue that SDAnimatedImageView on macOS will change the wrong duration speed when pause and resume again
2019-10-27 04:08:25 +08:00
DreamPiggy bbf2c28f84
Merge pull request #2867 from dreampiggy/refactory_animated_player
Refactory animated player phase 1 - cross-platform display link implementation
2019-10-21 17:46:59 +08:00
DreamPiggy 4d917547ac Fix the NSTimer implementation for display link 2019-10-17 14:51:25 +08:00
DreamPiggy 37bf9f66d1 Change the implementation to use the cross-platform SDDisplayLink 2019-10-17 01:21:42 +08:00
DreamPiggy 7e85869e6c Refactory the display link with a cross-platform implementation, CADisplayLink. for iOS/tvOS, CVDDisplayLink for macOS, NSTimer for watchOS 2019-10-17 01:21:15 +08:00
DreamPiggy 75fb66c834
Merge pull request #2866 from dreampiggy/feature_response_modifier_data_decrypter
Feature response modifier data decrypter
2019-10-16 18:59:30 +08:00
DreamPiggy 5aab84df90 Fix the test case naming and documentation 2019-10-16 17:04:03 +08:00
DreamPiggy 34e736375e Refactory to seperate the response modifier and data decryptor, one for HTTP response, one for Data decrypt. 2019-10-15 20:16:52 +08:00
DreamPiggy 9b6d2b5691 Fix the typo on documentation 2019-10-15 17:47:52 +08:00
DreamPiggy 537b86a7c8 Update the documentation for request/response modifier 2019-10-15 16:56:04 +08:00
DreamPiggy d6fbaaff04 Add test case `test24ThatDownloadRequestModifierWorks `, including the base64 and zlib testing for both fileURL and webURL 2019-10-15 16:40:59 +08:00
DreamPiggy 6825b2c9be Fix the issue of response modifier, including Public header, initialize, etc 2019-10-15 16:40:59 +08:00
DreamPiggy c0602e6733 Add one convenient method to use base64 encoded image data 2019-10-15 15:02:03 +08:00
DreamPiggy 68d73f4cb2 Add the response modifier and data decrypter, which allows user to provide a modified version of URL Response and image data, like Gzip or other encoding form 2019-10-15 14:36:41 +08:00