Skip to content

Commit

Permalink
feat: sending appVersion as a property on unleash (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso authored Jan 17, 2024
1 parent e036f60 commit 204c8b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sagas/featureToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import { Platform } from 'react-native';
import VersionNumber from 'react-native-version-number';
import { UnleashClient, EVENTS as UnleashEvents } from 'unleash-proxy-client';
import { get } from 'lodash';

Expand Down Expand Up @@ -89,11 +90,15 @@ export function* monitorFeatureFlags(currentRetry = 0) {
disableRefresh: true, // Disable it, we will handle it ourselves
appName: `wallet-mobile-${Platform.OS}`,
});

const { appVersion } = VersionNumber;

const options = {
userId: getUniqueId(),
properties: {
platform: Platform.OS,
stage: STAGE,
appVersion,
},
};

Expand Down

0 comments on commit 204c8b8

Please sign in to comment.