Skip to content

Commit

Permalink
Release 1.5.2
Browse files Browse the repository at this point in the history
1. 修改 String 类型属性长度限制,256=>8192
2. 修复可视化埋点中,UIWindow对象切换导致的问题
  • Loading branch information
Yuhan ZOU committed Jul 5, 2016
1 parent 25c4819 commit 4b05a0b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 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.5.1"
s.version = "1.5.2"
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
10 changes: 7 additions & 3 deletions SensorsAnalyticsSDK/SensorsAnalyticsSDK/SAObjectSerializer.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ - (NSDictionary *)serializedObjectsWithRootObject:(id)rootObject {

SAObjectSerializerContext *context = [[SAObjectSerializerContext alloc] initWithRootObject:rootObject];

while ([context hasUnvisitedObjects]) {
[self visitObject:[context dequeueUnvisitedObject] withContext:context];
@try {
while ([context hasUnvisitedObjects]) {
[self visitObject:[context dequeueUnvisitedObject] withContext:context];
}
} @catch (NSException *e) {
SAError(@"Failed to serialize objects: %@", e);
}

return @{
@"objects" : [context allSerializedObjects],
@"rootObject": [_objectIdentityProvider identifierForObject:rootObject]
Expand Down
8 changes: 4 additions & 4 deletions SensorsAnalyticsSDK/SensorsAnalyticsSDK/SensorsAnalyticsSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#import "SASwizzler.h"
#import "SensorsAnalyticsSDK.h"

#define VERSION @"1.5.1"
#define VERSION @"1.5.2"

#define PROPERTY_LENGTH_LIMITATION 255
#define PROPERTY_LENGTH_LIMITATION 8191

@implementation SensorsAnalyticsDebugException

Expand Down Expand Up @@ -1254,10 +1254,10 @@ - (void)checkForConfigure {
self.eventBindings = parsedEventBindings;
[self archiveEventBindings];
} else {
SALog(@"%@ Tracking events check response format error: %@", self, object);
SALog(@"%@ the configure of VTrack is not loaded: %@", self, object);
}
} else {
SALog(@"%@ Tracking events check response format error: %@", self, object);
SALog(@"%@ the configure of VTrack is not loaded: %@", self, object);
}
};

Expand Down

0 comments on commit 4b05a0b

Please sign in to comment.