Disable HEIC encoding check temporally for travis-ci

This commit is contained in:
DreamPiggy 2018-08-10 23:49:35 +08:00
parent 5ea4b803d0
commit 8b26091741
1 changed files with 6 additions and 1 deletions

View File

@ -114,9 +114,14 @@
- (void)test13ThatHEICWorks {
if (@available(iOS 11, macOS 10.13, *)) {
NSURL *heicURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImage" withExtension:@"heic"];
#if SD_UIKIT
BOOL supportsEncoding = YES; // iPhone Simulator after Xcode 9.3 support HEIC encoding
#else
BOOL supportsEncoding = NO; // Travis-CI Mac env currently does not support HEIC encoding
#endif
[self verifyCoder:[SDImageIOCoder sharedCoder]
withLocalImageURL:heicURL
supportsEncoding:YES
supportsEncoding:supportsEncoding
isAnimatedImage:NO];
}
}