Commit Graph

1689 Commits

Author SHA1 Message Date
DreamPiggy 1986669d49
Merge pull request #2199 from dreampiggy/performance_decode_in_operation_queue
Decode the image in the operation level's queue instead of URLSession delegate queue
2018-02-21 16:07:48 +08:00
DreamPiggy efdeca4f99
Merge pull request #2225 from dreampiggy/fix_block_implicit_retain_self
Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning
2018-02-21 15:51:50 +08:00
DreamPiggy e11ac90387
Merge pull request #2223 from dreampiggy/improvement_macOS_gif_duration
Create a subclass of NSBitmapImageRep to fix the GIF frame duration issue on macOS
2018-02-21 15:45:23 +08:00
DreamPiggy ad02e3eaae Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning 2018-02-21 15:30:37 +08:00
DreamPiggy 47b77b7448 Disable travis-ci email notification 2018-02-20 21:18:14 +08:00
DreamPiggy 9c3928a9db Fix prefetcher test to first clear the disk cache, and manager test to only fulfill the finished one 2018-02-20 21:18:08 +08:00
DreamPiggy 7a737acd85 Improve the travis-ci to not clean the build for dynamic framework to speed up the demo build 2018-02-20 21:17:57 +08:00
DreamPiggy 0fa6e88fa1 Disable travis-ci email notification 2018-02-20 20:59:16 +08:00
DreamPiggy 90632d0abc Fix prefetcher test to first clear the disk cache, and manager test to only fulfill the finished one 2018-02-20 20:58:39 +08:00
DreamPiggy 835495a051 Improve the travis-ci to not clean the build for dynamic framework to speed up the demo build 2018-02-20 11:41:21 +08:00
DreamPiggy 57e56d0154 Fix the test because one header file not available on iOS. Tests header search path is different from main project 2018-02-20 02:38:14 +08:00
DreamPiggy 9d78dccac7 Add tests scheme for macOS. Because we now support cross-platform, some implementation is different from UIKit & AppKit. So we also need test 2018-02-20 00:49:25 +08:00
DreamPiggy da807416b0 Merge branch 'refactor_api_style' into 5.x
* refactor_api_style:
  Use property instead of method for UIButton/NSButton current url.
2018-02-19 20:48:03 +08:00
DreamPiggy 150affd201 Add new SDCategoriesTests for any other WebCache category tests 2018-02-19 20:38:55 +08:00
DreamPiggy 1f27d3c15f Rename SDCategoriesTests to SDWebCacheCategoriesTests to make it focus on view category, import KVOController instead of build-in KVO for test 2018-02-19 20:19:14 +08:00
DreamPiggy fc1fd0a74e Create a subclass of NSBitmapImageRep to fix the GIF frame duration issue on macOS 2018-02-18 17:52:13 +08:00
DreamPiggy 3054a38c0e
Merge pull request #2220 from dreampiggy/improvement_FLAnimatedImage_expose
Expose the read write to FLAnimatedImage associate to the UIImage to allow advanced feature like placeholder
2018-02-18 15:41:43 +08:00
DreamPiggy 7eff69685a Use lock instead of barrier queue to keep callbacks block thread-safe 2018-02-18 00:16:49 +08:00
DreamPiggy aeb5194dc4 Decode the image in the operation level's queue instead of URLSession delegate queue. Because URLSession delegate queue is a barrier queue and shared between different operations 2018-02-18 00:07:14 +08:00
DreamPiggy f115830f97 Fix test again about typo 2018-02-13 21:54:21 +08:00
DreamPiggy 553ab20c7f Fix test failed 2018-02-13 21:41:42 +08:00
DreamPiggy 26e77d0f04 Expose the read write to FLAnimatedImage associate to the UIImage to allow advanced feature like placeholder 2018-02-13 21:22:34 +08:00
DreamPiggy a54d1d7a2f
Fix that SDImageCacheQueryDataWhenInMemory should response cacheType to memory cache when the in-memory cache hit (#2218) 2018-02-12 21:20:49 +08:00
DreamPiggy aa4cde9389 Update the docs
Update `HowToUse` section to indicate the usage for SDWebImageQueryDataWhenInMemory
2018-02-10 11:30:43 +08:00
DreamPiggy 2646b3a1f2
Improvement download operation for priority and some protect (#2208)
* Add a cache check for 304 response when using NSURLCache

* Remove the extra cost to nil the imageData because at this time operation is already been cancelled or done

* Fix download operation may not marked as finished when data task create failed

* A little code reorder

* Adopt the priority options to change URLSessionTask's priority
2018-02-08 11:22:26 +08:00
DreamPiggy d6a3e2c1ae Change the context arg to init method because it should be readonly after created 2018-02-07 19:59:00 +08:00
DreamPiggy e5cb977bc8 Use property instead of method for UIButton/NSButton current url. 2018-02-04 17:01:26 +08:00
DreamPiggy 46b62cfb70 Merge branch 'refactor_indicator' into 5.x
* refactor_indicator:
  Update to support gray & grayLarge on iOS & tvOS
2018-02-04 16:41:35 +08:00
DreamPiggy e873255b16 Update to support gray & grayLarge on iOS & tvOS 2018-02-04 16:40:22 +08:00
DreamPiggy 7f2ba8cded
Merge pull request #2185 from dreampiggy/refactor_indicator
Refactor the image indicator usage for UIView category
2018-02-04 15:55:17 +08:00
DreamPiggy 89babbbfbe Remove SDWebImageProgressIndicator protocol. Add this as an optional method in SDWebImageIndicator 2018-02-04 15:19:40 +08:00
DreamPiggy d28870cd52 Remove the indicatorWidth property. Use can use the indicatorView to directly modify the frame or constraint 2018-02-04 15:12:17 +08:00
DreamPiggy 529f6fe4bf Rename to updateIndicatorProgress. Change the order for progress update and indicator to allow `observedProgress` works. 2018-02-04 15:08:33 +08:00
DreamPiggy 1ebac224db Use the API_UNAVAILABLE macro from Xcode 8 instead of the old style 2018-02-04 14:37:51 +08:00
DreamPiggy e012b36679 Refactor the image indicator usage for UIView category. Use two protocol `SDWebImageIndicator` & `SDWebImageProgressIndicator` to make this more customizable. Implement two class about activity indicator and progress indicator for both UIKit/AppKit 2018-02-04 14:37:51 +08:00
DreamPiggy bd22ad8725
Merge pull request #2206 from dreampiggy/fix_macOS_deployment_version
Fix the macOS wrong minimum deployment target version to 10.9
2018-02-01 13:50:31 +08:00
DreamPiggy 3ba496c811 Update the readme about macOS minimum deployment target version 2018-02-01 13:20:55 +08:00
DreamPiggy aacca305c0 Fix the macOS wrong minimum deployment target version to 10.9. And also fix the warning on Xcode 9 by enable more warning options 2018-02-01 13:20:55 +08:00
DreamPiggy af282c1d5e Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Bumped version to 4.3.0
  update CHANGELOG
  Update the readme
  Update the readme and issue template
  Use a lock to ensure headers mutable dictionary thread-safe
  Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check
  Use the correct way to specify cancel if the response status code is invalid.
  Ensure all the session delegate completionHandler called. Fix the leak when response error code below iOS 10
  Fix the issue that prefetcher will cause stack overflow is the input urls list is huge because of recursion function call
  Update the comments for image transition
  Expose the associate FLAnimatedImage to user for advanced usage. Update the comments
2018-02-01 11:53:13 +08:00
DreamPiggy 406220bb52 Bumped version to 4.3.0
updated CHANGELOG
2018-02-01 11:23:34 +08:00
DreamPiggy 3c80b0e2af update CHANGELOG
Update the changes for 4.3.0
2018-01-31 18:58:57 +08:00
DreamPiggy f1d46a0385
Merge pull request #2204 from dreampiggy/fix_downloader_headers_thread_safe
Use a lock to ensure headers mutable dictionary thread-safe
2018-01-31 16:31:05 +08:00
DreamPiggy 0065f88696 Update the readme
Move the Common Problems to wiki page and reorder the Get Started section
2018-01-31 11:40:51 +08:00
DreamPiggy 79ae7be719 Update the readme and issue template
Provide the wiki page and make issue template up to date
2018-01-31 11:00:09 +08:00
DreamPiggy 7f6dbd4e34 Use a lock to ensure headers mutable dictionary thread-safe 2018-01-31 03:22:10 +08:00
DreamPiggy 5b7f669bc1 Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check 2018-01-30 12:50:50 +08:00
DreamPiggy 37a062adc2
Merge pull request #2197 from dreampiggy/fix_urlcache_behavior_and_leak
Ensure all the session delegate completionHandler called
2018-01-30 10:51:51 +08:00
DreamPiggy 9080afdbac Use the correct way to specify cancel if the response status code is invalid. 2018-01-29 14:12:00 +08:00
DreamPiggy dd68f2f2d4 Ensure all the session delegate completionHandler called. Fix the leak when response error code below iOS 10 2018-01-29 14:12:00 +08:00
DreamPiggy a9a123fc74
Merge pull request #2196 from dreampiggy/fix_prefetcher_recursion_stackoverflow
Fix the issue that prefetcher will cause stack overflow is the input urls list is huge because of recursion function call
2018-01-28 19:30:48 +08:00