Skip to content
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
da3182b
feat: server config init
arifBurakDemiray Feb 13, 2025
944b4c1
feat: some changes
arifBurakDemiray Feb 13, 2025
805f9a3
feat: session tracking
arifBurakDemiray Feb 17, 2025
a7327ac
feat: server config impl done
arifBurakDemiray Feb 18, 2025
b29b18d
feat: remove enableServerConfiguration
arifBurakDemiray Feb 19, 2025
821ecf9
feat: add missing functionalities
arifBurakDemiray Feb 19, 2025
a03718b
feat: add comment for notify thingy
arifBurakDemiray Feb 19, 2025
f9d4f9e
feat: add comment for notify thing
arifBurakDemiray Feb 19, 2025
13ab34b
feat: add version and timestamp
arifBurakDemiray Feb 19, 2025
638a095
fix: change base object
arifBurakDemiray Feb 19, 2025
494e196
fix: notfiy place and update
arifBurakDemiray Feb 19, 2025
4901b13
feat: add config time option for server config
arifBurakDemiray Feb 21, 2025
7880b96
Merge branch 'server_config' of https://github.com/Countly/countly-sd…
arifBurakDemiray Feb 21, 2025
4fc0fc2
fix: server config provded
arifBurakDemiray Feb 25, 2025
50c6e2b
feat: server config timer
arifBurakDemiray Feb 25, 2025
6fee428
feat: add timer for when coming from foreground
arifBurakDemiray Feb 25, 2025
42ea1e0
fix: undo thing
arifBurakDemiray Feb 25, 2025
c7d2a38
fix: undo thing doc
arifBurakDemiray Feb 25, 2025
8c151fc
Merge branch 'staging' into server_config
arifBurakDemiray Feb 27, 2025
9921a6b
feat: location tracking
arifBurakDemiray Mar 3, 2025
196371c
fix: missing defaults
arifBurakDemiray Mar 12, 2025
c6c665a
feat: refresh content zone config
arifBurakDemiray Mar 17, 2025
c28d2bd
Merge branch 'server_config' into rcz_m
arifBurakDemiray Mar 18, 2025
577fde5
Merge pull request #383 from Countly/rcz_m
arifBurakDemiray Mar 18, 2025
e60d4dd
feat: refresh content zone config
arifBurakDemiray Mar 18, 2025
07dcf8d
fix: deprecated comment
arifBurakDemiray Mar 18, 2025
4b7b124
fix: add ios check
arifBurakDemiray Mar 18, 2025
4c0bbde
feat: do not parallize test cases
arifBurakDemiray Apr 2, 2025
510a240
refactor: server config
arifBurakDemiray Apr 2, 2025
20d6641
feat: add location check
arifBurakDemiray Apr 2, 2025
dc37945
feat: test helper server config builder
arifBurakDemiray Apr 2, 2025
e97607f
feat: test helper server config builder: undo format
arifBurakDemiray Apr 2, 2025
4a8753f
feat: test helper url protocol mock
arifBurakDemiray Apr 2, 2025
ffaa622
feat: server config tests
arifBurakDemiray Apr 2, 2025
20d4edc
feat: correct wait for tests
arifBurakDemiray Apr 3, 2025
ca6296c
feat: test setups
arifBurakDemiray Apr 7, 2025
b199502
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
454a925
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
849e1fc
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
b23dc5a
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
86fb779
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
2d32cb9
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
6d6b6bb
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
5dde45d
feat: new format rules and refactor content builder
arifBurakDemiray Apr 8, 2025
82b5d9c
fix: add some comment
arifBurakDemiray Apr 8, 2025
8b386f4
feat: new validations
arifBurakDemiray Apr 8, 2025
eb31297
feat: add validations
arifBurakDemiray Apr 8, 2025
1c9749a
feat: server config parsing
arifBurakDemiray Apr 8, 2025
1af06a1
feat: add new tests
arifBurakDemiray Apr 8, 2025
cddf50d
feat: add new tests about limits
arifBurakDemiray Apr 8, 2025
c3b5f5c
feat: add networking checks to the contents
arifBurakDemiray Apr 9, 2025
1a8b812
fix: server config order
arifBurakDemiray Apr 14, 2025
5c06a04
fix: server config gathering
arifBurakDemiray Apr 14, 2025
d497e5c
fix: server config gathering
arifBurakDemiray Apr 14, 2025
bbfbcf6
fix: default checks
arifBurakDemiray Apr 15, 2025
8169a4c
feat: rebranch sdk config name
arifBurakDemiray Apr 15, 2025
1b38020
Merge pull request #384 from Countly/staging
arifBurakDemiray Apr 15, 2025
fc0200b
Update CHANGELOG.md
arifBurakDemiray Apr 16, 2025
e330c69
Update .clang-format
arifBurakDemiray Apr 16, 2025
f51e9ab
feat: revert formatting for Countly
arifBurakDemiray Apr 16, 2025
f5e0ca5
feat: revert formatting for CountlyConfig
arifBurakDemiray Apr 16, 2025
89218f3
feat: revert formatting for CountlyContentBuilderInternal
arifBurakDemiray Apr 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Base style
BasedOnStyle: LLVM

# Basic indentation settings
IndentWidth: 2
TabWidth: 2
IndentWidth: 4
TabWidth: 4
ContinuationIndentWidth: 4
UseTab: Never
IndentPPDirectives: BeforeHash

# Code formatting rules
# Braces and wrapping
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
Expand All @@ -18,16 +21,21 @@ BraceWrapping:
BeforeCatch: true
BeforeElse: true
IndentBraces: false

# Column limits
ColumnLimit: 300

# Blank lines
MaxEmptyLinesToKeep: 1

# Alignment
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignOperands: true
# Alignment rules
AlignTrailingComments: true

# Import statements
SortIncludes: true
# Include sorting
SortIncludes: true

# Objective-C specific rules
Language: ObjC
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
IndentCaseLabels: false
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## XX.XX.XX
* Added a Content feature method "refreshContentZone" that does a manual refresh.
* Extended server configuration capabilities of the SDK.

* Deprecated the experimental configuration function enableServerConfiguration and it will do nothing. It is now enabled by default and can be controlled directly from the server.

## 25.1.2
* Mitigated an issue where the safe area resolution was not correctly calculated for the content zone on certain iOS devices.
Expand Down
1,810 changes: 898 additions & 912 deletions Countly.m

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions Countly.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@
3B20A9D32245228700E3D7AE /* CountlyPushNotifications.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B20A9AE2245228600E3D7AE /* CountlyPushNotifications.h */; };
3B20A9D42245228700E3D7AE /* CountlyPersistency.m in Sources */ = {isa = PBXBuildFile; fileRef = 3B20A9AF2245228600E3D7AE /* CountlyPersistency.m */; };
3B20A9D62245228700E3D7AE /* CountlyConsentManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B20A9B12245228700E3D7AE /* CountlyConsentManager.h */; };
962485BA2D9E971800FA3C20 /* TestUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 962485B92D9E971400FA3C20 /* TestUtils.swift */; };
96329DE02D9426F300BFD641 /* CountlyServerConfigTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96329DDF2D9426F300BFD641 /* CountlyServerConfigTests.swift */; };
96329DE22D94299D00BFD641 /* ServerConfigBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96329DE12D94299D00BFD641 /* ServerConfigBuilder.swift */; };
96329DE42D952F1500BFD641 /* MockURLProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96329DE32D952F1500BFD641 /* MockURLProtocol.swift */; };
968426812BF2302C007B303E /* CountlyConnectionManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 968426802BF2302C007B303E /* CountlyConnectionManagerTests.swift */; };
96DA74BB2D9FB687006FA6FF /* MockFeedbackWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96DA74BA2D9FB687006FA6FF /* MockFeedbackWidget.swift */; };
96E680422BFF89AC0091E105 /* CountlyCrashReporterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96E680412BFF89AC0091E105 /* CountlyCrashReporterTests.swift */; };
D219374B248AC71C00E5798B /* CountlyPerformanceMonitoring.h in Headers */ = {isa = PBXBuildFile; fileRef = D2193749248AC71C00E5798B /* CountlyPerformanceMonitoring.h */; };
D219374C248AC71C00E5798B /* CountlyPerformanceMonitoring.m in Sources */ = {isa = PBXBuildFile; fileRef = D219374A248AC71C00E5798B /* CountlyPerformanceMonitoring.m */; };
Expand Down Expand Up @@ -181,7 +186,13 @@
3B20A9AE2245228600E3D7AE /* CountlyPushNotifications.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountlyPushNotifications.h; sourceTree = "<group>"; };
3B20A9AF2245228600E3D7AE /* CountlyPersistency.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CountlyPersistency.m; sourceTree = "<group>"; };
3B20A9B12245228700E3D7AE /* CountlyConsentManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountlyConsentManager.h; sourceTree = "<group>"; };
962485B92D9E971400FA3C20 /* TestUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestUtils.swift; sourceTree = "<group>"; };
96329DDF2D9426F300BFD641 /* CountlyServerConfigTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CountlyServerConfigTests.swift; sourceTree = "<group>"; };
96329DE12D94299D00BFD641 /* ServerConfigBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServerConfigBuilder.swift; sourceTree = "<group>"; };
96329DE32D952F1500BFD641 /* MockURLProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockURLProtocol.swift; sourceTree = "<group>"; };
96681A9B2D97D9B300A4845A /* CountlyTests.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = CountlyTests.xctestplan; sourceTree = "<group>"; };
968426802BF2302C007B303E /* CountlyConnectionManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CountlyConnectionManagerTests.swift; sourceTree = "<group>"; };
96DA74BA2D9FB687006FA6FF /* MockFeedbackWidget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockFeedbackWidget.swift; sourceTree = "<group>"; };
96E680412BFF89AC0091E105 /* CountlyCrashReporterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CountlyCrashReporterTests.swift; sourceTree = "<group>"; };
D2193749248AC71C00E5798B /* CountlyPerformanceMonitoring.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountlyPerformanceMonitoring.h; sourceTree = "<group>"; };
D219374A248AC71C00E5798B /* CountlyPerformanceMonitoring.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CountlyPerformanceMonitoring.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -213,6 +224,11 @@
1A5C4C952B35B0850032EE1F /* CountlyTests */ = {
isa = PBXGroup;
children = (
96DA74BA2D9FB687006FA6FF /* MockFeedbackWidget.swift */,
962485B92D9E971400FA3C20 /* TestUtils.swift */,
96329DE32D952F1500BFD641 /* MockURLProtocol.swift */,
96329DE12D94299D00BFD641 /* ServerConfigBuilder.swift */,
96329DDF2D9426F300BFD641 /* CountlyServerConfigTests.swift */,
1A5C4C962B35B0850032EE1F /* CountlyTests.swift */,
1A50D7042B3C5AA3009C6938 /* CountlyBaseTestCase.swift */,
1AFD79012B3EF82C00772FBD /* CountlyTests-Bridging-Header.h */,
Expand All @@ -231,6 +247,7 @@
3B20A9782245225A00E3D7AE = {
isa = PBXGroup;
children = (
96681A9B2D97D9B300A4845A /* CountlyTests.xctestplan */,
39BDF7562CC7CA870066DE7C /* CountlyFeedbacks.h */,
39BDF7582CC7CA920066DE7C /* CountlyFeedbacks.m */,
39002D092C8B2E450049394F /* CountlyContentConfig.h */,
Expand Down Expand Up @@ -472,14 +489,19 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
96329DE22D94299D00BFD641 /* ServerConfigBuilder.swift in Sources */,
1A5C4C972B35B0850032EE1F /* CountlyTests.swift in Sources */,
3969D0232CB80848000F8A32 /* CountlyViewTests.swift in Sources */,
399B46502C52813700AD384E /* CountlyLocationTests.swift in Sources */,
1A50D7052B3C5AA3009C6938 /* CountlyBaseTestCase.swift in Sources */,
3979E47D2C0760E900FA1CA4 /* CountlyUserProfileTests.swift in Sources */,
968426812BF2302C007B303E /* CountlyConnectionManagerTests.swift in Sources */,
96329DE42D952F1500BFD641 /* MockURLProtocol.swift in Sources */,
96329DE02D9426F300BFD641 /* CountlyServerConfigTests.swift in Sources */,
3966DBCF2C11EE270002ED97 /* CountlyDeviceIDTests.swift in Sources */,
3964A3E72C2AF8E90091E677 /* CountlySegmentationTests.swift in Sources */,
96DA74BB2D9FB687006FA6FF /* MockFeedbackWidget.swift in Sources */,
962485BA2D9E971800FA3C20 /* TestUtils.swift in Sources */,
3972EDDB2C08A38D00EB9D3E /* CountlyEventStruct.swift in Sources */,
96E680422BFF89AC0091E105 /* CountlyCrashReporterTests.swift in Sources */,
);
Expand Down
11 changes: 8 additions & 3 deletions Countly.xcodeproj/xcshareddata/xcschemes/CountlyTests.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:CountlyTests.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
parallelizable = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1A5C4C932B35B0850032EE1F"
Expand Down
1 change: 0 additions & 1 deletion CountlyCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ extern NSString* const kCountlySDKName;
@property (nonatomic) BOOL manualSessionHandling;
@property (nonatomic) BOOL enableManualSessionControlHybridMode;
@property (nonatomic) BOOL enableOrientationTracking;
@property (nonatomic) BOOL enableServerConfiguration;

@property (nonatomic) BOOL enableVisibiltyTracking;

Expand Down
Loading
Loading