diff --git a/OptimizelyDemoApp/AppDelegate.swift b/OptimizelyDemoApp/AppDelegate.swift index 30375d2cc..e41ea59c7 100644 --- a/OptimizelyDemoApp/AppDelegate.swift +++ b/OptimizelyDemoApp/AppDelegate.swift @@ -125,8 +125,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { }) #endif - let variation = optimizelyClient?.activate((self?.experimentKey)!, userId: (self?.userId)!, attributes: (self?.attributes)) + let variation = optimizelyClient?.activate((self?.experimentKey)!, userId: (self?.userId)!) + if let experiments = optimizelyClient?.optimizely?.config?.experiments { + for experiment in experiments { + print(experiment.experimentKey) + } + } self?.setRootViewController(optimizelyClient: optimizelyClient, bucketedVariation:variation) }) diff --git a/OptimizelySDKCore/OptimizelySDKCore/OPTLYProjectConfig.h b/OptimizelySDKCore/OptimizelySDKCore/OPTLYProjectConfig.h index f1366d76b..029db4ec8 100644 --- a/OptimizelySDKCore/OptimizelySDKCore/OPTLYProjectConfig.h +++ b/OptimizelySDKCore/OptimizelySDKCore/OPTLYProjectConfig.h @@ -49,20 +49,20 @@ NS_ASSUME_NONNULL_END /// Flag for Bot Filtering @property (nonatomic, strong, nonnull) NSNumber *botFiltering; /// List of Optimizely Experiment objects -@property (nonatomic, strong, nonnull) NSArray *experiments; +@property (nonatomic, strong, nonnull) NSArray *experiments; /// List of Optimizely Event Type objects -@property (nonatomic, strong, nonnull) NSArray *events; +@property (nonatomic, strong, nonnull) NSArray *events; /// List of audience ids -@property (nonatomic, strong, nonnull) NSArray *audiences; +@property (nonatomic, strong, nonnull) NSArray *audiences; /// List of attributes objects -@property (nonatomic, strong, nonnull) NSArray *attributes; +@property (nonatomic, strong, nonnull) NSArray *attributes; /// List of group objects -@property (nonatomic, strong, nonnull) NSArray *groups; +@property (nonatomic, strong, nonnull) NSArray *groups; /// List of live variable objects (DEPRECATED) -@property (nonatomic, strong, nonnull) NSArray *variables; +@property (nonatomic, strong, nonnull) NSArray *variables; /// a comprehensive list of experiments that includes experiments being whitelisted (in Groups) -@property (nonatomic, strong, nullable) NSArray *allExperiments; +@property (nonatomic, strong, nullable) NSArray *allExperiments; @property (nonatomic, strong, nullable) id logger; @property (nonatomic, strong, nullable) id errorHandler; @property (nonatomic, strong, readonly, nullable) id userProfileService; @@ -72,9 +72,9 @@ NS_ASSUME_NONNULL_END /// Returns the client version number @property (nonatomic, strong, readonly, nonnull) NSString *clientVersion; /// List of Optimizely Feature Flags objects -@property (nonatomic, strong, nonnull) NSArray *featureFlags; +@property (nonatomic, strong, nonnull) NSArray *featureFlags; /// List of Optimizely Rollouts objects -@property (nonatomic, strong, nonnull) NSArray *rollouts; +@property (nonatomic, strong, nonnull) NSArray *rollouts; /** * Initialize the Project Config from a builder block.