Skip to content

Commit 2751a04

Browse files
User profile feature.
1 parent 8379513 commit 2751a04

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

OptimizelySDKCore/OptimizelySDKCore/OPTLYBuilder.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ typedef void (^OPTLYBuilderBlock)(OPTLYBuilder * _Nullable builder);
4747
/// User profile stores user-specific data, like bucketing.
4848
@property (nonatomic, strong, nullable) id<OPTLYUserProfile> userProfile;
4949

50+
@property (nonatomic, strong, nullable) id<OPTLYUserProfile> userProfile;
51+
5052
/// Create an Optimizely Builder object.
5153
+ (nullable instancetype)builderWithBlock:(nonnull OPTLYBuilderBlock)block;
5254

OptimizelySDKCore/OptimizelySDKCore/OPTLYProjectConfig.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#import "OPTLYVariable.h"
3131
#import "OPTLYUserProfile.h"
3232
#import "OPTLYVariable.h"
33+
#import "OPTLYUserProfile.h"
3334

3435
NSString * const kClientEngine = @"objective-c-sdk-core";
3536

OptimizelySDKCore/OptimizelySDKCore/OPTLYUserProfile.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
@protocol OPTLYUserProfile <NSObject>
2020

2121
/**
22+
<<<<<<< eaea1f01bff1164fa6a86549b9594aa7b0b2a460
2223
* 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.
2327
*
2428
* @param userId The user id that was used to generate the bucket value.
2529
* @param experimentKey An active experiment for which the user should be bucketed into.

OptimizelySDKCore/OptimizelySDKCore/OPTLYUserProfile.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,22 @@ @implementation OPTLYUserProfile
2020

2121
+ (BOOL)conformsToOPTLYUserProfileProtocol:(nonnull Class)instanceClass {
2222
// compile-time check
23+
<<<<<<< eaea1f01bff1164fa6a86549b9594aa7b0b2a460
2324
BOOL isValidProtocolDeclaration = [instanceClass conformsToProtocol:@protocol(OPTLYUserProfile)];
25+
=======
26+
BOOL validProtocolDeclaration = [instanceClass conformsToProtocol:@protocol(OPTLYUserProfile)];
27+
>>>>>>> User profile feature.
2428

2529
// runtime checks
2630
BOOL implementsHandleSaveVariationMethod = [instanceClass instancesRespondToSelector:@selector(save:experiment:variation:)];
2731
BOOL implementsHandleGetVariationMethod = [instanceClass instancesRespondToSelector:@selector(getVariationFor:experiment:)];
2832
BOOL implementsHandleRemoveVariationMethod = [instanceClass instancesRespondToSelector:@selector(remove:experiment:)];
2933

34+
<<<<<<< eaea1f01bff1164fa6a86549b9594aa7b0b2a460
3035
return isValidProtocolDeclaration && implementsHandleSaveVariationMethod && implementsHandleGetVariationMethod && implementsHandleRemoveVariationMethod;
36+
=======
37+
return validProtocolDeclaration && implementsHandleSaveVariationMethod && implementsHandleGetVariationMethod && implementsHandleRemoveVariationMethod;
38+
>>>>>>> User profile feature.
3139
}
3240

3341
@end

0 commit comments

Comments
 (0)