Commit Graph

40 Commits

Author SHA1 Message Date
KiruthikaJeyashankar
33be02538a refactor(INJI-449): replace crypto-js with node-forge for encryption/decryption (#1034)
* refactor(INJI-449): replace crypo-js with node-forge

crypto-js has vulneraribitiles prior to version 4.2.0 for encryption / decryption & 4.x.x version is not compatible with our react native project For this reason we had to move to different library for encryption / decryption

Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
Signed-off-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>

* fix(INJI-449): secure-keystore warning popup shown on reload of app

settings key which was stored in storage was not loaded into settings machine context correctly, which caused the bug - on reload settings related flows was falling back to initial setting.

Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com>

Signed-off-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>

* refactor(INJI-449): gitignore automation test results

Signed-off-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>

* refactor(INJI-449): simplify usage of methods in node-forge

Signed-off-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>

---------

Signed-off-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
2023-11-29 14:32:34 +05:30
PuBHARGAVI
7a1178edca feat(Inji-436): add telemetry events for app triggered warnings (#986)
* refactor(INJI-435): add enum for flow type,end event status & interact event subtype

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* fix(INJI-435): change flow type value to camel case in getEventType function

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* feat(INJI-435): add start,interact & impression events in vc activation and create an object with telemetry constants

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* feat(INJI-435): add end,error events in vc activation flow

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* feat(INJI-435): increase the pressable area of kebab icon

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* feat: generate impression event only after going into otp modal & track binding_auth_failed error

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* refactor(INJI-435): move sendImpression event from addVc modal to otp modal

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* fix(INJI-435): add missing impression event in issuer machine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* refactor(INJI-435): return bindingAuthFailedError from state machines instead of splitting the error in tsx files

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* fix(INJI-435): add padding and fix the activation status overflow in all languages

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* refactor(INJI-435): change the telemetry sdk path in package.json

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* refactor(INJI-435): extract esignetMosipVcItem and existingMosipVcItem machines common functions into separate file

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* refactor(INJI-435): remove duplicate assignments of selectors

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* feat(INJI-436): add telemetry events to track the app generated warnings

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* fix(INJI-436): remove duplicate telemetry constant import in QR login file

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* refactor(INJI-436): remove unused app id import in app.tsx

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

---------

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
2023-11-06 13:37:26 +05:30
Swati Goel
142228b0db INJI-473) Code clean up and fixing metro errors/warnings (#947)
* feat(INJI-473) - Removed unused injiTourGuide action.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Removed unused logKey action.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Removed unused backendInfo api and state.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - simplify isPasscodeSet logic.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Move logState to commonUtil to remove cyclic dependency.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Delete unused code.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Refactor code to use util function for iOS or isAndroid.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Move Issuers_Key_Ref into utils.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Remove profile related resource from setting screen

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* feat(INJI-473) - Remove unused code for locales.

Signed-off-by: Swati Goel <meet2swati@gmail.com>

---------

Signed-off-by: Swati Goel <meet2swati@gmail.com>
2023-10-20 12:50:39 +05:30
Harsh Vardhan
86840edcc1 feat(INJI-458): show loading screen after closing of web view in OpenID4VCI flow (#932)
* perf(INJI-458): cache fixed result of custom keystore presence

Each call over the RN bridge can take significant user-visible time, and since
the result is used multiple times and cannot change for a device in runtime,
it can be computed once stored for later use.

Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

* feat(INJI-458): show loading for android h/w keystore check & generation

Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

* feat(INJI-472): show loader on issuer select

Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

* refactor(INJI-458): rename const name to isHardwareKeystoreExists

Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

---------

Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
2023-10-20 12:14:21 +05:30
vijay151096
37c65c4be1 refactor(inji-245): fix download VC on android using openid4vc from esignet (#860)
* refactor(inji-245): refactor the esignet vc item template, loader component, changed usage to vcitem containers

* refactor(INJI-245): remove isValidUrl check for issuer

If logoUrl is passed to issuer it will be rendering else Digit icon will be rendered by default

* fix(INJI-245): perform relevant action on pressing the issuer

* refactor(INJI-245): move vc type files to types folder

* refactor(INJI-245): modify style of VC details

* refactor(INJI-245): move VcItemTags to VC/common folder

* refactor(INJI-245): modify loader style

* fix(INJI-245): make issuer component testIDs visible

For a FlatList, the component passed should have a unique testID set to make accessiblity id visible in appium inspector

* fix(inji-245): fix download credential in the android

* refactor(inji-245): modify the credential endpoint and aud from config

* refactor(inji-245): handle UIN display in the esignet  vcitem template

* refactor(inji-245): method naming corrections

---------

Co-authored-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
2023-09-26 17:22:59 +05:30
Tilak Puli
ec9fd9f6d9 Inji-344: Refactoring VC Key (#798)
* feat(inji-344): Use VC Key class instead of separate functions for managing vc key

* feat(inji-344): Use properties from VcKey Class instead of reading from vckey string

* feat(inji-344): Rename vcKey to vcMetadata

* feat(inji-344): Use vc's unique id or vckey instead of joined string of vc metadata

* feat(inji-344): Use vc key instead of unique id to avoid confusion. Fix issues reg parsing vc metadata

* feat(inji-344):fix redownloading issue

Co-authored-by: Tilak <tilakpuli15@gmail.com>

* feat(inji-344): Remove vc getting stored on update of pin status

* feat(inji-344): update other vc's pin status to false when any vc is pinned

* feat(inji-344): remove hash ID for UIN

* feat(inji-344): revert google services json

* feat(inji-344): remove mmkv logs added for debugging

* feat(inji-344): fix received vcs not getting displayed on reopen of app

* feat(inji-344): fix id not shown in revoke component

---------

Co-authored-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
2023-09-20 16:51:59 +05:30
Alka Prasad
3e5fb5fde4 [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>
2023-09-18 15:32:14 +05:30
Swati Goel
4572aeefb0 Add support to change mimoto and esignet host url under credential registry (#837)
* feat(INJI-360): Add esignet host as env variable and use in QR login flow.

* feat(INJI-360): Fix compile error.

* chore(INJI-360): support esignet and mimoto base url in workflows for Android and iOS

* chore(INJI-360): add ESIGNET_HOST in Fastfile for android.

* chore(INJI-360): remove unnecessary env variables from ios build workflow.

* feat(INJI-360): Add setting to change esignet host url under credetntial registry.

---------

Signed-off-by: Swati Goel <meet2swati@gmail.com>
2023-09-18 14:38:11 +05:30
Swati Goel
27efaf6cdd Inji 360 Support different host for mimoto and esignet (#829)
* feat(INJI-360): Add esignet host as env variable and use in QR login flow.

* feat(INJI-360): Fix compile error.

* chore(INJI-360): support esignet and mimoto base url in workflows for Android and iOS

* chore(INJI-360): add ESIGNET_HOST in Fastfile for android.

* chore(INJI-360): remove unnecessary env variables from ios build workflow.
2023-09-13 11:24:21 +05:30
Dhivya
8843358fcf Merge remote-tracking branch 'upstream/develop' into inji-214 2023-08-17 18:38:43 +05:30
anil_majji
73d2dab45a Resolved the comments 2023-08-11 14:56:47 +05:30
anil_majji
7d6d2c8de0 Inplemented INJI Tour Guide in settings 2023-08-09 15:44:08 +05:30
Dhivya
f4726c1aee feat:(inji-175) show warning message when device keystore not supports 2023-07-31 13:19:35 +05:30
Dhivya
203a95b98b feat(inji-175): show warning message to user on android hardware keystore 2023-07-28 17:23:46 +05:30
Tilak Puli
16dbb19bc3 feat(#162): [Tilak|Pooja] remove unused parameters in settings.ts 2023-07-18 11:18:47 +05:30
Tilak Puli
9d15c615b4 feat(#162): [Tilak|Pooja] extract app id constants. 2023-07-14 17:54:32 +05:30
Kiruthika Jeyashankar
b4184c2034 refator(INJI-182): [Kiruthika] send app id as X-AppId in header in the API requests
Issue Link https://mosip.atlassian.net/browse/INJI-182
2023-07-14 15:07:32 +05:30
Tilak Puli
f0c3c65cae Merge remote-tracking branch 'origin/develop' into add-appid 2023-07-13 11:39:02 +05:30
Vijay
55dbd2431a fix(INJI-206): [Vijay] fix mmkv storage issue, environment url change persistance and literal change 2023-07-11 11:13:31 +05:30
Sri Kanth Kola
830e92bc26 [Release 03-07-2023]fix:saving credentialRegistry 2023-07-10 18:09:52 +05:30
Tilak Puli
c84632990d feat(#162): [Tilak|Pooja] Update app id when settings context is present in db but not app id 2023-07-08 17:06:42 +05:30
Tilak Puli
ea685ab30e feat(#162): [Tilak|Pooja] Update app id ux and use alphanum_upper of length 12 for uuid 2023-07-07 18:18:47 +05:30
Sri Kanth Kola
65837ff63c [Release 03-07-2023]fix:app crash on logout and remove checkbox and kebab on vc while sharing 2023-07-07 17:12:17 +05:30
Tilak Puli
6af720a9df feat(#162): [Tilak|Pooja] Create Short UUID using npm lib and display it in about page 2023-07-07 15:41:00 +05:30
Vijay
ac7da90fe9 feat(INJI-94): [Vijay] Environment Agnostics Basic Implementation
Issue Link: https://mosip.atlassian.net/browse/INJI-94
2023-06-07 14:51:20 +05:30
Vijay
1a3e39b6ef feat(INJI-94): [Vijay] Environment Agnostics Basic Implementation
Issue Link: https://mosip.atlassian.net/browse/INJI-94
2023-06-07 12:10:14 +05:30
PuBHARGAVI
b799d6444f refactor(#607): [Bhargavi] change the labels in the app profile screen 2023-03-06 22:30:12 +05:30
Paolo Miguel de Leon
28e4d1d8dc chore: update XState package 2022-12-12 13:03:46 +08:00
Paolo Miguel de Leon
9820473ee1 fix: simplify language codes 2022-04-25 15:38:59 +08:00
Nichole Martinez
049f589228 Implement toggle Biometrics enable/disable 2022-04-07 19:58:29 +08:00
pmigueld
2574af3dcc chore: use XState TypeGen 2022-04-06 16:35:48 +08:00
Danica Erediano
1b743f5716 rebase conflicts 2022-03-28 11:37:40 +08:00
Danica Erediano
27a7f44b71 updated 2022-03-28 11:37:00 +08:00
pmigueld
72caf6565b chore: remove TODOs 2022-03-23 14:04:05 +08:00
Nichole Martinez
bf8efeb239 Resolve code smells 2022-03-22 18:50:17 +08:00
pmigueld
984bd16d7e feat: change default VC label 2022-03-18 20:00:55 +08:00
pmigueld
b5c0293377 refactor: rename symbols 2022-03-17 14:25:31 +08:00
pmigueld
f4164e30ab use VC as default label 2022-03-03 15:42:39 +08:00
pmigueld
c43ee1b2f0 add env constants 2022-02-21 00:06:56 +08:00
Paolo Miguel de Leon
b5be632225 version 0.2.0 2022-02-15 10:26:25 +07:00