Skip to content

Commit bec9d3b

Browse files
Kroach/oasis 2978 variables (#257)
* Revive Live Variables API's * Add 2 V3.json datafiles * Repair all broken tests. Make OptimizelyV3Test live variables tests pass. * Add Live Variables (DEPRECATED) code comments * Add 2 'Mobile 1.x Live Variables are DEPRECATED' block comments * Add OPTLYLoggerMessagesLiveVariablesDeprecated log message to deprecated API's * Add #pragms's to get deprecated warnings to emit in old code using Mobile 1.x Variables * Managment -> Management * OPTLYDatafileKeysVariationVariableUsageInstances --> OPTLYDatafileKeysVariationVariables
1 parent 54af1aa commit bec9d3b

File tree

54 files changed

+2936
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2936
-47
lines changed

OptimizelyDemoApp/OptimizelyDemoApp.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
3E3AD1412061E09E00081305 /* Pods_OptimizelyiOSDemoApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E3AD1422061E09E00081305 /* Pods_OptimizelyiOSDemoApp.framework */; };
1313
3E62A2602061E71500D1AC12 /* OptimizelySDKUserProfileService.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EB7197B1EC6589600B54F89 /* OptimizelySDKUserProfileService.framework */; };
1414
3EB7197C1EC6589600B54F89 /* OptimizelySDKUserProfileService.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3EB7197B1EC6589600B54F89 /* OptimizelySDKUserProfileService.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
15+
3EEC2AD520CB399500D096E4 /* demoTestDatafileV3.json in Resources */ = {isa = PBXBuildFile; fileRef = 3EEC2AD220CB399500D096E4 /* demoTestDatafileV3.json */; };
16+
3EEC2AD620CB399500D096E4 /* demoTestDatafileV3.json in Resources */ = {isa = PBXBuildFile; fileRef = 3EEC2AD220CB399500D096E4 /* demoTestDatafileV3.json */; };
1517
3EF452841ECA639300BA82CB /* OptimizelySDKUserProfileService.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EF452831ECA639300BA82CB /* OptimizelySDKUserProfileService.framework */; };
1618
EA1E4B491E65060300BDDABD /* OptimizelySDKEventDispatcher.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EA1E4B481E65060300BDDABD /* OptimizelySDKEventDispatcher.framework */; };
1719
EA1E4B4A1E65060300BDDABD /* OptimizelySDKEventDispatcher.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EA1E4B481E65060300BDDABD /* OptimizelySDKEventDispatcher.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
@@ -158,6 +160,7 @@
158160
3E39BD0E2072E05E00F73BD0 /* Pods_OptimizelyTVOSDemoApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Pods_OptimizelyTVOSDemoApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
159161
3E3AD1422061E09E00081305 /* Pods_OptimizelyiOSDemoApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Pods_OptimizelyiOSDemoApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
160162
3EB7197B1EC6589600B54F89 /* OptimizelySDKUserProfileService.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = OptimizelySDKUserProfileService.framework; sourceTree = BUILT_PRODUCTS_DIR; };
163+
3EEC2AD220CB399500D096E4 /* demoTestDatafileV3.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = demoTestDatafileV3.json; sourceTree = "<group>"; };
161164
3EF452831ECA639300BA82CB /* OptimizelySDKUserProfileService.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OptimizelySDKUserProfileService.framework; path = "../Debug-appletvos/OptimizelySDKUserProfileService.framework"; sourceTree = BUILT_PRODUCTS_DIR; };
162165
920E4FB688AA1A8926800320 /* Pods-OptimizelyTVOSDemoApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OptimizelyTVOSDemoApp.release.xcconfig"; path = "../Pods/Target Support Files/Pods-OptimizelyTVOSDemoApp/Pods-OptimizelyTVOSDemoApp.release.xcconfig"; sourceTree = "<group>"; };
163166
B8C4B923152B213925B727C4 /* Pods_OptimizelyiOSDemoApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OptimizelyiOSDemoApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -253,6 +256,7 @@
253256
EA70FFC31E552D0B00590BEF /* Roboto-Medium.ttf */,
254257
EA70FFC41E552D0B00590BEF /* SF-UI-Text-Regular.otf */,
255258
EA4A62BA1E566F3500F1C3CE /* demoTestDatafile.json */,
259+
3EEC2AD220CB399500D096E4 /* demoTestDatafileV3.json */,
256260
EAF6953A1FA07BF800C73CC2 /* optimizely_6372300739.json */,
257261
EAF6953D1FA08DD900C73CC2 /* optimizely_8182362857.json */,
258262
);
@@ -470,6 +474,7 @@
470474
3E19F86C1F0176AC001FC077 /* Assets.xcassets in Resources */,
471475
EA299EDC1E55311700931399 /* tvOSMain.storyboard in Resources */,
472476
EA7000121E552EBD00590BEF /* ProximaNova-Regular.otf in Resources */,
477+
3EEC2AD620CB399500D096E4 /* demoTestDatafileV3.json in Resources */,
473478
);
474479
runOnlyForDeploymentPostprocessing = 0;
475480
};
@@ -484,6 +489,7 @@
484489
EA4A62BB1E566F3500F1C3CE /* demoTestDatafile.json in Resources */,
485490
EA70FFF41E552E9E00590BEF /* SF-UI-Text-Regular.otf in Resources */,
486491
EA299EEF1E55316300931399 /* Assets.xcassets in Resources */,
492+
3EEC2AD520CB399500D096E4 /* demoTestDatafileV3.json in Resources */,
487493
EA70FFF51E552E9E00590BEF /* ProximaNovaCond-Regular.otf in Resources */,
488494
EAF6953E1FA08DD900C73CC2 /* optimizely_8182362857.json in Resources */,
489495
);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"groups":[],"projectId":"8182362857","version":"3","experiments":[{"status":"Running","key":"background_experiment","layerId":"8174477208","trafficAllocation":[{"entityId":"8177401270","endOfRange":10000}],"audienceIds":["8179612088"],"variations":[{"variables":[{"id":"8177539581","value":"0"},{"id":"8177990329","value":"default"},{"id":"8174853270","value":"true"},{"id":"8175055404","value":"0.0"}],"id":"8182320831","key":"variation_a"},{"variables":[{"id":"8177539581","value":"0"},{"id":"8177990329","value":"default"},{"id":"8174853270","value":"true"},{"id":"8175055404","value":"0.0"}],"id":"8177401270","key":"variation_b"}],"forcedVariations":{},"id":"8183190141"}],"audiences":[{"conditions":"[\"and\", [\"or\", [\"or\", {\"name\": \"sample_attribute_key\", \"type\": \"custom_attribute\", \"value\": \"sample_attribute_value\"}]]]","id":"8179612088","name":"sample_audience"},{"conditions":"[\"and\", [\"or\", [\"or\", {\"name\": \"sample_attribute_key_2\", \"type\": \"custom_attribute\", \"value\": \"a\"}], [\"or\", {\"name\": \"sample_attribute_key_2\", \"type\": \"custom_attribute\", \"value\": \"b\"}], [\"or\", {\"name\": \"sample_attribute_key_2\", \"type\": \"custom_attribute\", \"value\": \"c\"}]]]","id":"8853260009","name":"sample_audience_2"}],"anonymizeIP":false,"attributes":[{"id":"8172478122","key":"sample_attribute_key"},{"id":"8834562451","key":"sample_attribute_key_2"}],"revision":"65","events":[{"experimentIds":["8183190141"],"id":"8182211634","key":"sample_conversion"}],"accountId":"6384711706"}
1+
{"groups": [], "projectId": "8182362857", "variables": [{"defaultValue": "true", "type": "boolean", "id": "8174853270", "key": "sample_variable_boolean"}, {"defaultValue": "0.0", "type": "double", "id": "8175055404", "key": "sample_variable_double"}, {"defaultValue": "0", "type": "integer", "id": "8177539581", "key": "sample_variable_integer"}, {"defaultValue": "default", "type": "string", "id": "8177990329", "key": "sample_variable_string"}], "version": "3", "experiments": [{"status": "Running", "key": "background_experiment", "layerId": "8174477208", "trafficAllocation": [{"entityId": "8177401270", "endOfRange": 10000}], "audienceIds": ["8179612088"], "variations": [{"variables": [{"id": "8177539581", "value": "0"}, {"id": "8177990329", "value": "default"}, {"id": "8174853270", "value": "true"}, {"id": "8175055404", "value": "0.0"}], "id": "8182320831", "key": "variation_a"}, {"variables": [{"id": "8177539581", "value": "0"}, {"id": "8177990329", "value": "default"}, {"id": "8174853270", "value": "true"}, {"id": "8175055404", "value": "0.0"}], "id": "8177401270", "key": "variation_b"}], "forcedVariations": {}, "id": "8183190141"}], "audiences": [{"conditions": "[\"and\", [\"or\", [\"or\", {\"name\": \"sample_attribute_key\", \"type\": \"custom_attribute\", \"value\": \"sample_attribute_value\"}]]]", "id": "8179612088", "name": "sample_audience"}, {"conditions": "[\"and\", [\"or\", [\"or\", {\"name\": \"sample_attribute_key_2\", \"type\": \"custom_attribute\", \"value\": \"a\"}], [\"or\", {\"name\": \"sample_attribute_key_2\", \"type\": \"custom_attribute\", \"value\": \"b\"}], [\"or\", {\"name\": \"sample_attribute_key_2\", \"type\": \"custom_attribute\", \"value\": \"c\"}]]]", "id": "8853260009", "name": "sample_audience_2"}], "anonymizeIP": false, "attributes": [{"id": "8172478122", "key": "sample_attribute_key"}, {"id": "8834562451", "key": "sample_attribute_key_2"}], "revision": "65", "events": [{"experimentIds": ["8183190141"], "id": "8182211634", "key": "sample_conversion"}], "accountId": "6384711706"}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"groups": [],
3+
"variables": [{
4+
"defaultValue": "true",
5+
"type": "boolean",
6+
"id": "8174853270",
7+
"key": "sample_variable_boolean"
8+
}, {
9+
"defaultValue": "0.0",
10+
"type": "double",
11+
"id": "8175055404",
12+
"key": "sample_variable_double"
13+
}, {
14+
"defaultValue": "0",
15+
"type": "integer",
16+
"id": "8177539581",
17+
"key": "sample_variable_integer"
18+
}, {
19+
"defaultValue": "default",
20+
"type": "string",
21+
"id": "8177990329",
22+
"key": "sample_variable_string"
23+
}],
24+
"experiments": [{
25+
"status": "Running",
26+
"key": "background_experiment",
27+
"layerId": "8174477208",
28+
"trafficAllocation": [{
29+
"entityId": "8182320831",
30+
"endOfRange": 5000
31+
}, {
32+
"entityId": "8177401270",
33+
"endOfRange": 10000
34+
}],
35+
"audienceIds": ["8179612088"],
36+
"variations": [{
37+
"variables": [],
38+
"id": "8182320831",
39+
"key": "variation_a"
40+
}, {
41+
"variables": [],
42+
"id": "8177401270",
43+
"key": "variation_b"
44+
}],
45+
"forcedVariations": {},
46+
"id": "8183190141"
47+
}],
48+
"audiences": [{
49+
"conditions": "[\"and\", [\"or\", [\"or\", {\"name\": \"sample_attribute_key\", \"type\": \"custom_attribute\", \"value\": \"sample_attribute_value\"}]]]",
50+
"id": "8179612088",
51+
"name": "sample_audience"
52+
}],
53+
"anonymizeIP": false,
54+
"accountId": "6384711706",
55+
"projectId": "8182362857",
56+
"version": "3",
57+
"attributes": [{
58+
"id": "8172478122",
59+
"key": "sample_attribute_key"
60+
}],
61+
"events": [{
62+
"experimentIds": ["8183190141"],
63+
"id": "8182211634",
64+
"key": "sample_conversion"
65+
}],
66+
"revision": "13"
67+
}

0 commit comments

Comments
 (0)