This is an automated email from the ASF dual-hosted git repository.

moshen pushed a commit to branch double11-fix2
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/double11-fix2 by this push:
     new 4222c2b  [iOS] Fix the issue that iOS13 logic not working if config 
center is not set.
4222c2b is described below

commit 4222c2bd3d4378b8baeb6559747c17fcc2a99895
Author: qianyuan.wqy <[email protected]>
AuthorDate: Thu Sep 26 14:03:01 2019 +0800

    [iOS] Fix the issue that iOS13 logic not working if config center is not 
set.
---
 ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m 
b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
index 360ad4f..7a22748 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
@@ -606,6 +606,10 @@ typedef enum : NSUInteger {
         BOOL alwaysUseMRCForObjectToWeexCore = [[configCenter 
configForKey:@"iOS_weex_ext_config.alwaysUseMRC" defaultValue:@(NO) 
isDefault:NULL] boolValue];
         ConvertSwitches(isIOS13, useMRCForInvalidJSONObject, 
alwaysUseMRCForObjectToWeexCore);
     }
+    else {
+        BOOL isIOS13 = [[[UIDevice currentDevice] systemVersion] integerValue] 
== 13;
+        ConvertSwitches(isIOS13, YES, NO);
+    }
     return NO;
 }
 

Reply via email to