Fix SDWebImage v4 can not import libwebp framework's header files.

Fix FLAnimatedImageView mixed local and global import
This commit is contained in:
DreamPiggy 2017-08-04 19:00:23 +08:00
parent 6e70dbc5ad
commit 44e80816f0
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"