feat:avoid iOS dealloc JSValue in main thread,this may cause crash in JavaScriptCore

This commit is contained in:
pengfeizhou
2021-01-06 11:56:30 +08:00
committed by osborn
parent 967ad27a22
commit 2100eff054
7 changed files with 29 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ @implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"Doric Demo";
[self.navigationController.navigationBar setBackgroundImage:UIImageWithColor(UIColor.whiteColor) forBarMetrics:UIBarMetricsDefault];
NSString *path = [[NSBundle mainBundle] bundlePath];
NSString *demoPath = [path stringByAppendingPathComponent:@"src"];
NSFileManager *mgr = [NSFileManager defaultManager];