Skip to content

Commit 4d897b5

Browse files
authored
Merge pull request #411 from Countly/staging
Staging 25.4.5
2 parents 1ebac31 + 8d244da commit 4d897b5

19 files changed

+135
-14
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 25.4.5
2+
* Added "requestTimeoutDuration" init config parameter to change request timeout duration in seconds.
3+
* Added a new function "sendMetricsRequest: metricsOverride" to send a manual metrics request, accessible through the instance.
4+
* Added a new Consent option "CLYConsentMetrics" for controlling "sendMetricsRequest" method. (This has no effect on Session metrics.)
5+
6+
* Mitigated a possible health check recording issue.
7+
18
## 25.4.4
29
* Improved Health Check metric information.
310
* Improved Content display mechanics.

Countly-PL.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 = 'Countly-PL'
3-
s.version = '25.4.4'
3+
s.version = '25.4.5'
44
s.license = { :type => 'MIT', :file => 'LICENSE' }
55
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
66
s.homepage = 'https://github.com/Countly/countly-sdk-ios'

Countly.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ NS_ASSUME_NONNULL_BEGIN
100100
*/
101101
- (void)addDirectRequest:(NSDictionary<NSString *, NSString *> * _Nullable)requestParameters;
102102

103+
/**
104+
* Records current device metrics and puts them into the request queue.
105+
* @discussion Optionally, provide a dictionary to override detected metrics.
106+
* @param metricsOverride Dictionary of metrics to override.
107+
*/
108+
- (void)recordMetrics:(NSDictionary<NSString *, NSString *> *_Nullable)metricsOverride;
103109

104110

105111
#pragma mark - Sessions

Countly.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,12 @@ - (void)setNewAppKey:(NSString *)newAppKey
548548

549549
#pragma mark - Queue Operations
550550

551+
- (void)recordMetrics:(NSDictionary<NSString *, NSString *> * _Nullable)metricsOverride
552+
{
553+
CLY_LOG_I(@"%s %@", __FUNCTION__, metricsOverride);
554+
[CountlyConnectionManager.sharedInstance recordMetrics:metricsOverride];
555+
}
556+
551557
- (void)flushQueues
552558
{
553559
CLY_LOG_I(@"%s", __FUNCTION__);

Countly.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 = 'Countly'
3-
s.version = '25.4.4'
3+
s.version = '25.4.5'
44
s.license = { :type => 'MIT', :file => 'LICENSE' }
55
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
66
s.homepage = 'https://github.com/Countly/countly-sdk-ios'

Countly.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@
768768
"@loader_path/Frameworks",
769769
);
770770
MACOSX_DEPLOYMENT_TARGET = 10.14;
771-
MARKETING_VERSION = 25.4.4;
771+
MARKETING_VERSION = 25.4.5;
772772
PRODUCT_BUNDLE_IDENTIFIER = ly.count.CountlyiOSSDK;
773773
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
774774
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -800,7 +800,7 @@
800800
"@loader_path/Frameworks",
801801
);
802802
MACOSX_DEPLOYMENT_TARGET = 10.14;
803-
MARKETING_VERSION = 25.4.4;
803+
MARKETING_VERSION = 25.4.5;
804804
PRODUCT_BUNDLE_IDENTIFIER = ly.count.CountlyiOSSDK;
805805
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
806806
PROVISIONING_PROFILE_SPECIFIER = "";

CountlyCommon.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ @interface CountlyCommon ()
2929
#endif
3030
@end
3131

32-
NSString* const kCountlySDKVersion = @"25.4.4";
32+
NSString* const kCountlySDKVersion = @"25.4.5";
3333
NSString* const kCountlySDKName = @"objc-native-ios";
3434

3535
NSString* const kCountlyErrorDomain = @"ly.count.ErrorDomain";

CountlyConfig.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ extern CLYConsent const CLYConsentPerformanceMonitoring;
8888
extern CLYConsent const CLYConsentFeedback;
8989
extern CLYConsent const CLYConsentRemoteConfig;
9090
extern CLYConsent const CLYConsentContent;
91+
extern CLYConsent const CLYConsentMetrics;
9192

9293
//NOTE: Push Notification Test Modes
9394
typedef NSString* CLYPushTestMode NS_EXTENSIBLE_STRING_ENUM;
@@ -389,6 +390,13 @@ typedef enum : NSUInteger
389390
*/
390391
@property (nonatomic) NSUInteger requestDropAgeHours;
391392

393+
/**
394+
* Set the request timeout duration in seconds
395+
* Minimum value is "1" second
396+
* Default value is "30" seconds
397+
*/
398+
@property (nonatomic) NSInteger requestTimeoutDuration;
399+
392400
/**
393401
* Limit for the length of all string keys.
394402
* @discussion It affects:

CountlyConfig.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ - (instancetype)init
7777

7878
self.enableOrientationTracking = YES;
7979
self.remoteConfigGlobalCallbacks = NSMutableArray.new;
80+
self.requestTimeoutDuration = 30;
8081
}
8182

8283
return self;

CountlyConnectionManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ extern const NSInteger kCountlyGETRequestMaxLength;
4040

4141
+ (instancetype)sharedInstance;
4242

43+
- (void)recordMetrics:(nullable NSDictionary *)metricsOverride;
44+
4345
- (void)beginSession;
4446
- (void)updateSession;
4547
- (void)endSession;

0 commit comments

Comments
 (0)