Skip to content

Commit c48f5b4

Browse files
committed
Update to be compatible for the latest 5.x branch
1 parent 56798ce commit c48f5b4

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Example/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- SDWebImage/Core (5.0.0-beta)
2+
- SDWebImage/Core (5.0.0-beta2)
33
- SDWebImageYYPlugin (0.1.0):
44
- SDWebImage/Core (>= 5.0.0-beta)
55
- SDWebImageYYPlugin/YYCache (= 0.1.0)
@@ -26,11 +26,11 @@ EXTERNAL SOURCES:
2626

2727
CHECKOUT OPTIONS:
2828
SDWebImage:
29-
:commit: fe2fede60f9c6efcadfac8b90e8cae579656fffb
29+
:commit: 2bb336bc12a5690dd11988c0bc8bef2c7318508d
3030
:git: [email protected]:rs/SDWebImage.git
3131

3232
SPEC CHECKSUMS:
33-
SDWebImage: 55c787b164fabe07f2a4d5307f6e1be7960fb9be
33+
SDWebImage: 8e4aaf5805e954ad426702adf5a8c012a7f581d1
3434
SDWebImageYYPlugin: 4a756eec055647c989fe9d54f9535780bc0e0465
3535
YYCache: 8105b6638f5e849296c71f331ff83891a4942952
3636
YYImage: 1e1b62a9997399593e4b9c4ecfbbabbf1d3f3b54

SDWebImageYYPlugin/Classes/YYImage/YYImageBridge/YYImage+SDAddtions.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ @implementation YYImage (SDAddtions)
1111

1212
#pragma mark - SDAnimatedImage
1313

14-
- (instancetype)initWithAnimatedCoder:(id<SDAnimatedImageCoder>)animatedCoder scale:(CGFloat)scale {
15-
// Call `YYImage`'s initializer with animated image data
16-
NSData *data = animatedCoder.animatedImageData;
14+
- (instancetype)initWithData:(NSData *)data scale:(CGFloat)scale options:(SDImageCoderOptions *)options {
1715
return [self initWithData:data scale:scale];
1816
}
1917

18+
- (instancetype)initWithAnimatedCoder:(id<SDAnimatedImageCoder>)animatedCoder scale:(CGFloat)scale {
19+
// YYImage does not support progressive animation decoding
20+
return nil;
21+
}
22+
2023
- (void)preloadAllFrames {
2124
[self setPreloadAllAnimatedImageFrames:YES];
2225
}

0 commit comments

Comments
 (0)