feat:storage plugin done

This commit is contained in:
pengfei.zhou
2019-11-22 17:07:16 +08:00
parent b19a3e32f3
commit 4835030ef3
4 changed files with 44 additions and 7 deletions

View File

@@ -31,6 +31,9 @@
@implementation DoricShaderPlugin
- (void)render:(NSDictionary *)argument {
if(!argument) {
return;
}
__weak typeof(self) _self = self;
dispatch_async(dispatch_get_main_queue(), ^{
__strong typeof(_self) self = _self;

View File

@@ -33,6 +33,7 @@ - (instancetype)initWithContext:(DoricContext *)doricContext {
if (self = [super initWithContext:doricContext]) {
_basePath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]
stringByAppendingPathComponent:@"doric"];
_cachedMap = [NSMutableDictionary new];
}
return self;
}