Skip to content

Commit 4b05a0b

Browse files
author
Yuhan ZOU
committed
Release 1.5.2
1. 修改 String 类型属性长度限制,256=>8192 2. 修复可视化埋点中,UIWindow对象切换导致的问题
1 parent 25c4819 commit 4b05a0b

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

SensorsAnalyticsSDK/SensorsAnalyticsSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SensorsAnalyticsSDK"
3-
s.version = "1.5.1"
3+
s.version = "1.5.2"
44
s.summary = "The offical iOS SDK of Sensors Analytics."
55
s.homepage = "http://www.sensorsdata.cn"
66
s.source = { :git => 'https://github.com/sensorsdata/sa-sdk-ios.git', :tag => "v#{s.version}" }

SensorsAnalyticsSDK/SensorsAnalyticsSDK/SAObjectSerializer.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ - (NSDictionary *)serializedObjectsWithRootObject:(id)rootObject {
4646

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

49-
while ([context hasUnvisitedObjects]) {
50-
[self visitObject:[context dequeueUnvisitedObject] withContext:context];
49+
@try {
50+
while ([context hasUnvisitedObjects]) {
51+
[self visitObject:[context dequeueUnvisitedObject] withContext:context];
52+
}
53+
} @catch (NSException *e) {
54+
SAError(@"Failed to serialize objects: %@", e);
5155
}
52-
56+
5357
return @{
5458
@"objects" : [context allSerializedObjects],
5559
@"rootObject": [_objectIdentityProvider identifierForObject:rootObject]

SensorsAnalyticsSDK/SensorsAnalyticsSDK/SensorsAnalyticsSDK.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
#import "SASwizzler.h"
2727
#import "SensorsAnalyticsSDK.h"
2828

29-
#define VERSION @"1.5.1"
29+
#define VERSION @"1.5.2"
3030

31-
#define PROPERTY_LENGTH_LIMITATION 255
31+
#define PROPERTY_LENGTH_LIMITATION 8191
3232

3333
@implementation SensorsAnalyticsDebugException
3434

@@ -1254,10 +1254,10 @@ - (void)checkForConfigure {
12541254
self.eventBindings = parsedEventBindings;
12551255
[self archiveEventBindings];
12561256
} else {
1257-
SALog(@"%@ Tracking events check response format error: %@", self, object);
1257+
SALog(@"%@ the configure of VTrack is not loaded: %@", self, object);
12581258
}
12591259
} else {
1260-
SALog(@"%@ Tracking events check response format error: %@", self, object);
1260+
SALog(@"%@ the configure of VTrack is not loaded: %@", self, object);
12611261
}
12621262
};
12631263

0 commit comments

Comments
 (0)