Skip to content

Commit

Permalink
Release 1.5.1
Browse files Browse the repository at this point in the history
1. 修复可视化埋点的问题
  • Loading branch information
Yuhan ZOU committed Jun 21, 2016
1 parent ccbb996 commit 25c4819
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/SensorsAnalyticsSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SensorsAnalyticsSDK"
s.version = "1.4.9"
s.version = "1.5.1"
s.summary = "The offical iOS SDK of Sensors Analytics."
s.homepage = "http://www.sensorsdata.cn"
s.source = { :git => 'https://github.com/sensorsdata/sa-sdk-ios.git', :tag => "v#{s.version}" }
Expand Down
21 changes: 17 additions & 4 deletions SensorsAnalyticsSDK/SensorsAnalyticsSDK/SADesignerConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#import "SADesignerSnapshotMessage.h"
#import "SADesignerSessionCollection.h"
#import "SALogger.h"
#import "SensorsAnalyticsSDK.h"

@interface SADesignerConnection () <SAWebSocketDelegate>

Expand Down Expand Up @@ -239,16 +240,28 @@ - (void)webSocket:(SAWebSocket *)webSocket
}

- (void)showConnectedView {
if(!_recordingView) {
UIWindow *mainWindow = [[UIApplication sharedApplication] delegate].window;
_recordingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, mainWindow.frame.size.width, 1.0)];
_recordingView.backgroundColor = [UIColor colorWithRed:4/255.0f green:180/255.0f blue:4/255.0f alpha:1.0];
if (true) {
return;
}
if (!_recordingView) {
UIWindow *mainWindow = [SensorsAnalyticsSDK sharedInstance].vtrackWindow;
if (mainWindow == nil) {
mainWindow = [[UIApplication sharedApplication] delegate].window;
}
if (mainWindow == nil) {
return;
}
_recordingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, mainWindow.frame.size.width, 20.0)];
_recordingView.backgroundColor = [UIColor colorWithRed:83/255.0f green:177/255.0f blue:117/255.0f alpha:0.8];
[mainWindow addSubview:_recordingView];
[mainWindow bringSubviewToFront:_recordingView];
}
}

- (void)hideConnectedView {
if (true) {
return;
}
if (_recordingView) {
[_recordingView removeFromSuperview];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "SASwizzler.h"
#import "SensorsAnalyticsSDK.h"

#define VERSION @"1.4.9"
#define VERSION @"1.5.1"

#define PROPERTY_LENGTH_LIMITATION 255

Expand Down

0 comments on commit 25c4819

Please sign in to comment.