From d0f4fdd98b4f465cedd308e28743e9772d88e6b4 Mon Sep 17 00:00:00 2001 From: pengfeizhou Date: Mon, 1 Feb 2021 18:13:13 +0800 Subject: [PATCH] iOS:fix compile error --- .../Pod/Classes/Plugin/DoricStoragePlugin.m | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m b/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m index e288cabd..fdf232ef 100644 --- a/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m +++ b/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m @@ -18,12 +18,11 @@ // #import "DoricStoragePlugin.h" +#import "DoricExtensions.h" #if __has_include() #import -#import -#import #define DoricCache PINCache @@ -119,6 +118,39 @@ - (void)removeAllObjectsWithBlock:(void (^)())block { }]; } @end + +#else + +@interface DoricCache : NSObject +- (instancetype)initWithName:(NSString *)prefix rootPath:(NSString *)path; + +- (void)setObject:(NSString *)value forKey:(NSString *)key withBlock:(void (^)())block; + +- (void)objectForKey:(NSString *)key withBlock:(void (^)(NSString *, id ))block; + +- (void)removeObjectForKey:(NSString *)key withBlock:(void (^)(NSString *))block; + +- (void)removeAllObjectsWithBlock:(void (^)())pFunction; +@end + +@implementation DoricCache +- (instancetype)initWithName:(NSString *)prefix rootPath:(NSString *)path { + return [self init]; +} + +- (void)setObject:(NSString *)value forKey:(NSString *)key withBlock:(void (^)())block { +} + +- (void)objectForKey:(NSString *)key withBlock:(void (^)(NSString *, id ))block { +} + +- (void)removeObjectForKey:(NSString *)key withBlock:(void (^)(NSString *))block { +} + +- (void)removeAllObjectsWithBlock:(void (^)())block { +} +@end + #endif