iOS:use macro to control use of image and cache library

This commit is contained in:
pengfei.zhou
2021-09-07 11:19:03 +08:00
committed by osborn
parent 0c5470d120
commit 31fb5186d3
3 changed files with 65 additions and 17 deletions

View File

@@ -20,8 +20,9 @@
#import "DoricStoragePlugin.h"
#import "DoricExtensions.h"
#import "DoricSingleton.h"
#import "DoricThirdParty.h"
#if __has_include(<PINCache/PINCache.h>)
#if DORIC_USE_PINCACHE
#import <PINCache/PINCache.h>
@@ -64,7 +65,7 @@ - (void)removeAllObjectsWithBlock:(void (^)(void))block {
}
@end
#elif __has_include(<YYCache/YYCache.h>)
#elif DORIC_USE_YYCACHE
#import <YYCache/YYCache.h>
@@ -79,7 +80,7 @@ - (instancetype)initWithName:(NSString *)prefix rootPath:(NSString *)path {
}
@end
#elif __has_include(<TMCache/TMCache.h>)
#elif DORIC_USE_TMCACHE
#import <TMCache/TMCache.h>