Skip to content

Commit

Permalink
Release 4.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoyue committed Jul 30, 2024
1 parent b0c7990 commit 3124e86
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 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 = "4.7.0"
s.version = "4.7.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
14 changes: 14 additions & 0 deletions SensorsAnalyticsSDK/Core/HookDelegate/NSObject+SADelegateProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
#import "NSObject+SADelegateProxy.h"
#import <objc/runtime.h>

#if TARGET_OS_IOS
#import <UIKit/UIKit.h>
#endif

static void *const kSANSObjectDelegateOptionalSelectorsKey = (void *)&kSANSObjectDelegateOptionalSelectorsKey;
static void *const kSANSObjectDelegateObjectKey = (void *)&kSANSObjectDelegateObjectKey;

Expand Down Expand Up @@ -53,6 +57,16 @@ - (BOOL)sensorsdata_respondsToSelector:(SEL)aSelector {
if ([self sensorsdata_respondsToSelector:aSelector]) {
return YES;
}

#if TARGET_OS_IOS
if ([[UIDevice currentDevice].systemVersion floatValue] == 18.0) {
char cString = (char)sel_getName(aSelector);
if (cString == '\x01') {
return NO;
}
}
#endif

if ([self.sensorsdata_optionalSelectors containsObject:NSStringFromSelector(aSelector)]) {
return YES;
}
Expand Down
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#import <UIKit/UIApplication.h>
#endif

#define VERSION @"4.7.0"
#define VERSION @"4.7.1"

void *SensorsAnalyticsQueueTag = &SensorsAnalyticsQueueTag;

Expand Down
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/Core/Tracker/SAEventRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ typedef NS_ENUM(int, SAEventRecordStatus) {
- (void)setSecretObject:(NSDictionary *)obj;

- (void)removePayload;
- (BOOL)mergeSameEKeyRecord:(SAEventRecord *)record;
- (BOOL)mergeSameEKeyPayloadWithRecord:(SAEventRecord *)record;

@end

Expand Down
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/Core/Tracker/SAEventRecord.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ - (void)removePayload {
[_event removeObjectForKey:kSAEncryptRecordKeyPayload];
}

- (BOOL)mergeSameEKeyRecord:(SAEventRecord *)record {
- (BOOL)mergeSameEKeyPayloadWithRecord:(SAEventRecord *)record {
if (![self.ekey isEqualToString:record.ekey]) {
return NO;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ - (NSString *)buildEncryptJSONStringWithFlowData:(SAFlowData *)flowData {

[ekeys addObject:record.ekey];
} else {
[encryptRecords[index] mergeSameEKeyRecord:record];
[encryptRecords[index] mergeSameEKeyPayloadWithRecord:record];
}
}
flowData.gzipCode = SAFlushGzipCodeEncrypt;
Expand Down

0 comments on commit 3124e86

Please sign in to comment.