For EXP-3625: Hook up getCoenrollingFeatureIds to NimbusApi and NimbusBuilder for swift

This commit is contained in:
Elise Richards 2023-07-06 17:46:52 -05:00
Родитель 73fd43c86c
Коммит f82926245f
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -167,6 +167,12 @@ public protocol NimbusUserConfiguration {
/// - Returns A list of `AvailableExperiment`s
///
func getAvailableExperiments() -> [AvailableExperiment]
/// Get a list of feature ids where the feature allows co-enrollment.
///
/// - Returns A list of experiment ids that allow co-enrollment.
///
func getCoenrollingFeatureIds() -> [String]
}
public protocol NimbusEventStore {

Просмотреть файл

@ -231,8 +231,7 @@ public class NimbusBuilder {
// swiftlint:enable function_body_length
func getCoenrollingFeatureIds() -> [String] {
// This will be changed to use the feature manifest in EXP-3265
[]
featureManifest?.getCoenrollingFeatureIds() ?? []
}
func newNimbus(_ appInfo: NimbusAppSettings, serverSettings: NimbusServerSettings?) throws -> NimbusInterface {