Merge pull request #1983 from dreampiggy/fix_webp_import_issue

Fix SDWebImage v4 can not import libwebp framework's header files.
This commit is contained in:
Bogdan Poplauschi 2017-10-06 20:52:12 +03:00 committed by GitHub
commit 4258154c2d
3 changed files with 9 additions and 3 deletions

View File

@ -13,7 +13,7 @@
#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#import <FLAnimatedImage/FLAnimatedImage.h>
#else
#import "FLAnimatedImageView.h"
#import "FLAnimatedImage.h"
#endif
#import "SDWebImageManager.h"

View File

@ -13,7 +13,6 @@
#import "UIView+WebCacheOperation.h"
#import "UIView+WebCache.h"
#import "NSData+ImageContentType.h"
#import "FLAnimatedImage.h"
#import "UIImageView+WebCache.h"
@implementation FLAnimatedImageView (WebCache)

View File

@ -9,10 +9,17 @@
#ifdef SD_WEBP
#import "UIImage+WebP.h"
#import "NSImage+WebCache.h"
#if __has_include(<webp/decode.h>) && __has_include(<webp/mux_types.h>) && __has_include(<webp/demux.h>)
#import <webp/decode.h>
#import <webp/mux_types.h>
#import <webp/demux.h>
#else
#import "webp/decode.h"
#import "webp/mux_types.h"
#import "webp/demux.h"
#import "NSImage+WebCache.h"
#endif
#import "objc/runtime.h"