Repository: incubator-weex Updated Branches: refs/heads/master de14e0d2c -> ea2e12f94
* [iOS] add missing md5 value and content-length for jsbundle Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/ea2e12f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/ea2e12f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/ea2e12f9 Branch: refs/heads/master Commit: ea2e12f943a4c167f6d5b9659e8b90515ec63aa5 Parents: de14e0d Author: acton393 <zhangxing610...@gmail.com> Authored: Mon Apr 16 18:11:03 2018 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Mon Apr 16 18:11:03 2018 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ea2e12f9/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m index 102b408..5c4063e 100644 --- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m +++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m @@ -242,6 +242,15 @@ typedef enum : NSUInteger { [jsExceptionHandler onRuntimeCheckException:runtimeCheckException]; } } + if (!self.userInfo) { + self.userInfo = [NSMutableDictionary new]; + } + if (!self.userInfo[@"jsMainBundleStringContentLength"]) { + self.userInfo[@"jsMainBundleStringContentLength"] = @([mainBundleString length]); + } + if (!self.userInfo[@"jsMainBundleStringContentLength"]) { + self.userInfo[@"jsMainBundleStringContentMd5"] = [WXUtility md5:mainBundleString]; + } WX_MONITOR_INSTANCE_PERF_START(WXPTFirstScreenRender, self); WX_MONITOR_INSTANCE_PERF_START(WXPTAllRender, self);