Skip to content

Commit

Permalink
Release 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujg-00 committed Aug 14, 2021
1 parent a0c5ba2 commit 71fe45f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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 = "3.1.0"
s.version = "3.1.1"
s.summary = "The official 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
4 changes: 3 additions & 1 deletion SensorsAnalyticsSDK/Core/SAModuleManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ - (void)disableAllModules {
// 当定位弹窗出现时,如果关闭了定位模块,会导致弹窗消失
if (![key isEqualToString:kSALocationModuleName] &&
![key isEqualToString:kSADeviceOrientationModuleName] &&
![key isEqualToString:kSADebugModeModuleName]) {
![key isEqualToString:kSADebugModeModuleName] &&
![key isEqualToString:kSAEncryptModuleName]
) {
[self.modules removeObjectForKey:key];
}
}
Expand Down
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#import "SAProfileEventObject.h"
#import "SAJSONUtil.h"

#define VERSION @"3.1.0"
#define VERSION @"3.1.1"

void *SensorsAnalyticsQueueTag = &SensorsAnalyticsQueueTag;

Expand Down
8 changes: 4 additions & 4 deletions SensorsAnalyticsSDK/Core/Tracker/SAEventTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ - (BOOL)canFlush {
return YES;
}

/// 筛选加密数据,并对未加密的数据尝试加密
/// 即使未开启加密,也可以进行筛选,可能存在加密开关的情况
/// @param records 数据
- (NSArray<SAEventRecord *> *)encryptEventRecords:(NSArray<SAEventRecord *> *)records {
if (!SAModuleManager.sharedInstance.encryptManager) {
return records;
}
NSMutableArray *encryptRecords = [NSMutableArray arrayWithCapacity:records.count];
for (SAEventRecord *record in records) {
if (record.isEncrypted) {
Expand Down Expand Up @@ -137,7 +137,7 @@ - (void)flushRecordsWithSize:(NSUInteger)size repeatCount:(NSInteger)repeatCount
return;
}

// 尝试加密
// 尝试加密,筛选加密数据
NSArray<SAEventRecord *> *encryptRecords = [self encryptEventRecords:records];

// 获取查询到的数据的 id
Expand Down

0 comments on commit 71fe45f

Please sign in to comment.