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: Added React Native Client Engines to be sent in events #696

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

zashraf1985
Copy link
Contributor

Summary

Added Two new client engine values to be sent in events.

react-native-sdk: Client name will be set to react-native-sdk when a react native application will use react sdk i.e @optimizely/react-sdk.

react-native-js-sdk: Client name will be set to react-native-js-sdk when a react native application will use javascript sdk directly i.e @optimizely/optimizely-sdk.

Client Versions

Client versions behave the way they did without any change. Current behaviour is.

  1. When a react native app uses javascript SDK directly, clientVersion will be the version of javascript SDK. Which means react-native-js-sdk goes with clientVersion of javascript SDK.
  2. When a react native app uses React SDK, clientVersion will be the version passed in by react SDK. This means react-native-sdk goes with clientVersion of react SDK.

Test plan

Made appropriate changes to already existing unit tests.

@zashraf1985 zashraf1985 requested a review from a team as a code owner July 30, 2021 23:44
@zashraf1985 zashraf1985 removed their assignment Jul 30, 2021
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 96.982% when pulling 9b5cffe on zeeshan/add-react-native-client-name into 930c473 on master.

Copy link
Contributor

@yavorona yavorona left a comment

Choose a reason for hiding this comment

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

LGTM! We should just wait for travis to run prior to merging.

@zashraf1985 zashraf1985 merged commit a37cfb2 into master Aug 2, 2021
@zashraf1985 zashraf1985 deleted the zeeshan/add-react-native-client-name branch August 2, 2021 17:33
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.

None yet

3 participants