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