Skip to content

Commit

Permalink
perf(sdk): improve by remove WXTracingManager header
Browse files Browse the repository at this point in the history
  • Loading branch information
erha19 committed Jan 3, 2019
1 parent 468c9c2 commit 73b1d4b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions WXDevtool.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pod::Spec.new do |s|

s.name = "WXDevtool"

s.version = "0.17.1"
s.version = "0.20.0"

s.summary = "WXDevtool Source."

Expand All @@ -30,7 +30,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "8.0"

# cocoapods
s.source = { :git => "https://github.com/weexteam/weex-devtool-iOS.git", :tag => "0.17.1" }
s.source = { :git => "https://github.com/weexteam/weex-devtool-iOS.git", :tag => "0.20.0" }
s.source_files = "sdk/WXDevTool/Source/**/*.{h,m,mm,c}"

s.requires_arc = true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
1 change: 0 additions & 1 deletion sdk/WXDevTool/Source/PonyDebugger/WXDebugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import <WeexSDK/WeexSDK.h>
#import <WeexSDK/WXTracingManager.h>

#pragma mark - Preprocessor

Expand Down
2 changes: 1 addition & 1 deletion sdk/WXDevTool/Source/WXHeader/WXDevTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "WXDevToolType.h"
#import <WeexSDK/WeexSDK.h>

#define WXDevtool_VERSION @"0.17.1"
#define WXDevtool_VERSION @"0.20.0"

@implementation WXDevTool

Expand Down
2 changes: 0 additions & 2 deletions sdk/WXDevTool/Source/WXTracing/WXNetwork/WXTracingUtility.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
#import <WeexSDK/WXTracingManager.h>

#define FLEXFloor(x) (floor([[UIScreen mainScreen] scale] * (x)) / [[UIScreen mainScreen] scale])
#define TracingResetLogDataNoti @"TracingResetLogDataNoti"
Expand Down Expand Up @@ -52,7 +51,6 @@

+ (NSArray *)allWindows;
+ (NSString *)tracingTime;
+ (NSArray *)formatTask:(WXTracingTask *)task;

// Swizzling utilities

Expand Down
8 changes: 0 additions & 8 deletions sdk/WXDevTool/Source/WXTracing/WXNetwork/WXTracingUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,6 @@ +(NSString *)tracingTime
NSString *str = [outputFormatter stringFromDate:[NSDate date]];
return str;
}
+ (NSArray *)formatTask:(WXTracingTask *)task
{
NSMutableArray *array = [NSMutableArray new];
for (WXTracing *t in task.tracings) {
[array addObject:[t dictionary]];
}
return array;
}

// Swizzling utilities
+ (SEL)swizzledSelectorForSelector:(SEL)selector
Expand Down

0 comments on commit 73b1d4b

Please sign in to comment.