-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (audience match types): Condition evaluator, Audience combinatio…
…n and Project Config PRs consolidation. (#351) * Type changed to NSObject & a test case added * added all type attributes in Optimizely and EventBuilder test cases * attribute filtering in EventBuilder only * missing types added in attribute filtration * Added unit test in decision service and Notification Center to support all type of attributes. One more unit test fixed. For NSNull and Any object other than NSNumber. * null support for attributes & eventTags Notification Center PR. * Nullable attribute and eventTags activate listener and track listener * Generic listener and sendNotifications should have NSDictionary. * feat (audience match types): Update condition evaluator for new audience match types * Updates license * Addresses Review * feat (audience match types): Update audience evaluator and project config for new audience match types * Refact: If no attributes, defaults to empty attributes * Addressed Code Review comments. * 1. Merge branch 'sohail/null-attribute-support' into yasir/audience-match-type-evaluator/ 2. Fix code indentation. * null support for attributes & eventTags Notification Center PR. * Nullable attribute and eventTags activate listener and track listener * Generic listener and sendNotifications should have NSDictionary. * Addressed Code Review comments. * Minor conflicts resolved. * refact(conditions in typed audiences) - convert from str to array * Addressed code review comments. * Addressed code review comments. * Addressed code review comments * feat (audience match types): Update condition evaluator for new audience match types. (#336) * Type changed to NSObject & a test case added * added all type attributes in Optimizely and EventBuilder test cases * attribute filtering in EventBuilder only * missing types added in attribute filtration * Added unit test in decision service and Notification Center to support all type of attributes. One more unit test fixed. For NSNull and Any object other than NSNumber. * null support for attributes & eventTags Notification Center PR. * Nullable attribute and eventTags activate listener and track listener * Generic listener and sendNotifications should have NSDictionary. * feat (audience match types): Update condition evaluator for new audience match types * Updates license * Addresses Review * Addressed Code Review comments. * 1. Merge branch 'sohail/null-attribute-support' into yasir/audience-match-type-evaluator/ 2. Fix code indentation. * Addressed code review comments. * Array issue in swift fixed. * typo corrected. * feat (audience match types): Update audience evaluator and project config for new audience match types (#337) * Type changed to NSObject & a test case added * added all type attributes in Optimizely and EventBuilder test cases * attribute filtering in EventBuilder only * missing types added in attribute filtration * Added unit test in decision service and Notification Center to support all type of attributes. One more unit test fixed. For NSNull and Any object other than NSNumber. * null support for attributes & eventTags Notification Center PR. * Nullable attribute and eventTags activate listener and track listener * Generic listener and sendNotifications should have NSDictionary. * feat (audience match types): Update condition evaluator for new audience match types * Updates license * Addresses Review * feat (audience match types): Update audience evaluator and project config for new audience match types * Refact: If no attributes, defaults to empty attributes * Addressed Code Review comments. * 1. Merge branch 'sohail/null-attribute-support' into yasir/audience-match-type-evaluator/ 2. Fix code indentation. * refact(conditions in typed audiences) - convert from str to array * Addressed code review comments. * Addressed code review comments. * Addressed code review comments * Array issue in swift fixed. * typo corrected. * feat(audience-evaluation) : add support for complex audiences (#343) * Headers updated. * Target Membership Updated for OPTLYAudienceBaseCondition. * Import Headers updated for SDKCore. * TVOS fix for AudienceBaseCondition.
- Loading branch information
1 parent
2cf848e
commit db72170
Showing
52 changed files
with
2,563 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
OptimizelySDKCore/OptimizelySDKCore/OPTLYAudienceBaseCondition.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/**************************************************************************** | ||
* Copyright 2018-2019, Optimizely, Inc. and contributors * | ||
* * | ||
* Licensed under the Apache License, Version 2.0 (the "License"); * | ||
* you may not use this file except in compliance with the License. * | ||
* You may obtain a copy of the License at * | ||
* * | ||
* http://www.apache.org/licenses/LICENSE-2.0 * | ||
* * | ||
* Unless required by applicable law or agreed to in writing, software * | ||
* distributed under the License is distributed on an "AS IS" BASIS, * | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * | ||
* See the License for the specific language governing permissions and * | ||
* limitations under the License. * | ||
***************************************************************************/ | ||
|
||
#ifdef UNIVERSAL | ||
#import "OPTLYJSONModelLib.h" | ||
#else | ||
#import <OptimizelySDKCore/OPTLYJSONModelLib.h> | ||
#endif | ||
#import "OPTLYCondition.h" | ||
|
||
@protocol OPTLYAudienceBaseCondition | ||
@end | ||
|
||
@interface OPTLYAudienceBaseCondition : NSObject <OPTLYCondition> | ||
|
||
@property (nonatomic, strong) NSString *audienceId; | ||
+(BOOL)isBaseConditionJSON:(NSData *)jsonData; | ||
|
||
@end | ||
|
Oops, something went wrong.