Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the compile issue on Xcode 12 #8

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PODS:
- Expecta (1.0.6)
- SDWebImage/Core (5.7.0)
- SDWebImageYYPlugin (0.4.0):
- SDWebImage/Core (5.9.0)
- SDWebImageYYPlugin (0.5.0):
- SDWebImage/Core (~> 5.7)
- SDWebImageYYPlugin/YYCache (= 0.4.0)
- SDWebImageYYPlugin/YYImage (= 0.4.0)
- SDWebImageYYPlugin/YYCache (0.4.0):
- SDWebImageYYPlugin/YYCache (= 0.5.0)
- SDWebImageYYPlugin/YYImage (= 0.5.0)
- SDWebImageYYPlugin/YYCache (0.5.0):
- SDWebImage/Core (~> 5.7)
- YYCache
- SDWebImageYYPlugin/YYImage (0.4.0):
- SDWebImageYYPlugin/YYImage (0.5.0):
- SDWebImage/Core (~> 5.7)
- YYImage/Core
- YYCache (1.0.4)
Expand All @@ -34,8 +34,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5
SDWebImage: a99471f452bdfa0ca52ddf5b1adf2b61cab1d1eb
SDWebImageYYPlugin: daa0b74897dd769fa63092e60cde49f3719048bc
SDWebImage: 62ae4a18473520c67b79e9724c31a63599cc9423
SDWebImageYYPlugin: 6808c1a0e3f59feb604c1f492e02dddf51c83b10
YYCache: 8105b6638f5e849296c71f331ff83891a4942952
YYImage: 1e1b62a9997399593e4b9c4ecfbbabbf1d3f3b54

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ @implementation YYCache (SDAdditions)
queryDiskBlock(diskData);
} else {
// YYDiskCache's completion block is called in the global queue
[self.diskCache objectForKey:key withBlock:^(NSString * _Nonnull key, id<NSObject, NSCoding> _Nullable object) {
[self.diskCache objectForKey:key withBlock:^(NSString * _Nonnull key, id<NSCoding> _Nullable object) {
NSData *diskData = nil;
if ([object isKindOfClass:[NSData class]]) {
if ([(id<NSObject>)object isKindOfClass:[NSData class]]) {
diskData = (NSData *)object;
}
queryDiskBlock(diskData);
Expand Down