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:
commit
4258154c2d
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue