-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): Accepting all types for attributes values #309
Conversation
* master: refactor(EventBuilder): Moved decision service and bucketing from EventBuilder to Optimizely (#306) fix(datafile-parsing): Prevent SDK from initializing if the datafile … (#305) XCode bitcode issue (#300) Add missing nullable and nonnull annotations. Only log attribute not found if it is not found (#311) # Conflicts: # OptimizelySDKCore/OptimizelySDKCore/OPTLYEventBuilder.h # OptimizelySDKCore/OptimizelySDKCore/OPTLYEventBuilder.m # OptimizelySDKCore/OptimizelySDKCoreTests/OPTLYEventBuilderTest.m
build |
* master: update changelog for new release (#322) add test script and fix broken carthage build (#321) Prepare for2.1.1 (#318) add EventTagUtil to universal project (#314) Fix an issue where importing an Objective-C type called Optional causes LLDB to sometimes not be able to distinguish between Swift.Optional and OptimizelySDKiOS.Optional. (#274) remove unused protocol (#313) fix(whitelisting): Invalid whitelisted variation stops bucketing (#308)
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot some methods such as Optimizely.m line 885. Also, we need to update the notification listeners and the decision service tests.
…t all type of attributes. One more unit test fixed. For NSNull and Any object other than NSNumber.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mikeng13 Can you merge this branch? |
Summary
To support all types of attribute values I changed all relevant function signatures from NSDictionary<NSString *, NSString *> to NSDictionary<NSString *, NSObject *> so that it can accepts an Object variable rather than just a String for functions that accept and uses attributes.
Testing
All types of attributes are added in Optimizely and EventBuilder test cases and they are passing.