From 3f002e8439d3a74c62ce30bee8fc5dcf40c64faf Mon Sep 17 00:00:00 2001 From: ijunaid Date: Tue, 5 Nov 2024 13:52:08 +0500 Subject: [PATCH 1/2] Fixed visibility tracking flag issue Updated SDK to version 24.7.7 --- CHANGELOG.md | 3 +++ Countly-PL.podspec | 2 +- Countly.m | 2 +- Countly.podspec | 2 +- Countly.xcodeproj/project.pbxproj | 4 ++-- CountlyCommon.m | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b5a63af..61784091 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 24.7.7 +* Mitigated an issue where the experimental `enableVisibilityTracking` flag was recorded as true/false instead of 0/1 + ## 24.7.6 * Mitigated an issue with experimental visibility tracking and previous name recording, ensuring they’re included even when no segmentation is provided in event or view recording. diff --git a/Countly-PL.podspec b/Countly-PL.podspec index 8631363a..738b41f7 100644 --- a/Countly-PL.podspec +++ b/Countly-PL.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Countly-PL' - s.version = '24.7.6' + s.version = '24.7.7' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.' s.homepage = 'https://github.com/Countly/countly-sdk-ios' diff --git a/Countly.m b/Countly.m index 7cf1d60f..a69dbfe4 100644 --- a/Countly.m +++ b/Countly.m @@ -941,7 +941,7 @@ - (NSDictionary*) processSegmentation:(NSMutableDictionary *) segmentation event } if(CountlyCommon.sharedInstance.enableVisibiltyTracking) { - segmentation[kCountlyVisibility] = @([self isAppInForeground]); + segmentation[kCountlyVisibility] = @([self isAppInForeground] ? 1 : 0); } return segmentation.count == 0 ? nil : segmentation; diff --git a/Countly.podspec b/Countly.podspec index fe20e91b..620dac2b 100644 --- a/Countly.podspec +++ b/Countly.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Countly' - s.version = '24.7.6' + s.version = '24.7.7' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.' s.homepage = 'https://github.com/Countly/countly-sdk-ios' diff --git a/Countly.xcodeproj/project.pbxproj b/Countly.xcodeproj/project.pbxproj index c03ad326..e42a8628 100644 --- a/Countly.xcodeproj/project.pbxproj +++ b/Countly.xcodeproj/project.pbxproj @@ -738,7 +738,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 24.7.6; + MARKETING_VERSION = 24.7.7; PRODUCT_BUNDLE_IDENTIFIER = ly.count.CountlyiOSSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -770,7 +770,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 24.7.6; + MARKETING_VERSION = 24.7.7; PRODUCT_BUNDLE_IDENTIFIER = ly.count.CountlyiOSSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/CountlyCommon.m b/CountlyCommon.m index 893b488d..20db5c3f 100644 --- a/CountlyCommon.m +++ b/CountlyCommon.m @@ -29,7 +29,7 @@ @interface CountlyCommon () #endif @end -NSString* const kCountlySDKVersion = @"24.7.6"; +NSString* const kCountlySDKVersion = @"24.7.7"; NSString* const kCountlySDKName = @"objc-native-ios"; NSString* const kCountlyErrorDomain = @"ly.count.ErrorDomain"; From f13026c787910d037771b21431f3aabe5e05849e Mon Sep 17 00:00:00 2001 From: turtledreams <62231246+turtledreams@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:14:11 +0900 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61784091..16091236 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ## 24.7.7 -* Mitigated an issue where the experimental `enableVisibilityTracking` flag was recorded as true/false instead of 0/1 +* Changed the visibility tracking segmentation values to binary ## 24.7.6 * Mitigated an issue with experimental visibility tracking and previous name recording, ensuring they’re included even when no segmentation is provided in event or view recording.