Skip to content

Conversation

@zashraf1985
Copy link
Contributor

Summary

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

react-native-js

Client Engine will be set to react-native-js when a react native application will use javascript sdk directly

react-native

Client Engine will be set to react-native when a react native application will use react sdk

Client Versions

Client versions behave correctly 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 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 goes with clientVersion of react SDK.

Test plan

Made appropriate changes to already existing unit tests.

@coveralls
Copy link

coveralls commented Apr 1, 2020

Coverage Status

Coverage increased (+0.005%) to 97.226% when pulling 93e4284 on zeeshan/add-react-native-client-engines into 645ea8a on master.

@zashraf1985 zashraf1985 removed their assignment Apr 1, 2020
2. Added tests to make sure client engine values always end with -sdk
@mjc1283 mjc1283 merged commit 2ac685b into master Apr 2, 2020
@mjc1283 mjc1283 deleted the zeeshan/add-react-native-client-engines branch April 2, 2020 16:10
jasonkarns added a commit to github/optimizely-javascript-sdk that referenced this pull request May 4, 2020
* tag 'v4.0.0-alpha.1':
  chore: Prepare for 4.0.0-alpha.1 release (optimizely#439)
  feat: Added React Native Client Engines to be sent in events (optimizely#435)
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.

4 participants