This is an automated email from the ASF dual-hosted git repository.
moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new 08345d7 [iOS] close MultiJSThread and add some log
new 984c2f2 Merge pull request #2909 from jianhan-he/master
08345d7 is described below
commit 08345d7c6d1fb005a9d70986366508e07d55dc66
Author: linghe.lh <[email protected]>
AuthorDate: Mon Sep 16 18:58:21 2019 +0800
[iOS] close MultiJSThread and add some log
---
ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.m | 2 +-
ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.m
b/ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.m
index 207abab..ff89cfc 100644
--- a/ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.m
+++ b/ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.m
@@ -69,7 +69,7 @@ static NSThread *WXBackupBridgeThread;
self = [super init];
if (self) {
_bridgeCtx = [[WXBridgeContext alloc] init];
- _supportMultiJSThread = YES;
+ _supportMultiJSThread = NO;
_jsTaskQueue = [NSMutableArray array];
}
return self;
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
index adc6293..8f4bf9e 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
@@ -315,6 +315,7 @@ typedef enum : NSUInteger {
WXLogError(@"Url must be passed if you use renderWithURL");
return;
}
+ WXLogInfo(@"pageid: %@ renderWithURL: %@", _instanceId,
url.absoluteString);
[WXCoreBridge install];
if (_useBackupJsThread) {
[[WXSDKManager bridgeMgr] executeJSTaskQueue];
@@ -337,6 +338,8 @@ typedef enum : NSUInteger {
{
_options = [options isKindOfClass:[NSDictionary class]] ? options : nil;
_jsData = data;
+ WXLogInfo(@"pageid: %@ renderView pageNmae: %@ options: %@", _instanceId,
_pageName, options);
+
[WXCoreBridge install];
if (_useBackupJsThread) {
[[WXSDKManager bridgeMgr] executeJSTaskQueue];