[Inji 267] sunbird telemetry configuration (#838)

* feat(INJI-267): add and export deviceId constant in constants file

Use react-native-device-info library to get the unique identifier for each and every device

* refactor(INJI-267): extracts AppId global variable into a global variable file and renames it to __AppId

* refactor(INJI-267): extracts inji version and tuvali version handling into global variable file

* feat(INJI-267): add telemetry configuration in the application

* feat(INJI-267): generate unique session id for every session of the app

After launching the app until we kill the app we consider it as a single session

* feat(INJI-267): add start and end telemetry events for the QR login success flow

* feat(INJI-267): pass session id value in sunbird config

* feat(INJI-267): add start and end telemetry events for the VC sharing success flow

* feat(INJI-267): add start and end telemetry events for the VC activation success flow

* refactor(INJI-267): change QR login, VC share telemetry events type

* refactor(INJI-267): extract generateSessionId function, deviceId into global variables file

* feat(INJI-267): adds device related information in the config value

* feat(INJI-267): add and export deviceId constant in constants file

Use react-native-device-info library to get the unique identifier for each and every device

* refactor(INJI-267): extracts AppId global variable into a global variable file and renames it to __AppId

* refactor(INJI-267): extracts inji version and tuvali version handling into global variable file

* feat(INJI-267): add telemetry configuration in the application

* feat(INJI-267): generate unique session id for every session of the app

After launching the app until we kill the app we consider it as a single session

* feat(INJI-267): add start and end telemetry events for the QR login success flow

* feat(INJI-267): pass session id value in sunbird config

* feat(INJI-267): add start and end telemetry events for the VC sharing success flow

* feat(INJI-267): add start and end telemetry events for the VC activation success flow

* refactor(INJI-267): change QR login, VC share telemetry events type

* refactor(INJI-267): extract generateSessionId function, deviceId into global variables file

* feat(INJI-267): adds device related information in the config value

* feat(INJI-267): add selected language in global variables file to pass it into sunbird config

* feat(INJI-267): updates config structure and add AppInfo event

* feat(INJI-267): create dummy end event data to make the schema and send AppInfo Event on app launch

* feat(INJI-267): add and export deviceId constant in constants file

Use react-native-device-info library to get the unique identifier for each and every device

* refactor(INJI-267): extracts AppId global variable into a global variable file and renames it to __AppId

* refactor(INJI-267): extracts inji version and tuvali version handling into global variable file

* feat(INJI-267): add telemetry configuration in the application

* feat(INJI-267): generate unique session id for every session of the app

After launching the app until we kill the app we consider it as a single session

* feat(INJI-267): add start and end telemetry events for the QR login success flow

* feat(INJI-267): pass session id value in sunbird config

* feat(INJI-267): add start and end telemetry events for the VC sharing success flow

* feat(INJI-267): add start and end telemetry events for the VC activation success flow

* refactor(INJI-267): change QR login, VC share telemetry events type

* refactor(INJI-267): extract generateSessionId function, deviceId into global variables file

* feat(INJI-267): adds device related information in the config value

* feat(INJI-267): add and export deviceId constant in constants file

Use react-native-device-info library to get the unique identifier for each and every device

* feat(INJI-267): add telemetry configuration in the application

* feat(INJI-267): pass session id value in sunbird config

* refactor(INJI-267): change QR login, VC share telemetry events type

* refactor(INJI-267): extract generateSessionId function, deviceId into global variables file

* feat(INJI-267): adds device related information in the config value

* feat(INJI-267): add selected language in global variables file to pass it into sunbird config

* feat(INJI-267): updates config structure and add AppInfo event

* feat(INJI-267): create dummy end event data to make the schema and send AppInfo Event on app launch

* feat(INJI-267): bump up react-native-localize and remove unnecessary code

* feat(INJI-267): remove some unused imports and unnecessary formattings

* feat(INJI-267): remove unnecessary formattings

* feat(INJI-267): extracts obsrv host in an env variable

* feat(INJI-267): add env variable in react-native-dot-env index file

* feat(INJI-267): bump up react-native-localize

---------

Signed-off-by: Swati Goel <meet2swati@gmail.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Co-authored-by: Swati Goel <meet2swati@gmail.com>
This commit is contained in:
Alka Prasad
2023-09-18 15:32:14 +05:30
committed by GitHub
parent 4572aeefb0
commit 3e5fb5fde4
16 changed files with 246 additions and 59 deletions

View File

@@ -9,6 +9,11 @@ declare module 'react-native-dotenv' {
*/
export const ESIGNET_HOST: string;
/**
* URL for the obsrv server for telemetry
*/
export const OBSRV_HOST: string;
/**
* API key to use Google Nearby Messages API
*/