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/08/01 03:00:32 UTC

incubator-weex git commit: * [ios] fix use public header method @notdanger

Repository: incubator-weex
Updated Branches:
  refs/heads/0.16-dev 5951404d8 -> b2da213a7


* [ios] fix use public header method  @notdanger


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

Branch: refs/heads/0.16-dev
Commit: b2da213a7654a380c467c63f4fcd02cba2652e21
Parents: 5951404
Author: acton393 <zh...@gmail.com>
Authored: Mon Jul 31 10:45:20 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Mon Jul 31 10:45:20 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXAComponent.m        | 1 +
 ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m    | 1 +
 ios/sdk/WeexSDK/Sources/Component/WXVideoComponent.m    | 1 +
 ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m      | 1 +
 ios/sdk/WeexSDK/Sources/Manager/WXRuleManager.m         | 1 +
 ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m         | 1 +
 ios/sdk/WeexSDK/Sources/Protocol/WXURLRewriteProtocol.h | 2 +-
 7 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2da213a/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
index c777440..b3092ea 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
@@ -23,6 +23,7 @@
 #import "WXLog.h"
 #import "WXComponent+Events.h"
 #import "WXURLRewriteProtocol.h"
+#import "WXSDKEngine.h"
 
 @interface WXAComponent()
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2da213a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
index 79e6225..1cbf06a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -27,6 +27,7 @@
 #import "WXURLRewriteProtocol.h"
 #import "WXRoundedRect.h"
 #import "UIBezierPath+Weex.h"
+#import "WXSDKEngine.h"
 
 @interface WXImageView : UIImageView
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2da213a/ios/sdk/WeexSDK/Sources/Component/WXVideoComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXVideoComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXVideoComponent.m
index 15c674b..d9aadc4 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXVideoComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXVideoComponent.m
@@ -20,6 +20,7 @@
 #import "WXVideoComponent.h"
 #import "WXHandlerFactory.h"
 #import "WXURLRewriteProtocol.h"
+#import "WXSDKEngine.h"
 
 #import <AVFoundation/AVPlayer.h>
 #import <AVKit/AVPlayerViewController.h>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2da213a/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
index 0ae4974..4aba381 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
@@ -22,6 +22,7 @@
 #import "WXUtility.h"
 #import "WXHandlerFactory.h"
 #import "WXURLRewriteProtocol.h"
+#import "WXSDKEngine.h"
 
 #import <JavaScriptCore/JavaScriptCore.h>
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2da213a/ios/sdk/WeexSDK/Sources/Manager/WXRuleManager.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Manager/WXRuleManager.m b/ios/sdk/WeexSDK/Sources/Manager/WXRuleManager.m
index 00a2772..dc12207 100644
--- a/ios/sdk/WeexSDK/Sources/Manager/WXRuleManager.m
+++ b/ios/sdk/WeexSDK/Sources/Manager/WXRuleManager.m
@@ -25,6 +25,7 @@
 #import "WXURLRewriteProtocol.h"
 #import "WXComponentManager.h"
 #import "WXDefine.h"
+#import "WXSDKEngine.h"
 
 @interface WXRuleManager()
 @property (nonatomic, strong) WXThreadSafeMutableDictionary *fontStorage;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2da213a/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m b/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m
index cb591bd..a386fd0 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m
@@ -24,6 +24,7 @@
 #import "WXNetworkProtocol.h"
 #import "WXURLRewriteProtocol.h"
 #import "WXResourceLoader.h"
+#import "WXSDKEngine.h"
 
 @implementation WXStreamModule
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2da213a/ios/sdk/WeexSDK/Sources/Protocol/WXURLRewriteProtocol.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Protocol/WXURLRewriteProtocol.h b/ios/sdk/WeexSDK/Sources/Protocol/WXURLRewriteProtocol.h
index 2ed72e4..b17dbd7 100644
--- a/ios/sdk/WeexSDK/Sources/Protocol/WXURLRewriteProtocol.h
+++ b/ios/sdk/WeexSDK/Sources/Protocol/WXURLRewriteProtocol.h
@@ -24,7 +24,7 @@
 
 #define WX_REWRITE_URL(url, resourceType, instance)\
 do {\
-    id<WXURLRewriteProtocol> rewriteHandler = [WXHandlerFactory handlerForProtocol:@protocol(WXURLRewriteProtocol)];\
+    id<WXURLRewriteProtocol> rewriteHandler = [WXSDKEngine handlerForProtocol:@protocol(WXURLRewriteProtocol)];\
     if ([rewriteHandler respondsToSelector:@selector(rewriteURL:withResourceType:withInstance:)]) {\
         newURL = [[rewriteHandler rewriteURL:url withResourceType:resourceType withInstance:instance].absoluteString copy];\
     }\