Fix the Travis-CI test issue for macOS 10.15

This commit is contained in:
DreamPiggy 2019-09-22 16:03:45 +08:00
parent 2afd943cd9
commit f80a2840c0
1 changed files with 3 additions and 1 deletions

View File

@ -144,15 +144,17 @@
if (@available(iOS 11, macOS 10.13, *)) {
NSURL *heicURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImageAnimated" withExtension:@"heic"];
#if SD_UIKIT
BOOL isAnimatedImage = YES;
BOOL supportsEncoding = YES; // iPhone Simulator after Xcode 9.3 support HEIC encoding
#else
BOOL isAnimatedImage = NO; // Travis-CI Mac env does not upgrade to macOS 10.15
BOOL supportsEncoding = NO; // Travis-CI Mac env currently does not support HEIC encoding
#endif
[self verifyCoder:[SDImageHEICCoder sharedCoder]
withLocalImageURL:heicURL
supportsEncoding:supportsEncoding
encodingFormat:SDImageFormatHEIC
isAnimatedImage:YES];
isAnimatedImage:isAnimatedImage];
}
}