Commit Graph

1758 Commits

Author SHA1 Message Date
DreamPiggy 7cf58ad7c5 Renaming the NSImage category naming to `NSImage+Compatibility`, because it's only used for Cross-platform compatibility code. `Additions` is too wide 2018-04-18 21:14:34 +08:00
Bogdan Poplauschi 5426a720f7
Merge pull request #2278 from dreampiggy/refactor_cache_webcache_protocol
Refactor cache - Support custom web cache
2018-04-18 14:06:50 +03:00
Bogdan Poplauschi 00f9f3a597
Merge pull request #2290 from dreampiggy/refactor_error_code
Refactor error code
2018-04-18 10:44:07 +03:00
Bogdan Poplauschi 6e5b9634a8
Merge pull request #2287 from dreampiggy/fix_default_config_readonly
Fix the default download config & cache config to readonly
2018-04-18 10:41:43 +03:00
DreamPiggy 5a32da7953 Move the complicated built-in decode process into a global function to allow user who custom web cache use it 2018-04-18 14:59:34 +08:00
DreamPiggy 632a2bb110 Rename all the image cache block naming with the unite naming (Prefix `SDImageCache`) 2018-04-18 14:40:56 +08:00
DreamPiggy 2c7d1a465a Update the tests for web cache protocol and caches manager 2018-04-18 14:40:56 +08:00
DreamPiggy 1220f73507 Expose the sync version of remove API 2018-04-18 14:40:56 +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 f7af36f3bd Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
# Conflicts:
#	SDWebImage/SDImageCache.h
#	SDWebImage/SDImageCache.m
#	SDWebImage/SDWebImageManager.m
2018-04-18 14:37:15 +08:00
Bogdan Poplauschi 96ec9719a0
Merge pull request #2281 from dreampiggy/feature_scale_download_cache_options
Add `SDImageCacheScaleDownLargeImages` to allow cache to scale down large images if need
2018-04-18 09:22:13 +03:00
DreamPiggy 60d58ef977 Refactor all current custom error in SDWebImageErrorDomain with error code. Also using NS_ERROR_ENUM to provide better Swift API 2018-04-18 13:26:20 +08:00
DreamPiggy 77426d127f Fix the default download config & cache config to readonly. You can modify the property of config, but not the override the default config instance itself. 2018-04-17 19:28:41 +08:00
DreamPiggy cb7d5288c3 Save the DerivedData folder for iOS & macOS test finished, only upload the correct test 2018-04-17 18:03:10 +08:00
Bogdan Poplauschi 1bc4662bde Merge pull request #2282 from dreampiggy/refactor_memory_cache_disk_cache
Refactor cache - Support custom memory cache & disk cache
2018-04-17 12:14:06 +03:00
DreamPiggy f0868ccfe8 Still fix the codecov issue by Clean all DerivedData before the test 2018-04-17 16:57:37 +08:00
Bogdan Poplauschi 9711cdbcd5
Merge pull request #2280 from dreampiggy/refactor_custom_cache_serializer_headers_filter
Refactor custom cache serializer & headers filter for request level
2018-04-17 11:45:38 +03:00
DreamPiggy 62871306ce Ignore the vendor and test folder, only calculate iOS test coverage (merge macOS will wrong result) 2018-04-17 16:22:56 +08:00
DreamPiggy 27ee8a7ac2 Update the codecov script to seperate iOS & macOS test coverage 2018-04-17 15:24:10 +08:00
DreamPiggy 7cba215b1d Fix codecov to use gcov reports instead of llvm-cov 2018-04-17 14:20:58 +08:00
DreamPiggy d9c93e1a86 Revert "Revert "Fix two warnings about losing precision in comparison""
This reverts commit d19311e08c.
2018-04-17 13:01:10 +08:00
DreamPiggy 6622f29dac Merge branch 'refactor_coder_animation' into 5.x 2018-04-17 12:04:37 +08:00
DreamPiggy dd2e71c99d Add support for SDAnimatedImage imageNamed:bundle: for macOS, enable SDAnimatedImageTest for macOS 2018-04-17 12:03:24 +08:00
DreamPiggy d19311e08c Revert "Fix two warnings about losing precision in comparison"
This reverts commit a710bc5472.
2018-04-17 11:27:50 +08:00
DreamPiggy 56fea371b0 Fix compile issue 2018-04-17 11:10:53 +08:00
DreamPiggy a8639f9fd0 Use `NSTimeInterval` for age property, because it's more proper represent seconds 2018-04-17 11:09:56 +08:00
DreamPiggy 2d27300e00 Add test for custom memory cache and disk cache 2018-04-17 11:09:56 +08:00
DreamPiggy 62058d209d Add memory cache and disk cache protocol, make our image cache just like a wrapper to call the disk cache implementation 2018-04-17 11:09:56 +08:00
DreamPiggy c5647c8f8a
Merge pull request #2283 from dreampiggy/feature_force_decode_individual_request
Use `SDWebImageAvoidDecodeImage` to allow user to control force decode feature for individual image request
2018-04-16 16:59:50 +08:00
DreamPiggy 781c079a3a Use `SDWebImageAvoidDecodeImage` to allow user to control force decode feature for individual image request. Replace all the central control for `decompressImages` 2018-04-16 01:12:09 +08:00
DreamPiggy 1367b18b89 Merge branch 'feature_scale_factor' into 5.x 2018-04-15 13:52:03 +08:00
DreamPiggy 5665b6fdf2 Fix the issue about scale factor using `initWithCGImage:size` macOS, we should always use `NSBitmapImageRep` to keep cross-platform compatible 2018-04-15 13:49:42 +08:00
DreamPiggy d02c8d15e2 Use the scale category from `NSImage+Addtions` instead of manual created property for `SDAnimatedImage` on macOS 2018-04-15 13:13:51 +08:00
DreamPiggy 94b67bf3b0 Fix the NSSecureCoding implementation for SDAnimatedImage 2018-04-15 01:36:10 +08:00
DreamPiggy fcfca57463 Add limitBytes arg for UIImage+ForceDecode category 2018-04-14 22:33:19 +08:00
DreamPiggy 0dfeebefeb Add `SDImageCacheScaleDownLargeImages` to allow cache to scale down large images if need 2018-04-14 22:14:59 +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 7272cf78e5 Fix the silly mistake that view category internal completion block call swapped cacheType and finished arg 2018-04-14 16:59:34 +08:00
DreamPiggy 95ace107e8
Merge pull request #2277 from dreampiggy/refactor_cache_revert_handle_disk_error
Revert "Merge pull request #1898 from walkline/master into 5.x"
2018-04-13 17:32:29 +08:00
DreamPiggy e1d96e7812 Revert "Merge pull request #1898 from walkline/master into 5.x" 2018-04-13 16:48:15 +08:00
DreamPiggy db646df3f1
Merge pull request #2276 from dreampiggy/refactor_cache_path_api
Refactor cache - Cache Path API
2018-04-13 11:48:03 +08:00
DreamPiggy f8e9dd3412 Update the test for cache path API 2018-04-13 11:19:03 +08:00
DreamPiggy 25b61bb5ae Refactor the cache path API. Only given the full cache path to allow user to choose to use filename or full path. And use a block instead of static array for additional cache path. 2018-04-13 11:10:14 +08:00
DreamPiggy e829637a30 Update to use scale factor instead of that firstFrameOnly, since it's not used frequently as scale 2018-04-13 02:34:52 +08:00
DreamPiggy b9773d09c0 Fix SDGetColorFromPixel ignore kCGImageAlphaOnly case 2018-04-13 02:15:18 +08:00
DreamPiggy eaf7bece7a Merge branch 'bugfix_indicator' into 5.x 2018-04-13 01:17:43 +08:00
DreamPiggy 7701215ae0 Fix the bug that reset indicator view does not remove from super view 2018-04-13 01:17:13 +08:00
DreamPiggy a710bc5472 Fix two warnings about losing precision in comparison 2018-04-12 01:19:06 +08:00
DreamPiggy d515a36337 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
# Conflicts:
#	SDWebImage/SDWebImageImageIOCoder.m
2018-04-12 01:16:34 +08:00
DreamPiggy 2cb03773db
Merge pull request #2261 from dreampiggy/feature_request_modifier_and_response
Feature request modifier and response
2018-04-11 16:51:28 +08:00