Bogdan Poplauschi
10a86a7b0e
Merge pull request #1696 from skyline75489/master
...
Fix FLAnimatedImage import when using CocoaPods
2017-01-28 19:54:52 +02:00
Bogdan Poplauschi
8a9ae3db32
Merge pull request #1741 from Baichenghui/master
...
Word corrections
2017-01-27 21:14:38 +02:00
Coder_Bai
dedbf3088b
Word corrections
2016-12-06 13:06:18 +08:00
cdunkel
45c0387f98
Update Prefetch Docs
...
Updated prefetchUrls: and prefetchUrls:progress:completed: documentation to mention that any already running prefetch operations are canceled if the operation is called.
2016-11-02 11:51:52 -05:00
Chester Liu
8c3c06c342
Utilize __has_include to fix framework import
2016-10-13 21:25:47 +08:00
skyline75489
7dbf15bb0d
Fix FLAnimatedImage import when using CocoaPods
2016-10-11 20:53:16 +08:00
Bogdan Poplauschi
032ab1dd6d
Fixed #1693 Same URLs didn't cancel download
2016-10-09 13:08:32 +03:00
Bogdan Poplauschi
beb1717a4f
Marked the `SDWebImageManager` `initWithCache:downloader:` as designated initializer.
2016-10-07 12:54:20 +03:00
Bogdan Poplauschi
b366d84f93
Fixed #1668 CGContextDrawImage: invalid context 0x0
2016-10-06 16:54:17 +03:00
Bogdan Poplauschi
efad1e5cd4
Fixed a bug introduced by 00bf467
2016-10-06 15:59:37 +03:00
Bogdan Poplauschi
00bf467eb7
Update for #787 Add an option to scale down large images on iOS - code cleanup
2016-10-06 15:08:53 +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
7e0964f8d9
Made sure SDWebImageCompat.h is imported in all the headers
2016-10-04 16:13:08 +03:00
Bogdan Poplauschi
945f8691ff
Fixed documentation warning, param name is `completionBlock`
2016-10-04 16:11:35 +03:00
Alexander Belyavskiy
a347abad89
Fix FLAnimatedImageView+WebCache.m not got compiled
...
Because of missing SD_UIKIT definition.
2016-10-03 09:29:24 +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
7940577b12
Fix #1619 iOS10 Crash issue
2016-10-01 12:13:31 +03:00
Bogdan Poplauschi
8382899070
Merge pull request #984 from gztchan:master
...
Add url as param to progress block
2016-10-01 10:06:35 +03:00
Bogdan Poplauschi
e844a854ca
Merge pull request #1459 from mime29:macrowarning
...
Updated dispatch_ macro in order to avoid redefinition when included as Pod
2016-10-01 09:52:40 +03:00
Bogdan Poplauschi
9012d268a9
Merge pull request #1654 from Wondermall/session-configuration
...
Allow to specify NSURLSessionConfiguration for SDWebImageDownloader
2016-10-01 09:37:11 +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
9cd6779b4b
Replaced #1537 - fixed a potential retain cycle in `SDWebImageManager`.
2016-10-01 09:19:32 +03:00
Bogdan Poplauschi
02a9eab4b5
Merge pull request #1657 from mackoj/master
...
Add support for downloading images behind redirect
2016-09-30 22:34:54 +03:00
Bogdan Poplauschi
17ae791953
Replaced #1640 - Added `sd_` prefix to the activity indicator related methods (`setShowActivityIndicatorView:`, `setIndicatorStyle:`, `showActivityIndicatorView`, `addActivityIndicator`, `removeActivityIndicator`)
2016-09-30 21:36:34 +03:00
Bogdan Poplauschi
fc3a4d8170
Merge pull request #1676 from jimmaye/background-crash-io10
...
#1619 : Adds NSError as input to resourceValuesForKeys:error: method
2016-09-30 21:26:02 +03:00
Bogdan Poplauschi
a8ad2a5c4a
Made sure we don't crash here if the operation is nil at some point
2016-09-30 15:27:31 +03:00
Bogdan Poplauschi
0c47bc3023
Replacing #781 - made sure completionBlock called from `SDWebImageManager` is called on the main queue. Created 2 methods to simplify the code for calling the completions
2016-09-30 15:19:17 +03:00
Bogdan Poplauschi
265ace4a24
Improved readability in `SDWebImageManager` by creating `safelyRemoveOperationFromRunning:` method
2016-09-30 14:53:52 +03:00
Bogdan Poplauschi
fdb8b2c1c6
Small fix, this needs to be `strongOperation`
2016-09-30 14:45:44 +03:00
Bogdan Poplauschi
c77adf449a
Replacing #781 - made sure all the completionBlocks called from `SDWebImageDownloaderOperation` are called on the main queue. Created 2 methods to simplify the code for calling the completions
2016-09-30 14:43:38 +03:00
Bogdan Poplauschi
f7e8246014
Replacing #781 - replaced all the remaining `dispatch_main_sync_safe` with `dispatch_main_async_safe`, so we no longer `dispatch_sync` on the main queue that can create issues.
2016-09-30 13:22:56 +03:00
Bogdan Poplauschi
062e50aa10
Replacing #781 - based on http://blog.benjamin-encz.de/post/main-queue-vs-main-thread/ , background queue can execute code on the main thread, so we need to check for the main queue to assure safety
2016-09-30 13:17:57 +03:00
Bogdan Poplauschi
3c4aa45f32
Fixed build due to latest animated WebP support that was not properly adapted for OSX. For OSX, this will not work because the `animatedImageWithImages:duration:` API does not have an equivalent there.
2016-09-30 09:32:34 +03:00
Bogdan Poplauschi
88b025a5fa
Merge pull request #1438 from lianchengjiang/master
...
Animated webP support
2016-09-29 18:57:05 +03:00
Bogdan Poplauschi
e642024688
Fix the build: UIButton and UIImageView are not defined on Mac OS or WatchOS
2016-09-25 20:07:12 +03:00
Bogdan Poplauschi
e1840c3262
Refactored all the duplicate code from our WebCache categories into a UIView+WebCache category. All the other categories will make calls to this one. Customization of setting the image is done via the setImageBlock and the operationKey
2016-09-25 19:44:52 +03:00
Bogdan Poplauschi
0612504f1b
Instead of assert, just nslog
2016-09-24 00:07:43 +03:00
Bogdan Poplauschi
2fa77435c1
Proper place for the pragma mark and used a function to check for the proper queue
2016-09-23 23:54:23 +03:00
Bogdan Poplauschi
ba88022c30
Moved the `diskImageExistsWithKey:completion:` to the right place in the header
2016-09-23 23:53:51 +03:00
Bogdan Poplauschi
537b039012
Got rid of `removeImageForKey:` and `removeImageForKey:fromDisk:` that looked sync but were async. Left only the 2 async ones
2016-09-23 23:53:18 +03:00
Bogdan Poplauschi
3e78e29480
Pragma marks for code readability
2016-09-23 23:43:06 +03:00
Bogdan Poplauschi
f202b50330
Updated `queryCacheOperationForKey:image:` comments and method still works if the doneBlock is nil
2016-09-23 23:42:21 +03:00
Bogdan Poplauschi
d9424345ab
The `storeImage:` methods from `SDImageCache` were async already, but declared as sync. Properly marked them as async + added completion. Got rid of the recalculate param. If the `NSData` is provided, use it. Otherwise, recalculate from the `UIImage`
2016-09-23 21:37:38 +03:00
Bogdan Poplauschi
2eafdd6df0
Updated `storeImageDataToDisk:forKey:` asserting when called from other queue than ioQueue. Updated the header comments
2016-09-23 21:33:28 +03:00
Bogdan Poplauschi
3fc19996c2
Fixed misspell
2016-09-23 21:15:15 +03:00
Bogdan Poplauschi
ebf40c7ca0
Another clarification: `imageFromDiskCacheForKey:` used to also check the memory cache which I think is misleading. Now `imageFromDiskCacheForKey` only checks the disk cache and the new method `imageFromCacheForKey` checks both caches
2016-09-23 21:14:53 +03:00
Bogdan Poplauschi
df3b6a52eb
Created `SDWebImageDownloaderOperationInterface` to describe the behavior of a downloader operation. Any custom operation must conform to this protocol.
2016-09-23 21:11:34 +03:00
Bogdan Poplauschi
6202f05e7a
Renamed `SDImageCache` `queryDiskCacheForKey:done:` to `queryCacheOperationForKey:done:`
2016-09-23 21:02:44 +03:00
Bogdan Poplauschi
e9fcf0ce03
Removed sync method `diskImageExistsWithKey:` from `SDImageCache`
2016-09-23 20:58:10 +03:00
Bogdan Poplauschi
04e963b90d
Get rid of the confusion cause by `cleanDisk` and `clearDisk`. Renamed `cleanDisk` to `deleteOldFiles`. No longer expose the sync `clearDisk` and `deleteOldFiles`, just the async ones
2016-09-23 20:52:30 +03:00