Commit Graph

1689 Commits

Author SHA1 Message Date
DreamPiggy fa7d19c099 Update the comments and expose the token's request, which can be used for advanced usage. 2018-04-07 15:52:39 +08:00
DreamPiggy f01fe38fdd Add downloader request modifier to allow modify final HTTP request. Also open the API to allow advanced user to check cache & downloader operation. 2018-04-07 15:52:39 +08:00
DreamPiggy 01e75cfa7c Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x 2018-04-06 13:45:17 +08:00
DreamPiggy 8d851b300f Merge branch 'refactor_coder_animation' into 5.x 2018-04-05 22:11:17 +08:00
DreamPiggy 407b708b38 Add shouldIncrementalLoad in SDAnimatedImageView to choose the animation behavior for progressive looading 2018-04-05 22:10:40 +08:00
DreamPiggy 00a0e01a32 Merge branch 'refactor_downloader_config' into 5.x 2018-04-05 18:45:30 +08:00
DreamPiggy 393085a9b0 Update the default downloader config to use the dispatch_once to avoid thread-safe issue 2018-04-05 18:44:38 +08:00
DreamPiggy 1d7dba33f5 Update the test about download operation, which using protocol instead of class 2018-04-05 15:25:14 +08:00
DreamPiggy 73c811dc23 Fix all code tied with SDWebImageDownloaderOperation class but not protocol, which previously relay on NSURLSession but it should not to be 2018-04-05 07:26:50 +08:00
DreamPiggy 793b7e33a8 Update the custom downloader operation to fix test 2018-04-05 06:06:01 +08:00
DreamPiggy 1dcd4441e1 Merge branch 'refactor_api_style' into 5.x 2018-04-05 01:36:34 +08:00
DreamPiggy 321101fa60 Use NS_EXTENSIBLE_STRING_ENUM instead of NS_STRING_ENUM 2018-04-05 01:35:59 +08:00
DreamPiggy 5622a68146
Merge pull request #2263 from dreampiggy/refactor_downloader_config
Refactor downloader config
2018-04-05 00:57:43 +08:00
DreamPiggy be36009d10 Update the test for custom download operation class. 2018-04-05 00:15:53 +08:00
DreamPiggy 6e402ce41c Add KVO for maxConcurrentDownloads to allow dynamic change 2018-04-05 00:15:53 +08:00
DreamPiggy 47aa73a436 Update the downloader token's property to match the comments 2018-04-05 00:15:53 +08:00
DreamPiggy c3892d7d08 Move all download settings into SDWebImageDownloaderConfig, make it more easy to use with clear API.
Deprecate `createNewSessionWithConfiguration`, which make downloader not sync with URLSession. If user need to specify sharedDownloader config, just modify the defaultDownloaderConfig instead.
2018-04-05 00:15:53 +08:00
DreamPiggy 6bdcf63224 Fix the test build 2018-04-03 02:07:59 +08:00
DreamPiggy 5670fc9174 Merge branch 'refactor_api_style' of https://github.com/dreampiggy/SDWebImage into 5.x 2018-04-02 22:29:42 +08:00
DreamPiggy c21381e83b Change `isRunning` on manager from method to property 2018-04-02 22:28:58 +08:00
DreamPiggy c24c3d3477 Merge branch 'refactor_context_option' into 5.x 2018-04-02 03:35:32 +08:00
DreamPiggy 8236dee202 Move the context arg after the `options` arg to make Swift ABI clear. Also update all view category to support context arg. 2018-04-02 03:24:23 +08:00
DreamPiggy d751b20652 Move all the webcache options into the `SDWebImageDefine.h` files to avoid import of `SDWebImageManager.h` and include cycle. 2018-04-01 22:02:50 +08:00
DreamPiggy 0f36f97ae8 Fix the documentation issue about cacheSerializer 2018-04-01 21:54:10 +08:00
DreamPiggy 851ee7d372 Update the prefetcher test case naming 2018-04-01 00:11:15 +08:00
DreamPiggy f1b5e94799 Update the comments 2018-03-31 22:08:27 +08:00
DreamPiggy bc164d6369 Fix prefetcher thread-safe problem using stdatomic instead of OSAtomic. Also fix test. 2018-03-31 21:44:53 +08:00
DreamPiggy cc8edd741d Merge branch 'refactor_api_style' of https://github.com/dreampiggy/SDWebImage into 5.x 2018-03-31 18:02:31 +08:00
DreamPiggy 07494e4895 Fix the manager's wrong nullable property to nonnull 2018-03-31 17:59:42 +08:00
DreamPiggy 92f3d2c795 Remove the `maxConcurrentDownloads`, which can be set from downloader configuration. Rename the `prefetcherQueue` to `delegateQueue` to match the correct description.
Fix the delegateQueue to async dispatch, avoid immediate callback cause recursion call(Match previous behavior)
2018-03-31 17:47:55 +08:00
DreamPiggy ea74f73834 Merge branch 'refactor_coder_animation' into 5.x 2018-03-29 20:31:04 +08:00
DreamPiggy d5cc827bf8 Move the animated image files into single group 2018-03-29 20:28:50 +08:00
DreamPiggy 04c31afaa8
Merge pull request #2149 from dreampiggy/refactor_apng_coder
Add APNG coder support
2018-03-29 19:48:54 +08:00
DreamPiggy 915278bfd8 Update the comments and demo for macOS 2018-03-29 19:43:34 +08:00
DreamPiggy 5da5ec92fb Add the test for APNG coder 2018-03-29 17:59:32 +08:00
DreamPiggy 082c5af565 Add APNG coder to support static PNG & APNG rendering. Also update macOS's SDAnimatedImageRep 2018-03-29 17:45:56 +08:00
DreamPiggy beb958bd08
Merge pull request #2140 from dreampiggy/refactor_coder_animation
Introduce SDAnimatedImageView, SDAnimatedImage and do refactory
2018-03-29 14:47:30 +08:00
DreamPiggy 920d61f47e Separate the image class and coder class's protocol. Make this two more modular 2018-03-29 14:16:27 +08:00
DreamPiggy 16d39e4982 Remove the unused NSImageView imageScale and alignment override 2018-03-29 02:50:05 +08:00
DreamPiggy f0f23a76f1 Update the comments 2018-03-29 02:41:34 +08:00
DreamPiggy 82e3779426 Fix the macOS animated image rendering issue by using the correct layer 2018-03-29 02:33:38 +08:00
DreamPiggy a6d61c409d Fix compile issue and test 2018-03-25 20:44:41 +08:00
DreamPiggy d49d7f7c0a Add the removal and status method for animated image preloading. Update the comments 2018-03-25 17:32:48 +08:00
DreamPiggy 5e09c6bf19 Add support for imageNamed: in SDAnimatedImage with bundle files 2018-03-25 17:32:48 +08:00
DreamPiggy 7e83d78ca3 Add tests about SDAnimatedImage SDAnimatedImageView and SDAnimatedImage+WebCache 2018-03-25 17:32:48 +08:00
DreamPiggy 4563e714d7 Support progressive decoding for animated image. A little refactory to make coder protocol more readable 2018-03-25 17:32:19 +08:00
DreamPiggy f94dd00c52 Use the context arg to pass the SDAnimatedImage class to create the instance by image cache and downloader.
Also enhance view category to support firstFrameOnly, scaleFactor and preload
2018-03-25 17:29:11 +08:00
DreamPiggy 87bbcdc46f Introduce SDAnimatedImage and SDAnimatedImageView for high performance animated image rendering on iOS & macOS 2018-03-25 17:23:12 +08:00
DreamPiggy 34cca584c2 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x 2018-03-24 20:40:55 +08:00
DreamPiggy 1efc247400 Merge branch 'refactor_prefetcher' of https://github.com/dreampiggy/SDWebImage into 5.x 2018-03-24 20:36:03 +08:00