Skip to content

Commit 44dd691

Browse files
committed
Release 1.7.3
1 parent 8f437ea commit 44dd691

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
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.7.2"
3+
s.version = "1.7.3"
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/MessageQueueBySqlite.m

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,14 @@ - (id)initWithFilePath:(NSString *)filePath {
5858

5959
- (void)addObejct:(id)obj withType:(NSString *)type {
6060
if (_messageCount >= MAX_MESSAGE_SIZE) {
61-
SAError(@"touch MAX_MESSAGE_SIZE:%d, do not insert", MAX_MESSAGE_SIZE);
62-
[self removeFirstRecords:100 withType:@"Post"];
63-
return;
61+
SAError(@"touch MAX_MESSAGE_SIZE:%d, try to delete some old events", MAX_MESSAGE_SIZE);
62+
BOOL ret = [self removeFirstRecords:100 withType:@"Post"];
63+
if (ret) {
64+
_messageCount = [self sqliteCount];
65+
} else {
66+
SAError(@"touch MAX_MESSAGE_SIZE:%d, try to delete some old events FAILED", MAX_MESSAGE_SIZE);
67+
return;
68+
}
6469
}
6570
NSData* jsonData = [_jsonUtil JSONSerializeObject:obj];
6671
NSString* query = @"INSERT INTO dataCache(type, content) values(?, ?)";

SensorsAnalyticsSDK/SensorsAnalyticsSDK/SensorsAnalyticsSDK.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#import "JSONUtil.h"
2929
#import "UIApplication+AutoTrack.h"
3030
#import "SASwizzle.h"
31-
#define VERSION @"1.7.2"
31+
#define VERSION @"1.7.3"
3232

3333
#define PROPERTY_LENGTH_LIMITATION 8191
3434

0 commit comments

Comments
 (0)