Fix SDWebImage v4 can not import libwebp framework's header files.
Fix FLAnimatedImageView mixed local and global import
This commit is contained in:
parent
6e70dbc5ad
commit
44e80816f0
|
@ -13,7 +13,7 @@
|
||||||
#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
|
#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
|
||||||
#import <FLAnimatedImage/FLAnimatedImage.h>
|
#import <FLAnimatedImage/FLAnimatedImage.h>
|
||||||
#else
|
#else
|
||||||
#import "FLAnimatedImageView.h"
|
#import "FLAnimatedImage.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#import "SDWebImageManager.h"
|
#import "SDWebImageManager.h"
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
#import "UIView+WebCacheOperation.h"
|
#import "UIView+WebCacheOperation.h"
|
||||||
#import "UIView+WebCache.h"
|
#import "UIView+WebCache.h"
|
||||||
#import "NSData+ImageContentType.h"
|
#import "NSData+ImageContentType.h"
|
||||||
#import "FLAnimatedImage.h"
|
|
||||||
#import "UIImageView+WebCache.h"
|
#import "UIImageView+WebCache.h"
|
||||||
|
|
||||||
@implementation FLAnimatedImageView (WebCache)
|
@implementation FLAnimatedImageView (WebCache)
|
||||||
|
|
|
@ -9,10 +9,17 @@
|
||||||
#ifdef SD_WEBP
|
#ifdef SD_WEBP
|
||||||
|
|
||||||
#import "UIImage+WebP.h"
|
#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/decode.h"
|
||||||
#import "webp/mux_types.h"
|
#import "webp/mux_types.h"
|
||||||
#import "webp/demux.h"
|
#import "webp/demux.h"
|
||||||
#import "NSImage+WebCache.h"
|
#endif
|
||||||
|
|
||||||
#import "objc/runtime.h"
|
#import "objc/runtime.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue