From 6fc74d9bfa129471df57b693c33ea34b3da86c04 Mon Sep 17 00:00:00 2001 From: Ma Date: Thu, 15 Aug 2019 18:18:26 +0800 Subject: [PATCH] fix dependency problem --- YYWebImage/YYImageCache.m | 1 - YYWebImage/YYWebImageManager.m | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/YYWebImage/YYImageCache.m b/YYWebImage/YYImageCache.m index 65b2779..a492dea 100644 --- a/YYWebImage/YYImageCache.m +++ b/YYWebImage/YYImageCache.m @@ -10,7 +10,6 @@ // #import "YYImageCache.h" -#import "YYImage.h" #import "UIImage+YYWebImage.h" #if __has_include() diff --git a/YYWebImage/YYWebImageManager.m b/YYWebImage/YYWebImageManager.m index 784fd8b..3fa044c 100644 --- a/YYWebImage/YYWebImageManager.m +++ b/YYWebImage/YYWebImageManager.m @@ -12,9 +12,14 @@ #import "YYWebImageManager.h" #import "YYImageCache.h" #import "YYWebImageOperation.h" -#import "YYImageCoder.h" #import +#if __has_include( ) +#import +#else +#import "YYImageCoder.h" +#endif + #define kNetworkIndicatorDelay (1/30.0)