Commit Graph

113 Commits

Author SHA1 Message Date
DreamPiggy 26d1a95cca Add SDWebImageOptionsProcessor, which can have a global control for both WebCache options and context option for image loading 2019-05-23 21:44:57 +08:00
kinarob 8a8e527dea Fix typo in documentation page 2019-05-10 21:47:32 +08:00
DreamPiggy 0783287f95 Update the documentation coverage for jazzy. Use the correct format to provide class/protocol/type API Documentation 2019-05-10 17:20:49 +08:00
zhongwuzw bb55b6eb72 Fix typo 2018-07-05 22:24:25 +08:00
DreamPiggy 4eb13bf2a1 Remove the header dependency of SDWebImageManager of SDWebImageDownloader. Use SDImageLoaderProgressBlock instead of SDWebImageDownloadProgressBlock 2018-06-06 14:41:44 +08:00
DreamPiggy f96c94ef7d Renaming all `SDWebImageLoader` -> `SDImageLoader` 2018-06-06 14:41:44 +08:00
Bogdan Poplauschi 5bedca7473
Merge pull request #2304 from dreampiggy/renaming_image_transformer
Renaming image transformer
2018-04-26 18:49:52 +03:00
DreamPiggy e862ea1b8e Rename all `SDWebImageTransformer` to `SDImageTransformer` 2018-04-26 23:03:44 +08:00
DreamPiggy 425d78de12 Renaming the `downloadOperation` to `loaderOperation` in `SDWebImageCombinedOperation` 2018-04-26 21:48:34 +08:00
DreamPiggy e9cf356e57 Renaming `SDWebImageProgressiveDownload` to `SDWebImageProgressiveLoad`. Which is more suitable for custom loader which also support progressive image loading. (No need to be download) 2018-04-26 21:42:25 +08:00
Bogdan Poplauschi af0eaccbc5 Merge pull request #2292 from dreampiggy/refactor_cache_webcache_protocol
Fix the custom cache protocol naming
2018-04-19 10:39:39 +03:00
DreamPiggy 60759f812a Refactor to only use one publish protocol for custom loader. Renaming image downloader description to loader 2018-04-18 20:46:00 +08:00
DreamPiggy 57db312cc5 Add `SDWebImageLoader` protocol for custom image loader. Also introduce the `SDWebImageLoadersManager` to manage multiple loaders with priority 2018-04-18 20:26:14 +08:00
DreamPiggy 734c6821d5 Rename the cache protocol to `SDImageCache` protocol 2018-04-18 19:24:23 +08:00
DreamPiggy 9f770b6c19 Refactor to support custom image cache used for web manager. Supports caches manager with multiple caches and op policy 2018-04-18 14:40:56 +08:00
DreamPiggy 3d7896f663 Adopt the current cache key filter and cache serializer to support using in context options. Using a protocol based object store block instead block itself. 2018-04-14 18:18:45 +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 c21381e83b Change `isRunning` on manager from method to property 2018-04-02 22:28:58 +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 07494e4895 Fix the manager's wrong nullable property to nonnull 2018-03-31 17:59:42 +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 44d266af7c Add transformer property in manager level to allow a central control of image transform(optional) 2018-03-17 21:18:19 +08:00
DreamPiggy 464d725368 Adopt the transformer to cache & manager. Use a new context option SDWebImageContextCustomTransformer to bind the transformer
Drop old way of delegate method for transformer. Add two new delegate methods to allow advanced use case after we remove that.
2018-03-17 21:18:19 +08:00
DreamPiggy 5ff999f3d1 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Bumped version to 4.3.3
  Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager

# Conflicts:
#	SDWebImage/SDWebImageManager.h
2018-03-13 00:04:35 +08:00
DreamPiggy 9ca9fa3d96
Merge pull request #2245 from dreampiggy/feature_cache_serializer
Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager
2018-03-12 22:57:34 +08:00
DreamPiggy c9dfe39e36 Change all sharedInstance from method to class property 2018-03-11 16:08:33 +08:00
DreamPiggy 6f40adbaa0 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Add a delegate method to control the custom logic when blocking the failed url
  Clarify the block comment in SDWebImageManager
  Enable CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF

# Conflicts:
#	SDWebImage/SDImageCache.m
2018-03-09 16:52:46 +08:00
DreamPiggy f364962004 Add a delegate method to control the custom logic when blocking the failed url 2018-03-08 12:45:12 +08:00
DreamPiggy 51024a34f7 Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager 2018-03-08 12:13:52 +08:00
DreamPiggy 2990737821 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Revert that SDImageCacheQueryMemoryOnly because it's misunderstanding. Use `imageFromMemoryCacheForKey` instead
2018-01-26 23:50:17 +08:00
DreamPiggy 1749666720 Revert that SDImageCacheQueryMemoryOnly because it's misunderstanding. Use `imageFromMemoryCacheForKey` instead 2018-01-26 23:42:51 +08:00
DreamPiggy f05a1bf96f Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Update the comments and a little enhancement for FLAnimatedImageView Category
  Use a dispatch semaphore to keep thread safe for downloader because it need the hold cancel and add procedure be thread-safe
  Add the current image/alternateImage url for NSButton category. A little code refactoring
  Update macOS demo to add a clear cache button using NSButton category
  Fix that reset alternateImage cancel the image load operation for NSButton+WebCache
  Add WebCache category for NSButton on macOS
  A little enhancement to avoid block capture the heap object
  Use a internal method to avoid thread-safe issue for file manager. Remove that checkIOQueue and add sync version exist API
  Add the image transition argument for all UIView+WebCache, make this easy for user to do some fade transition. It also reuse the current setImageBlock and make it easy to customize

# Conflicts:
#	SDWebImage.xcodeproj/project.pbxproj
#	SDWebImage/SDImageCache.h
#	SDWebImage/SDImageCache.m
#	SDWebImage/UIView+WebCache.h
#	SDWebImage/UIView+WebCache.m
#	WebImage/SDWebImage.h
2018-01-26 22:19:55 +08:00
DreamPiggy a2f760c7be Pass the context arg from the top level to the bottom level to allow specify logic in the future 2018-01-23 21:06:07 +08:00
DreamPiggy 829d54ff03 Add the image transition argument for all UIView+WebCache, make this easy for user to do some fade transition. It also reuse the current setImageBlock and make it easy to customize 2018-01-23 11:58:22 +08:00
DreamPiggy edd26fc1e6 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Add protect to some Core Graphics methods
  Change all UIImage init method to alloc instead of autorelease to immediately release it after usage
  Add a option SDWebImageFromCacheOnly to load the image from cache only and prevent network
  Update the test for custom operation interface
  Use synchronized instead of semaphore in SDWebImageDownloader to make it more easy to understand :)
  Use a lock instead of barrier queue to avoid dispatch_sync blocking the main queue on race condition
2018-01-23 11:51:49 +08:00
DreamPiggy c95e139c7b Add a option SDWebImageFromCacheOnly to load the image from cache only and prevent network 2018-01-21 13:26:30 +08:00
DreamPiggy 46a55ba6c7 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
* 'master' of https://github.com/rs/SDWebImage:
  Update the test and description to make it more clear
  Fix the issue that `setAnimationImagesWithURLs` weak reference may dealloc before the animated images was set
  Fix the strange file permissions issue
  Add the SDImageCacheQueryMemoryOnly to specify query memory only
  Update the cache options name to make it more clear
  Added missing param in storeImage examples
  Add a NSProgress property represent the image loading progress, this allow user add KVO on it for complicated logic
2018-01-17 19:22:54 +08:00
DreamPiggy 44cddbfdbf Add the SDImageCacheQueryMemoryOnly to specify query memory only 2018-01-14 21:47:23 +08:00
DreamPiggy df1bb98ad6 Update the cache options name to make it more clear 2018-01-14 21:12:33 +08:00
DreamPiggy 85e389ee7a
Merge pull request #2164 from AaronZhang2015/master
fix 'nullable' to 'nonull'
2018-01-13 15:51:46 +08:00
DreamPiggy 9420a20f3f Add a query cache options to allow some specify logic.
Currently is used for FLAnimatedImage
2018-01-12 18:34:09 +08:00
Ming Zhang 803210912d fix 'nullable' to 'nonull' 2018-01-10 19:39:48 +08:00
Bogdan Poplauschi beb1717a4f Marked the `SDWebImageManager` `initWithCache:downloader:` as designated initializer. 2016-10-07 12:54:20 +03:00
Bogdan Poplauschi 959d965248 Merge pull request #787 from gsempe:master
Add an option to scale down large images on iOS
2016-10-06 13:28:55 +03:00
Bogdan Poplauschi 62180db828 #1089 properly stated on all API docs that the progressBlock is called on a background queue 2016-10-01 12:29:12 +03:00
Bogdan Poplauschi c57cf7e6c9 The shared objects (not really singletons) should allow subclassing, therefore the return type should be instancetype and not a fixed type. 2016-10-01 09:28:21 +03:00
Bogdan Poplauschi 84be05b867 Removed the synchronous methods `diskImageExistsForURL:` and `cachedImageExistsForURL:` from `SDWebImageManager` 2016-09-23 20:42:22 +03:00