feat: add DoricDevAssetsLoader in dev mode

This commit is contained in:
pengfei.zhou
2021-12-07 18:53:43 +08:00
committed by osborn
parent 1ba4336857
commit 7b44801b17
5 changed files with 66 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
#import "DoricDevMonitor.h"
#import "DoricDevPerformanceAnchorHook.h"
#import "DoricDevkitPlugin.h"
#import "DoricDevAssetsLoader.h"
@interface DoricContextDebuggable : NSObject
@property(nonatomic, weak) DoricContext *doricContext;
@@ -83,6 +84,7 @@ - (instancetype)init {
[DoricSingleton.instance.nativeDriver.registry registerMonitor:[DoricDevMonitor new]];
DoricSingleton.instance.nativeDriver.registry.globalPerformanceAnchorHook = [DoricDevPerformanceAnchorHook new];
[DoricSingleton.instance.nativeDriver.registry registerNativePlugin:DoricDevkitPlugin.class withName:@"devkit"];
[DoricSingleton.instance.nativeDriver.registry.loaderManager registerLoader:[DoricDevAssetsLoader new]];
}
return self;
}