Skip to content

Commit 372b278

Browse files
authored
fix(datafile-handler): add support for multiple clients (#401)
Fix datafile handler to support multiple clients (sdkKeys). - full thread-safety for additional concurrency requirements - no resource conflicts for multiple sdkKeys support
1 parent 728209a commit 372b278

27 files changed

+1359
-455
lines changed

DemoObjCApp/DemoObjcApp.xcodeproj/project.pbxproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@
134134
remoteGlobalIDString = 6E614DCC21E3F389005982A1;
135135
remoteInfo = "OptimizelySwiftSDK-tvOS";
136136
};
137+
6E8A3D2A26373B3F00DAEA13 /* PBXContainerItemProxy */ = {
138+
isa = PBXContainerItemProxy;
139+
containerPortal = 6E4D2FE722C5457F00062EB3 /* OptimizelySwiftSDK.xcodeproj */;
140+
proxyType = 2;
141+
remoteGlobalIDString = 6E424C3C263249620081004A;
142+
remoteInfo = "OptimizelyTests-MultiClients-iOS";
143+
};
137144
6EAAB6D42602892A00294B8A /* PBXContainerItemProxy */ = {
138145
isa = PBXContainerItemProxy;
139146
containerPortal = 6E4D2FE722C5457F00062EB3 /* OptimizelySwiftSDK.xcodeproj */;
@@ -243,6 +250,7 @@
243250
6EAAB6D52602892A00294B8A /* Optimizely.framework */,
244251
6E4D2FFB22C5457F00062EB3 /* OptimizelyTests-iOS.xctest */,
245252
6E4D2FFD22C5457F00062EB3 /* OptimizelyTests-Common-iOS.xctest */,
253+
6E8A3D2B26373B3F00DAEA13 /* OptimizelyTests-MultiClients-iOS.xctest */,
246254
6EF41A9C2523D23E00EAADF1 /* OptimizelyTests-Batch-iOS.xctest */,
247255
6E4D2FFF22C5457F00062EB3 /* OptimizelyTests-APIs-iOS.xctest */,
248256
6E4D300122C5457F00062EB3 /* OptimizelyTests-DataModel-iOS.xctest */,
@@ -427,7 +435,7 @@
427435
6EF7496721E40467008B22A0 /* Project object */ = {
428436
isa = PBXProject;
429437
attributes = {
430-
LastUpgradeCheck = 1230;
438+
LastUpgradeCheck = 1240;
431439
ORGANIZATIONNAME = Optimizely;
432440
TargetAttributes = {
433441
6EF7498D21E404BB008B22A0 = {
@@ -553,6 +561,13 @@
553561
remoteRef = 6E4D300C22C5457F00062EB3 /* PBXContainerItemProxy */;
554562
sourceTree = BUILT_PRODUCTS_DIR;
555563
};
564+
6E8A3D2B26373B3F00DAEA13 /* OptimizelyTests-MultiClients-iOS.xctest */ = {
565+
isa = PBXReferenceProxy;
566+
fileType = wrapper.cfbundle;
567+
path = "OptimizelyTests-MultiClients-iOS.xctest";
568+
remoteRef = 6E8A3D2A26373B3F00DAEA13 /* PBXContainerItemProxy */;
569+
sourceTree = BUILT_PRODUCTS_DIR;
570+
};
556571
6EAAB6D52602892A00294B8A /* Optimizely.framework */ = {
557572
isa = PBXReferenceProxy;
558573
fileType = wrapper.framework;

DemoObjCApp/DemoObjcApp.xcodeproj/xcshareddata/xcschemes/DemoObjciOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1230"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

DemoObjCApp/DemoObjcApp.xcodeproj/xcshareddata/xcschemes/DemoObjctvOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1230"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

DemoSwiftApp/DemoSwiftApp.xcodeproj/project.pbxproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@
140140
remoteGlobalIDString = 6E614DCC21E3F389005982A1;
141141
remoteInfo = "OptimizelySwiftSDK-tvOS";
142142
};
143+
6E8A3D1A26373B3A00DAEA13 /* PBXContainerItemProxy */ = {
144+
isa = PBXContainerItemProxy;
145+
containerPortal = 6E4D2FB822C5454400062EB3 /* OptimizelySwiftSDK.xcodeproj */;
146+
proxyType = 2;
147+
remoteGlobalIDString = 6E424C3C263249620081004A;
148+
remoteInfo = "OptimizelyTests-MultiClients-iOS";
149+
};
143150
6EF41A892523D22C00EAADF1 /* PBXContainerItemProxy */ = {
144151
isa = PBXContainerItemProxy;
145152
containerPortal = 6E4D2FB822C5454400062EB3 /* OptimizelySwiftSDK.xcodeproj */;
@@ -315,6 +322,7 @@
315322
75C71C8125E45A980084187E /* Optimizely.framework */,
316323
6E4D2FCC22C5454400062EB3 /* OptimizelyTests-iOS.xctest */,
317324
6E4D2FCE22C5454400062EB3 /* OptimizelyTests-Common-iOS.xctest */,
325+
6E8A3D1B26373B3A00DAEA13 /* OptimizelyTests-MultiClients-iOS.xctest */,
318326
6EF41A8C2523D22C00EAADF1 /* OptimizelyTests-Batch-iOS.xctest */,
319327
6E4D2FD022C5454400062EB3 /* OptimizelyTests-APIs-iOS.xctest */,
320328
6E4D2FD222C5454400062EB3 /* OptimizelyTests-DataModel-iOS.xctest */,
@@ -547,7 +555,7 @@
547555
isa = PBXProject;
548556
attributes = {
549557
LastSwiftUpdateCheck = 1230;
550-
LastUpgradeCheck = 1230;
558+
LastUpgradeCheck = 1240;
551559
ORGANIZATIONNAME = Optimizely;
552560
TargetAttributes = {
553561
252D7DEC21C8800800134A7A = {
@@ -692,6 +700,13 @@
692700
remoteRef = 6E4D2FDD22C5454400062EB3 /* PBXContainerItemProxy */;
693701
sourceTree = BUILT_PRODUCTS_DIR;
694702
};
703+
6E8A3D1B26373B3A00DAEA13 /* OptimizelyTests-MultiClients-iOS.xctest */ = {
704+
isa = PBXReferenceProxy;
705+
fileType = wrapper.cfbundle;
706+
path = "OptimizelyTests-MultiClients-iOS.xctest";
707+
remoteRef = 6E8A3D1A26373B3A00DAEA13 /* PBXContainerItemProxy */;
708+
sourceTree = BUILT_PRODUCTS_DIR;
709+
};
695710
6EF41A8A2523D22C00EAADF1 /* Optimizely.framework */ = {
696711
isa = PBXReferenceProxy;
697712
fileType = wrapper.framework;

DemoSwiftApp/DemoSwiftApp.xcodeproj/xcshareddata/xcschemes/DemoSwiftiOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1230"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

DemoSwiftApp/DemoSwiftApp.xcodeproj/xcshareddata/xcschemes/DemoSwifttvOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1230"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

DemoSwiftApp/DemoSwiftApp.xcodeproj/xcshareddata/xcschemes/DemoSwiftwatchOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1230"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)