File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
OptimizelySDKCore/OptimizelySDKCore Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ typedef void (^OPTLYBuilderBlock)(OPTLYBuilder * _Nullable builder);
47
47
// / User profile stores user-specific data, like bucketing.
48
48
@property (nonatomic , strong , nullable ) id <OPTLYUserProfile> userProfile;
49
49
50
+ @property (nonatomic , strong , nullable ) id <OPTLYUserProfile> userProfile;
51
+
50
52
// / Create an Optimizely Builder object.
51
53
+ (nullable instancetype )builderWithBlock : (nonnull OPTLYBuilderBlock)block ;
52
54
Original file line number Diff line number Diff line change 30
30
#import " OPTLYVariable.h"
31
31
#import " OPTLYUserProfile.h"
32
32
#import " OPTLYVariable.h"
33
+ #import " OPTLYUserProfile.h"
33
34
34
35
NSString * const kClientEngine = @" objective-c-sdk-core" ;
35
36
Original file line number Diff line number Diff line change 19
19
@protocol OPTLYUserProfile <NSObject >
20
20
21
21
/* *
22
+ <<<<<<< eaea1f01bff1164fa6a86549b9594aa7b0b2a460
22
23
* Saves a user ID's project-to-experiment-to-variation mapping.
24
+ =======
25
+ * Saves a user id's project-to-experiment-to-variation mapping.
26
+ >>>>>>> User profile feature.
23
27
*
24
28
* @param userId The user id that was used to generate the bucket value.
25
29
* @param experimentKey An active experiment for which the user should be bucketed into.
Original file line number Diff line number Diff line change @@ -20,14 +20,22 @@ @implementation OPTLYUserProfile
20
20
21
21
+ (BOOL )conformsToOPTLYUserProfileProtocol : (nonnull Class )instanceClass {
22
22
// compile-time check
23
+ <<<<<<< eaea1f01bff1164fa6a86549b9594aa7b0b2a460
23
24
BOOL isValidProtocolDeclaration = [instanceClass conformsToProtocol: @protocol (OPTLYUserProfile)];
25
+ =======
26
+ BOOL validProtocolDeclaration = [instanceClass conformsToProtocol: @protocol (OPTLYUserProfile)];
27
+ >>>>>>> User profile feature.
24
28
25
29
// runtime checks
26
30
BOOL implementsHandleSaveVariationMethod = [instanceClass instancesRespondToSelector: @selector (save:experiment:variation: )];
27
31
BOOL implementsHandleGetVariationMethod = [instanceClass instancesRespondToSelector: @selector (getVariationFor:experiment: )];
28
32
BOOL implementsHandleRemoveVariationMethod = [instanceClass instancesRespondToSelector: @selector (remove:experiment: )];
29
33
34
+ <<<<<<< eaea1f01bff1164fa6a86549b9594aa7b0b2a460
30
35
return isValidProtocolDeclaration && implementsHandleSaveVariationMethod && implementsHandleGetVariationMethod && implementsHandleRemoveVariationMethod;
36
+ =======
37
+ return validProtocolDeclaration && implementsHandleSaveVariationMethod && implementsHandleGetVariationMethod && implementsHandleRemoveVariationMethod;
38
+ >>>>>>> User profile feature.
31
39
}
32
40
33
41
@end
You can’t perform that action at this time.
0 commit comments