fix build not call when debugging

This commit is contained in:
王劲鹏 2020-05-18 19:07:41 +08:00 committed by osborn
parent b97d2f0d94
commit 6080717940

View File

@ -125,14 +125,16 @@ - (void)onEnterDebugEvent {
- (void)onStopDebugEvent {
_context.driver = [DoricNativeDriver instance];
_context.rootNode.viewId = nil;
[_context callEntity:DORIC_ENTITY_INIT, _context.initialParams, nil];
[_context callEntity:DORIC_ENTITY_INIT, _context.extra, nil];
[_context callEntity:DORIC_ENTITY_CREATE, nil];
[_context callEntity:DORIC_ENTITY_BUILD withArgumentsArray:@[_context.initialParams]];
}
- (void)onDebuggerReadyEvent {
_context.driver = _driver;
_context.rootNode.viewId = nil;
[_context callEntity:DORIC_ENTITY_INIT, _context.initialParams, nil];
[_context callEntity:DORIC_ENTITY_INIT, _context.extra, nil];
[_context callEntity:DORIC_ENTITY_CREATE, nil];
[_context callEntity:DORIC_ENTITY_BUILD withArgumentsArray:@[_context.initialParams]];
}
@end