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 2018/01/24 03:36:51 UTC
incubator-weex git commit: * [iOS] remove preprocess definition.
Repository: incubator-weex
Updated Branches:
refs/heads/master 6bcb5a462 -> a557b79ae
* [iOS] remove preprocess definition.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/a557b79a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/a557b79a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/a557b79a
Branch: refs/heads/master
Commit: a557b79ae50151f30eae3fd164b81330296da6ac
Parents: 6bcb5a4
Author: acton393 <zh...@gmail.com>
Authored: Wed Jan 24 11:36:38 2018 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Jan 24 11:36:38 2018 +0800
----------------------------------------------------------------------
ios/playground/WeexDemo/Scanner/WXScannerVC.m | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/a557b79a/ios/playground/WeexDemo/Scanner/WXScannerVC.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/Scanner/WXScannerVC.m b/ios/playground/WeexDemo/Scanner/WXScannerVC.m
index d2be0c6..0f0f678 100644
--- a/ios/playground/WeexDemo/Scanner/WXScannerVC.m
+++ b/ios/playground/WeexDemo/Scanner/WXScannerVC.m
@@ -23,9 +23,8 @@
#import "UIViewController+WXDemoNaviBar.h"
#import "WXDemoViewController.h"
#import "WXDebugTool.h"
-#if DEBUG
+
#import <TBWXDevTool/WXDevTool.h>
-#endif
#import <AudioToolbox/AudioToolbox.h>
@interface WXScannerVC ()
@@ -210,14 +209,12 @@
}
return YES;
} else if ([[elts firstObject] isEqualToString:@"_wx_devtool"]) {
-#ifdef DEBUG
NSString *devToolURL = [[elts lastObject] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[WXDevTool launchDevToolDebugWithUrl:devToolURL];
if ([[[self.navigationController viewControllers] objectAtIndex:0] isKindOfClass:NSClassFromString(@"WXDemoViewController")]) {
WXDemoViewController * vc = (WXDemoViewController*)[[self.navigationController viewControllers] objectAtIndex:0];
[self.navigationController popToViewController:vc animated:NO];
}
-#endif
return YES;
}