Skip to content

Commit cb1fee5

Browse files
authored
Merge pull request #326 from Countly/ios_25_1_0
feat: iOS 25.1.0
2 parents 2b3cafa + c3396c1 commit cb1fee5

File tree

9 files changed

+40
-8
lines changed

9 files changed

+40
-8
lines changed

ios/Classes/CountlyiOS/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## XX.XX.XX
1+
## 25.1.0
22
* Added dynamic resizing functionality for the content zone
3-
* Improved management of content zone size for better responsiveness
3+
* Added a config option to content (setZoneTimerInterval) to set content zone timer. (Experimental!)
44

5+
* Improved management of content zone size for better responsiveness
56
* Fixed an issue where the build UUID and executable name were missing from crash reports
67

78
## 24.7.9

ios/Classes/CountlyiOS/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 = '24.7.9'
3+
s.version = '25.1.0'
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'

ios/Classes/CountlyiOS/Countly.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ - (void)startWithConfig:(CountlyConfig *)config
275275
if(config.content.getGlobalContentCallback) {
276276
CountlyContentBuilderInternal.sharedInstance.contentCallback = config.content.getGlobalContentCallback;
277277
}
278+
if(config.content.getZoneTimerInterval){
279+
CountlyContentBuilderInternal.sharedInstance.zoneTimerInterval = config.content.getZoneTimerInterval;
280+
}
278281
#endif
279282

280283
[CountlyPerformanceMonitoring.sharedInstance startWithConfig:config.apm];

ios/Classes/CountlyiOS/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 = '24.7.9'
3+
s.version = '25.1.0'
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'

ios/Classes/CountlyiOS/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 = @"24.7.9";
32+
NSString* const kCountlySDKVersion = @"25.1.0";
3333
NSString* const kCountlySDKName = @"objc-native-ios";
3434

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

ios/Classes/CountlyiOS/CountlyContentBuilderInternal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
1313
@interface CountlyContentBuilderInternal: NSObject
1414
#if (TARGET_OS_IOS)
1515
@property (nonatomic, strong) NSArray<NSString *> *currentTags;
16-
@property (nonatomic, assign) NSTimeInterval requestInterval;
16+
@property (nonatomic, assign) NSTimeInterval zoneTimerInterval;
1717
@property (nonatomic) ContentCallback contentCallback;
1818

1919
+ (instancetype)sharedInstance;

ios/Classes/CountlyiOS/CountlyContentBuilderInternal.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ - (instancetype)init
2929
{
3030
if (self = [super init])
3131
{
32-
self.requestInterval = 30.0;
32+
self.zoneTimerInterval = 30.0;
3333
_requestTimer = nil;
3434
}
3535

@@ -55,7 +55,7 @@ - (void)enterContentZone:(NSArray<NSString *> *)tags {
5555
self.currentTags = tags;
5656

5757
[self fetchContents];;
58-
_requestTimer = [NSTimer scheduledTimerWithTimeInterval:self.requestInterval
58+
_requestTimer = [NSTimer scheduledTimerWithTimeInterval:self.zoneTimerInterval
5959
target:self
6060
selector:@selector(fetchContents)
6161
userInfo:nil

ios/Classes/CountlyiOS/CountlyContentConfig.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ typedef void (^ContentCallback)(ContentStatus contentStatus, NSDictionary<NSStri
3232
* Get content callback
3333
*/
3434
- (ContentCallback) getGlobalContentCallback;
35+
36+
/**
37+
* This is an experimental feature and it can have breaking changes
38+
* Set the interval for the automatic content update calls
39+
* @param zoneTimerIntervalSeconds in seconds
40+
*
41+
*/
42+
-(void)setZoneTimerInterval:(NSUInteger)zoneTimerIntervalSeconds;
43+
44+
/**
45+
* This is an experimental feature and it can have breaking changes
46+
* Get zone timer interval
47+
*/
48+
- (NSUInteger) getZoneTimerInterval;
3549
#endif
3650

3751
NS_ASSUME_NONNULL_END

ios/Classes/CountlyiOS/CountlyContentConfig.m

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@interface CountlyContentConfig ()
1010
#if (TARGET_OS_IOS)
1111
@property (nonatomic) ContentCallback contentCallback;
12+
@property (nonatomic) NSUInteger zoneTimerInterval;
1213
#endif
1314
@end
1415

@@ -33,6 +34,19 @@ - (ContentCallback) getGlobalContentCallback
3334
{
3435
return self.contentCallback;
3536
}
37+
38+
39+
-(void)setZoneTimerInterval:(NSUInteger)zoneTimerIntervalSeconds
40+
{
41+
if (zoneTimerIntervalSeconds > 15) {
42+
self.zoneTimerInterval = zoneTimerIntervalSeconds;
43+
}
44+
}
45+
46+
- (NSUInteger) getZoneTimerInterval
47+
{
48+
return self.zoneTimerInterval;
49+
}
3650
#endif
3751

3852
@end

0 commit comments

Comments
 (0)