Skip to content

Commit a58d381

Browse files
Make live variables optional (#36)
1 parent 5d33445 commit a58d381

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

OptimizelySDKCore/OptimizelySDKCore/OPTLYProjectConfig.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
/// List of group objects
4747
@property (nonatomic, strong, nonnull) NSArray<OPTLYGroup> *groups;
4848
/// List of live variable objects
49-
@property (nonatomic, strong, nonnull) NSArray<OPTLYVariable> *variables;
49+
/// TODO: Make variables required
50+
@property (nonatomic, strong, nonnull) NSArray<OPTLYVariable, Optional> *variables;
5051

5152
/// a comprehensive list of experiments that includes experiments being whitelisted (in Groups)
5253
@property (nonatomic, strong, nullable) NSArray<OPTLYExperiment, Ignore> *allExperiments;

OptimizelySDKCore/OptimizelySDKCore/OPTLYVariation.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
/// The variation's Key.
3232
@property (nonatomic, strong) NSString *variationKey;
3333
/// The array containing the variation's live variable information -- variable ID and variable value.
34-
@property (nonatomic, strong) NSArray<NSDictionary *> *variables;
34+
/// TODO: Make variables required and add in NSDictionary * back into NSArray
35+
@property (nonatomic, strong) NSArray<Optional> *variables;
3536

3637
@end

0 commit comments

Comments
 (0)