You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/05/17 06:56:50 UTC

[1/3] incubator-weex git commit: * [ios] fix muted object when emeration [Forced Update!]

Repository: incubator-weex
Updated Branches:
  refs/heads/0.13-dev 89152a36e -> 2615aa529 (forced update)


* [ios] fix muted object when emeration


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/c155e368
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/c155e368
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/c155e368

Branch: refs/heads/0.13-dev
Commit: c155e3686f554d0a46f1992530269721101cb2d3
Parents: 3202304
Author: acton393 <zh...@gmail.com>
Authored: Wed May 17 10:58:44 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed May 17 10:58:44 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c155e368/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m b/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
index 96434b1..aa3de9d 100644
--- a/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
+++ b/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
@@ -314,6 +314,7 @@ static NSDictionary *_customEnvironment;
 }
 
 + (void)_originalRegisterComponents:(NSDictionary *)components {
+    NSMutableDictionary * mutableComponents = [components mutableCopy];
     void (^componentBlock)(id, id, BOOL *) = ^(id mKey, id mObj, BOOL * mStop) {
         
         NSString *name = mObj[@"name"];
@@ -324,23 +325,25 @@ static NSDictionary *_customEnvironment;
         }
         [self registerComponent:name withClass:NSClassFromString(componentClass) withProperties:pros];
     };
-    [components enumerateKeysAndObjectsUsingBlock:componentBlock];
+    [mutableComponents enumerateKeysAndObjectsUsingBlock:componentBlock];
     
 }
 
 + (void)_originalRegisterModules:(NSDictionary *)modules {
+    NSMutableDictionary * mutableModules = [modules mutableCopy];
     void (^moduleBlock)(id, id, BOOL *) = ^(id mKey, id mObj, BOOL * mStop) {
         
         [self registerModule:mKey withClass:NSClassFromString(mObj)];
     };
-    [modules enumerateKeysAndObjectsUsingBlock:moduleBlock];
+    [mutableModules enumerateKeysAndObjectsUsingBlock:moduleBlock];
 }
 
 + (void)_originalRegisterHandlers:(NSDictionary *)handlers {
+    NSMutableDictionary * mutableHandlers = [handlers mutableCopy];
     void (^handlerBlock)(id, id, BOOL *) = ^(id mKey, id mObj, BOOL * mStop) {
         [self registerHandler:mObj withProtocol:NSProtocolFromString(mKey)];
     };
-    [handlers enumerateKeysAndObjectsUsingBlock:handlerBlock];
+    [mutableHandlers enumerateKeysAndObjectsUsingBlock:handlerBlock];
 }
 
 @end


[2/3] incubator-weex git commit: * [ios] notify view load when view loaded

Posted by ac...@apache.org.
* [ios] notify view load when view loaded


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/bc29616a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/bc29616a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/bc29616a

Branch: refs/heads/0.13-dev
Commit: bc29616a41625ad2f3baa9ec292ebd777d31c08c
Parents: c155e36
Author: acton393 <zh...@gmail.com>
Authored: Wed May 17 11:31:35 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed May 17 11:31:35 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Model/WXComponent.m | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bc29616a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
index f10e9eb..8ee5393 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
@@ -248,6 +248,7 @@
         }
         
         [self setNeedsDisplay];
+        [[NSNotificationCenter defaultCenter] postNotificationName:WX_COMPONENT_NOTIFICATION_VIEW_LOADED object:self];
         [self viewDidLoad];
         
         if (_lazyCreateView) {


[3/3] incubator-weex git commit: * [ios] add macro

Posted by ac...@apache.org.
* [ios] add macro


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2615aa52
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2615aa52
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2615aa52

Branch: refs/heads/0.13-dev
Commit: 2615aa52925f50f90e54e1a80b118935951b8522
Parents: bc29616
Author: acton393 <zh...@gmail.com>
Authored: Wed May 17 11:39:49 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed May 17 11:39:49 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Utility/WXDefine.h | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2615aa52/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h b/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
index 12b56d7..ac05e59 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
@@ -79,6 +79,8 @@ parts = [parts subarrayWithRange:(NSRange){0, parts.count - 1}];\
 
 #define WX_INSTANCE_NOTIFICATION_UPDATE_STATE @"WXInstUpdateState"
 
+#define WX_COMPONENT_NOTIFICATION_VIEW_LOADED    @"WXComponentViewLoaded"
+
 #define WX_COMPONENT_THREAD_NAME @"com.taobao.weex.component"
 
 #define WX_BRIDGE_THREAD_NAME @"com.taobao.weex.bridge"