Skip to content

Commit 5404d97

Browse files
Merge branch 'master' into muzahid/FSSDK-11372
* master: [FSSDK-11371] parsing holdout section from the datafile (#577) # Conflicts: # Sources/Data Model/ExperimentCore.swift # Sources/Data Model/Holdout.swift
2 parents 01f3cd7 + 9d635dc commit 5404d97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Data Model/ExperimentCore.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616

1717
import Foundation
1818

19-
protocol ExperimentCore {
20-
var id: String { get }
21-
var key: String { get }
19+
20+
protocol ExperimentCore: OptimizelyExperiment {
2221
var audiences: String { get set }
2322
var layerId: String { get }
2423
var variations: [Variation] { get }

Sources/Data Model/Holdout.swift

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ struct Holdout: Codable, ExperimentCore {
3939
case id, key, status, layerId, variations, trafficAllocation, audienceIds, audienceConditions, includedFlags, excludedFlags
4040
}
4141

42+
var variationsMap: [String : OptimizelyVariation] = [:]
4243
// replace with serialized string representation with audience names when ProjectConfig is ready
4344
var audiences: String = ""
4445

0 commit comments

Comments
 (0)