Skip to content
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

Merged
merged 8 commits into from
Oct 23, 2018

Conversation

AbdurRafay
Copy link
Contributor

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.

@msohailhussain msohailhussain changed the title feat(api): Accepting all types for attributes values feat(api): Accepting all types for attributes values (WIP) Sep 20, 2018
* 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
@coveralls
Copy link

coveralls commented Sep 24, 2018

Coverage Status

Coverage increased (+0.02%) to 97.579% when pulling 1225fb3 on arafay/attributes-type into ce6676c on master.

@msohailhussain
Copy link
Contributor

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)
@msohailhussain msohailhussain changed the title feat(api): Accepting all types for attributes values (WIP) feat(api): Accepting all types for attributes values Oct 3, 2018
@msohailhussain
Copy link
Contributor

build

Copy link
Contributor

@thomaszurkan-optimizely thomaszurkan-optimizely left a 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.
Copy link
Contributor

@thomaszurkan-optimizely thomaszurkan-optimizely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@msohailhussain
Copy link
Contributor

@mikeng13 Can you merge this branch?

@mikeproeng37 mikeproeng37 merged commit 259ece0 into master Oct 23, 2018
@yasirfolio3 yasirfolio3 deleted the arafay/attributes-type branch January 21, 2019 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants