Commit Graph

121 Commits

Author SHA1 Message Date
Harsh Vardhan
c05408413d [INJI-314] [INJI-900] add jest testing config, mocks and sample unit tests for Inji (#1340)
* [INJI-314] initial commit

Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com>

* [INJI-314] add WIP ut stuff

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

* [INJIMOB-314] fix tsconfig for project type

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

* [INJIMOB-314] kludge - skip checking types during unit tests

* mock image imports globally
* enable tests to run from any dir

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

* [INJIMOB-314]: mocked modules

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>

* [INJIMOB-314]: mock react-native-google-signin

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>

* [INJIMOB-314]: use defined mock from google-signin lib

other details:
- mock base58.., rn-linear-gradient, expo-camera
- add @react-native/assets-registry to make jest-expo babel preset work

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

* [INJIMOB-314] reorganise global const mocks into jest's setupFiles

Co-authored-by: srikanth716 <srikanthsri7447@gmail.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

* [INJIMOB-900] write tests for ActivityLogEvent

* init relevant mocks
* remove redundant global mocks from test files

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

* [INJIMOB-900] fixup mocks of mmkv, zip-archive, rnfs

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

* [INJIMOB-900]: write unit test for commonUtil

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>

* [INJIMOB-900]: write unit test for commonUtil

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>

* [INJIMOB-900]: sample unit test for settingsScreen

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>

* [INJIMOB-900] add SettingScreen test

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

* [INJIMOB-900] update sample tests for commonUtil

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

* [INJIMOB-900]: refactoring the settingsScreen test for Android and IOS

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>

* [INJIMOB-900] update test snapshots and add kludge in auth for testing

kludge: auth state machine now exports a selector with optional fields
as state machine isn't running in a test environment

Co-authored-by: srikanth716 <srikanthsri7447@gmail.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

* [INJIMOB-900]: snapshot test to settings screen

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>

* [INJIMOB-900] update mocks for testing and ACK reviews

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

* [INJIMOB-900] downgrade expo to match compatibility matrix

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

* [INJIMOB-900] upgrade expo to 49 to build the iOS app(kludge)

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

* [INJIMOB-900] configure react-native-vector-icons as per README

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

---------

Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
Co-authored-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
2024-04-02 11:22:01 +05:30
adityankannan-tw
5158ef9848 [INJIMOB-681] add a secret to workflow and fastfile (#1221)
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2024-02-02 19:57:30 +05:30
KiruthikaJeyashankar
42fa291dfa [INJI-714] fix app relaunch in scan & receive screen (#1191)
App relaunch when nearby permissions is allowed in scan screen and navigated to receive screen and vice versa. This was happening due to our custom logic handled in MainActivity onRequestPermissionsResult performing activity recreation when requestCode is  1 & is not denied. The requestCode for BLUETOOTH_SCAN (in Share screen) permission grant result is 1 (after giving nearby devices permission in receive screen) which satisfied the condition of app relaunch. For this reason onRequestPermissionsResult method has been removed.

Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
2024-01-22 10:38:23 +05:30
adityankannan-tw
e4593fd0b3 [INJI-720] add a workflow to upload to actions (#1169)
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
2024-01-16 18:25:33 +05:30
PoojaBabusing
c955b9b97a [INJI-617]: show required scan permission when phone is locked and unlocked (#1121)
Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
2024-01-02 11:19:13 +05:30
Swati Goel
7406873666 Merge branch 'release-0.10.0' into INJI-624-merge-to-develop 2023-12-19 15:23:38 +05:30
adityankannan-tw
64b119f8d4 ci(INJI-564): change bundle id for default app
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-11 17:22:22 +05:30
adityankannan-tw
b650cc4792 ci(INJI-564): change bundle id and artifact name
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-11 17:18:13 +05:30
adityankannan-tw
5cc7857267 ci(INJI-564): change permissions for project file
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-11 10:25:00 +05:30
adityankannan-tw
182ed640b4 ci(INJI-564): change permissions for project file
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-11 10:16:01 +05:30
adityankannan-tw
e95edfecc2 ci(INJI-564): fix bundle id and path error
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-08 14:33:20 +05:30
adityankannan-tw
8c06963f37 ci(INJI-564): fix bundle id and path error
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-08 14:31:00 +05:30
adityankannan-tw
d247eaa426 feat(MOSIP-29236): add reusable workflows (#1047)
* refactor(INJI-541): add functions to get the bundle id and app name

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-08 10:59:51 +05:30
adityankannan-tw
beae2663af feat(INJI-541): add reusable workflows and multiple app flavors (#1044)
* refactor(INJI-541): add functions to get the bundle id and app name

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
2023-12-08 10:58:38 +05:30
KiruthikaJeyashankar
6ce73a26e0 refactor(INJI-449): fix OWASP vulnerabilities with dependencies (#1035)
* refactor(INJI-449): remove unused dependencies

Dependencies removed

1. expo-status-bar
2. @expo-google-fonts/poppins
3. react-native-simple-markdown
4. react-native-swipe-gestures

DevDependencies removed

1. @react-native/metro-config (removed as we already have @expo/metro-config dependency used)
2. metro-react-native-babel-preset
3. @types/react-test-renderer
4. react-test-renderer

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

* refactor(INJI-449): update expo related packages and crypto-js

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

* refactor(INJI-449): update transitive dependency of expo-updates package

plist package is a transitive dependency of expo-updates which had vulnerability - Prototype pollution vulnerability via .parse() in Plist before v3.0.4 allows attackers to cause a Denial of Service (DoS) and may lead to remote code execution. Thus this package was updated to fix vulnerability

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

* refactor(INJI-449): update axios dependency of telemetry-sdk to 1.6.0

Since the package axios(1.5.0) has vulnerability - Cross-Site Request Forgery (CSRF), it is updated to 1.6.0

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

* fix(INJI-449): vulnerablity issue with @digitalbazaar/rsa-verification-key-2018

override the node-forge dependency of the package - @digitalbazaar/rsa-verification-key-2018 as it has the high severity with CVE count 13

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

* revert(INJI-449): downgrade crypto-js to 3.3.0 from 4.x.x version

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

* refactor(INJI-449): use expo-splash-screen instead of expo-app-loading

expo-app-loading package is deprecated and it is suggested to replace it with expo-splash-screen

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

* refactor(INJI-449): optimize time taken to hide splash screen

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): change appEntry to index js

Change appEntry to index.js file since react-native-url-polyfill/auto is imported to avoid URL error. appEntry is required for expo package update

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

* refactor(INJI-559): update podfile.lock

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

* refactor(INJI-449): optimize import

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

---------

Signed-off-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
2023-11-29 15:10:56 +05:30
vijay151096
b0ebef0acd fix(inji-522): enable the location service before initiating the vc sharing. (#1004)
* fix(inji-522): enable the location service before initiating the vc sharing.

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* fix(inji-522): update literals in the location service enabling popup

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* fix(inji-522): update checkLocation state name

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* fix(inji-522): removed duplicate namespace

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

---------

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>
2023-11-16 10:28:12 +05:30
Sreenadh S
a557b679ea fix(INJI-367): remove unused permissions (#1008)
Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
2023-11-16 10:26:14 +05:30
adityankannan-tw
e82599f396 Revert "feat(MOSIP-29236): Add reusable workflows (#969)" (#972)
This reverts commit c4b81a70f7.
2023-10-30 13:26:08 +05:30
adityankannan-tw
c4b81a70f7 feat(MOSIP-29236): Add reusable workflows (#969)
* feat(MOSIP-29236): Add reusable workflows

* feat(MOSIP-29236): refactor reusable workflows
2023-10-28 22:27:03 +05:30
Kiruthika Jeyashankar
d22817030b Merge remote-tracking branch 'upstream/develop' into inji-505-release
Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Signed-off-by: Kiruthika Jeyashankar <81218987+KiruthikaJeyashankar@users.noreply
.github.com>
2023-10-25 11:02:45 +05:30
adityankannan-tw
47b558032e Inji - 368 integrate iris scan android ios (#936)
* feat(INJI-368): Integrate irisScan for android and ios

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* feat(INJI-368): Add path to the model file

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* feat(INJI-368): Integrate irisScan for android and ios

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* feat(INJI-368): Update package lock json

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

---------

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>
Signed-off-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Signed-off-by: Swati Goel <meet2swati@gmail.com>
Co-authored-by: Swati Goel <meet2swati@gmail.com>
2023-10-23 17:36:28 +05:30
Swati Goel
b75802f57e feat(INJI-499) - Remove unused code for google near by and firebase. (#963)
Signed-off-by: Swati Goel <meet2swati@gmail.com>
2023-10-23 16:36:45 +05:30
Swati Goel
61b6dfd1fb Merge remote-tracking branch 'upstream/develop' into inji-455-release 2023-10-11 23:40:28 +05:30
Sreenadh S
32fcc05ea4 MOSIP-29527 pen test issue threat modeling fixes (#907)
* fix(MOSIP-29527): threat modeling suggestion fixes

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

* fix(MOSIP-29527): remove unused permissions

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

---------

Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
2023-10-11 11:01:14 +05:30
Tilak Puli
80c0b1c654 feat(inji-398): enable cleartextTrafficPermitted in debug mode (#895) 2023-10-05 15:10:31 +05:30
Sreenadh S
656699ade2 fix(MOSIP-29275): make usesCleartextTraffic to false for more secure communication (#886)
* fix(MOSIP-29275): make usesCleartextTraffic to false for more secure communications

* fix(MOSIP-29275): override usesCleartextTraffic to false in main manifest

---------

Signed-off-by: Swati Goel <meet2swati@gmail.com>
Co-authored-by: Swati Goel <meet2swati@gmail.com>
2023-10-04 17:59:49 +05:30
Sreenadh S
2c6ec44f46 fix(MOSIP-29203,MOSIP-29214): remove use of ContextCompat (#888) 2023-10-04 17:02:47 +05:30
Sreenadh S
d4f701068e fix(MOSIP-29265): remove plaintext api key from main manifest (#890) 2023-10-04 17:02:33 +05:30
Swati Goel
e3ed7100ba Merge remote-tracking branch 'upstream/develop' into inji-415-release 2023-09-29 00:12:10 +05:30
KiruthikaJeyashankar
55c666b121 feat: download credentials from Esignet using openId4VCI (#851)
* feat(INJI-245): dowload and view card via issuers

Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>

* fix(INJI-245): remove vc from wallet

Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>

* feat(INJI-245): pin card downloaded via eSignet

* refactor(INJI-245): remove debug logs

* refactor(INJI-245): rename vcItem related component to ExistingVcItem

* refactor(INJI-245): add lock file modifications

* refactor(INJI-245): add styles in purple theme for issuer related components

* refactor(INJI-245): update VID for wallet binding usecase and issuer logo display in vc

* refactor(INJI-245): remove duplicate loader component

* refactor(INJI-245): remove unused props in vc details container

---------

Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
Co-authored-by: Vijay <94220135+vijay151096@users.noreply.github.com>
2023-09-22 17:22:59 +05:30
adityankannan-tw
46fd645897 Add a job to upload apk to Github Actions (#836)
* feat(INJI-333): Add a job to upload apk to Github actions in internal build

* fix(INJI-333): Add a job to upload to Github actions
2023-09-15 12:21:44 +05:30
Swati Goel
4b182493c0 Revert "feat(INJI-333): Add a job to upload apk to Github actions in internal build (#832)" (#835)
This reverts commit 5c0ac9d169.
2023-09-14 17:33:26 +05:30
adityankannan-tw
5c0ac9d169 feat(INJI-333): Add a job to upload apk to Github actions in internal build (#832) 2023-09-13 11:57:56 +05:30
dhivya0413
769ed54bcf [INJI-195] Upgrade React native version to 0.71.8 (#824)
* chore(INJI-195): upgrade react native version and dependencies

* chore(INJI-195): upgrade expo version and dependencies

* chore(INJI-195): modify associated files on version upgrade

* chore(INJI-295): fixed react native flipper and patch packages

* chore(INJI-195): fix for expo prebuild

* chore(INJI-195): expo linked to android/ios projects

* chore(INJI-195): update metro config

* chore(INJI-195): fix ios build with mmkv storage patch

* chore(INJI-195): gradle version modified

* chore(INJI-195): fixed rn version 0.71.8 due to mmkv library issue

* chore(INJI-195): removed files in android

* chore(INJI-195): fix 0.71.8 for iOS project through pods with expo linking

* chore(INJI-195): fix for custom fonts added through pods due to rn linkage

* chore(INJI-195): fix for removing assets.car generated from pods

* Modify Node version in pipeline (#806)

* chore(INJI-195): fix for android splash screen not shown up

* chore(INJI-195): upgraded to node 18 in pipeline

* chore(INJI-195): add the pod install twice to remove duplicates via script workaround (#807)

Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>

* INJI-195 Set the signing team for iOS  (#810)

* chore(INJI-195): add the pod install twice to remove duplicates via script workaround

* chore(INJI-195): set the signing team for ios build

---------

Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>

* Modify github runner to self hosted runner (#811)

* chore(INJI-195): add the pod install twice to remove duplicates via script workaround

* chore(INJI-195): set the signing team for ios build

* chore(INJI-195): set the self hosted runner for ios build

---------

Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>

* Modify self hosted runner to github hosted runner  (#813)

* chore(INJI-195): add the pod install twice to remove duplicates via script workaround

* chore(INJI-195): set the signing team for ios build

* chore(INJI-195): set the self hosted runner for ios build

* chore(INJI-195): modify the self hosted to github hosted runner

---------

Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>

* chore(INJI-195): modify the self hosted to github hosted runner

* chore(INJI-195): set the code signing identity for ios build

* chore(INJI-195): assigned app icon files to asset

---------

Signed-off-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>
Signed-off-by: Swati Goel <meet2swati@gmail.com>
Co-authored-by: Swati Goel <meet2swati@gmail.com>
2023-09-13 11:53:59 +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
srikanth716
d9bb51bd2d fix(INJI-134):New mosip logo is updated in the inji app (#801)
* fix(INJI-134):New mosip logo is updated in the inji app

* fix(INJI-134):New mosip logo is updated in the inji ios
2023-09-12 10:31:19 +05:30
Swati Goel
d5d1c25bfb chore(INJI-303): update android target and compile sdk to API level 33 (#790) (#797)
* bump up react-native-gesture-handler version to 2.5.0
   * remove RNGestureHandlerEnabledRootView as it is not needed in new version of react-native-gesture-handler

Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
2023-09-06 13:19:31 +05:30
Sreenadh S
ebbad8e203 chore(INJI-303): update android target and compile sdk to API level 33 (#790)
* bump up react-native-gesture-handler version to 2.5.0
   * remove RNGestureHandlerEnabledRootView as it is not needed in new version of react-native-gesture-handler
2023-09-01 11:23:02 +05:30
KiruthikaJeyashankar
fddc16de6a Sprint 9 - 31 August 2023 Build (#788)
* Removed async  at downloadModal in auth.ts

* Removed debug.keystore file

* fix(INJI-187) : [Vijay|Alka] Fixed Purple Theme Related Bugs and Duplicate Permission popup issue.

* fix(INJI-187) : [Vijay] fix about inji documentation page redirection

* Fixes in ui-revamp-release

* fix:vcsharing and wallet binding

* Removed key names version, tuvali-version in locals of AboutInji obj.

* feat(INJI-172): display error popup to restrict vc share when audit entry is not possible

audit entry cannot be made when the device remaining storage has reached the minimumStorageRequiredForAuditEntryInMB

Issue Link https://mosip.atlassian.net/browse/INJI-172

* Reverted lst commit and removed version number in locals

* fix:vcsharing and wallet binding

* removing logger

* fix(INJI-187) : [Vijay] fix welcome screen auth issue, hide the inji tour guide option and fix the tuvali version in about inji

* fix(INJI-92): [Bhargavi] show proper error message in the UI for the deactivated UIN & VID

Issue Link https://mosip.atlassian.net/browse/INJI-92

* fix(INJI-187) : [Vijay] add missing literals in hindi

* feat[#190]:[Pooja] fix back button on incoming VC page to show QR when clicked

* refator(INJI-172): [Kiruthika] rename the config key for storage limit to minimumStorageRequiredInMB

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] rename translation path of storage limit reached error shown while adding / receiving VC

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] rename storage limit reached for making audit entry variable

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] remove unused context storeError in vcItem machine

Issue Link https://mosip.atlassian.net/browse/INJI-172

* fix:logout crash

* feat(#162): [Tilak|Pooja] Create Short UUID using npm lib and display it in about page

* [Release 03-07-2023]fix:app crash on logout and remove checkbox and kebab on vc while sharing

* feat(#162): [Tilak|Pooja] Update app id ux and use alphanum_upper of length 12 for uuid

* feat(#162): [Tilak|Pooja] Add copy button for app id

* feat(#162): [Tilak|Pooja] Update app id when settings context is present in db but not app id

* feat[#162]:[Pooja] add translations for app ID

* feat[#162]:[Pooja] add translations for copy button

* [Release 03-07-2023]add:loader while saving credential registry

* [Release 03-07-2023]fix:saving credentialRegistry

* fix(INJI-206): [Vijay] fix mmkv storage issue, environment url change persistance and literal change

* fix(INJI-206): [Vijay] add comment on the getFileName method

* Adjusted splash-screen & updated locals

* Cleared existing develop changes in PR

* Cleared comments mentioned in locals

* refator(INJI-172): [Kiruthika] modify storage limit reached error message while adding or receiving card

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] add storage limit reached error message in spanish locale

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] move storage limit reached check function to storage class

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] add missing storage limit reached error message in strings.json file

Issue Link https://mosip.atlassian.net/browse/INJI-172

* fix(INJI-206): [Vijay] remove vc from RNFS when vc metadata is removed from MMKV

* refator(INJI-172): [Kiruthika] extract service and action

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] remove MB from min storage limit property name

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] extract function for displayng storage limit reached error

Issue Link https://mosip.atlassian.net/browse/INJI-172

* fix(INJI-172): [Kiruthika] show storage limit popup on minimum storage limit reached criteria when bluetooth is off

Issue Link https://mosip.atlassian.net/browse/INJI-172

* Test check

* refator(INJI-172): [Kiruthika] rename the config key of storage limit

Issue Link https://mosip.atlassian.net/browse/INJI-172

* Calculate HMAC and store Encrypted HMAC in Database

* Revert Test Check

* fix(INJI-212): [Vijay] fix qrlogin success popup redirection to history issue and vc sharing in progress screen issue

* Change error pop up text in my vc's tab for tampered data

* Revert english json changes

* refator(INJI-172): [Kiruthika] extract service and action

Issue Link https://mosip.atlassian.net/browse/INJI-172

* refator(INJI-172): [Kiruthika] replace equality check of boolean with type conversion

Issue Link https://mosip.atlassian.net/browse/INJI-172

* Add encoding for decryption of HMAC

* [Release 03-07-2023]fix:sharing timeout message displaying always

* feat(#162): [Tilak|Pooja] remove unnecessary style from purple

* [Release 03-07-2023]fix:sharing timeout message displaying always

* [Release 03-07-2023]fix:navigation to history tab after successfully receiving VC

* [Release 03-07-2023]fix:navigation to history tab after successfully receiving VC

* [Release 03-07-2023]fix:navigation to history tab after successfully receiving VC

* 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

* fix(INJI-210): [Bhargavi] show the home screen after closing the success status overlay

Issue Link https://mosip.atlassian.net/browse/INJI-210

* feat(#162): [Tilak|Pooja] extract app id constants.

* refator(INJI-182): [Kiruthika] send app id in header only for the residentmobileapp API requests

Issue Link https://mosip.atlassian.net/browse/INJI-182

* feat(#INJI-178) [Adityan] calculate and store encrypted HMAC hash of vc's metadata in database

* feat(#INJI-178) [Adityan] calculate and store encrypted HMAC hash of vc's metadata in database and fix

* feat(#INJI-173) [Adityan] Added a beta release workflow when tagged

* Refactor the code and remove unused params

* Refactor the code and remove unused parameters

* feat(#162): [Tilak|Pooja] fix merge issue in hindi and format app id dictionary

* Refactor the code and remove debug logs

* feat(#162): [Tilak|Pooja] remove unused parameters in settings.ts

* feat(INJI-149): add a popup when keychain fails to get password

Reason: when keychain.getGenericPassword errors due to a false/falsy response,
  the state machine goes ahead and clears the MMKV store and the VC
  directory as without the key the encrypted data is not meaningful,
  it may so happen that the keychain/keystore is not unlocked yet as
  most modern mobile OSes can choose to lock access to it when the phone
  is locked

Fix: earlier the state machine would go and clear the datastores without
  user intervention, this fix will give the user a prompt if encrypted
  VCs exist on app-data and allow user to try reading the keychain once
  again before silently deleting everything

Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Co-authored-by: Alka <prasadalka1998@gmail.com>

* feat(INJI-149): add DualMessageOverlay component

details about the component:

- has two buttons tryAgain & cancel each occupying half the space in the
  row
- kludge: uses similar styling for both themes
    - TODO: override the width styles in-place instead
- this component should not be used for production as this is strictly
  temporary for narrowing down in on bugs

Other changes:

- removed additional button from original MessageOverlay component

* fix(INJI-149): remove unavailable action from store.ts

* chore: add missed out Podfile.lock changes

* feat(INJI-149): remove extra button component of half width

* feat(INJI-149): make DualMessageOverlay button gradient type

Co-authored-by: <vijay@Vijays-MacBook-Pro.local>

* chore: add check for Verifiable document store init

other changes:
- add Podfile.lock
- remove debug logs

* chore: bump up the tuvali version to v0.4.2 for release 18-07-2023

* fix: remove double quotes to the margin top property in send vc screen

* feat(#162): [Tilak] fix ios logout crash by navigating on timeout

* feat(#162): [Tilak] fix ios logout crash by navigating on timeout

* fix(INJI-178): check for tampered VC without considering pinned state

Issue Link https://mosip.atlassian.net/browse/INJI-178

* refactor: [Kiruthika | Dhivya] fix type warnings

* fix(INJI-223): show the camera in scan screen while sharing the VC and click on scan icon

Issue Link https://mosip.atlassian.net/browse/INJI-223

* fix version code error for internal build workflow (#761)

* chore: update pod deps' to match development team of 1st project

* feat(inji-214): [Dhivya|Tilak] integrate the secure store

* feat[#211]:[Pooja] fix turncated passcode and confirm password button

* feat[#211]:[Pooja] fix truncated histroy title text in iOS

* feat(inji-214): [Dhivya|Tilak] conditional check added for platform

* feat(inji-214): [Dhivya] modified state machine for generating keypair

* feat[#211]:[Pooja] fix multiple error being displayed when the vc binding fails

* fix(INJI-223): disconnect the device while sharing the VC and click on tab icons except scan icon

Issue Link https://mosip.atlassian.net/browse/INJI-223

* feat[#211]:[Pooja] fix download card button styles

* feat(inji-214): [Dhivya|Tilak] add logstate for vcitem state machine

(cherry picked from commit 7001679cdd6f46dfc5a60474f30284292e69b888)

* version code for beta build in pipeline

* feat(inji-214): [Dhivya|Tilak] use Secure key store to sign jwt for auth

* feat[#211]:[Pooja] add error message when VC activation fails in kebab pop up

* chore(INJI-216): bump up tuvali version to v0.4.3

* feat[#225]:[Pooja] fix about inji url in about page

* chore(INJI-216): bump up tuvali version to v0.4.3

* chore(INJI-216): update podlock file with the correct tuvali version

* feat(inji-214): [Dhivya|Tilak] use sdk hmac method to create hmac for vc key

* feat(inji-214): [Tilak|Dhivya] refactor hmac functionality

* feat(inji-214): [Dhivya|Tilak] modify generatehmac function definition

* refactor(INJI-223): get the scan string from route config to keep it consistent

Issue Link https://mosip.atlassian.net/browse/INJI-223

* feat[mosip#211]:[Pooja] refactor onCancel

Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>

* feat(inji-175): show warning message to user on android hardware keystore

* feat(inji-175): refactor the files

* feat(inji-214): [Dhivya|Tilak] use sdk to create signature

* feat:(inji-175) show warning message when device keystore not supports

* fix(inji-175): resolve conflicts

* feat(inji-175): locales changes for hardware keystore not exists warning text

* feat(INJI-222): add popup for error in decryption

* feat(INJI-222): wrap app init component & popups

* feat(INJI-222): propagate event from _store to app state machine

Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* feat(inji-175): modify arabic title locale

* chore(INJI-222): move error msg text to errors obj

* feat(inji-175): update mosip package name

* Implemented Receive Card & Received Cards options in Settings

* Fixed all the locals

* fix(inji-175): modify variable name and refactor existing code

* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned

* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned

* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned

* [Inji-248]fix:The audit for deleting the VC is not logged in the history

* fix:naming conventions, removed log and values in locals

* Update .project

* Initial commit 07-08-2023

* [INJI-249]fix:Back button from the ellipsis page not working on the mobile

* Inplemented INJI Tour Guide in settings

* Set navigation from auth to home screen

* feat(inji-214): [Dhivya|Tilak] Update encryption and decryption to call SecureKeystore sdk with biometric auth enabled

* Resolved the comments

* Updated 'Get Started' button text in hindi locals

* feat(INJI-238): handling errors when invalidate keys of biometric

* feat(INJI-238): add reset keys action

* fix(INJI-149): skip showing read-error popup on launch

* feat(inji-238): fetch enabled device biometric from sdk

* chore: disallow expansion of received cards

* feat(inji-214): [Dhivya|Tilak] fix app events RESET_KEY_INVALIDATE_ERROR_DISMISS not accessible issue

* feat(inji-214): [Dhivya|Tilak] fix generate key pair failing due to wrong count of arguments

* fix(INJI-192): add error message translations for HMAC calculation

* feat(inji-214): [Dhivya|Tilak] Update biometric popup text

* feat(inji-238): translations added for biometric text

* feat(inji-214): [Dhivya|Tilak] fix language not getting updated for auth popup

* fix(INJI-286):Show VC detailed view in the Received Vc screen

* fix(INJI-286):Show VC detailed view in the Received Vc screen

* fix(INJI-285): Added the flip camera buton in the scan screen

* fix(INJI-262):pinned VC's audit logs are missing

* fix(INJI-262):pinned VC's audit logs are missing

* fix(INJI-214): secure-keystore version changes

* fix(INJI-214): fixed Podfile.lock merge issue

* refactor(INJI-214): refactor the code

* fix(INJI-262):pinned VC's audit logs are missing

* fix(INJI-211[1]): improve isPinned evaluation of (un)pinned VCs (#102)

* fix(INJI-211[1]): Pin/unpin card not working intermittently

* fix(INJI-263):camera is not opening when vc is pinned

* fix(INJI-262):pinned VC's audit logs are missing

* fix(INJI-262):pinned VC's audit logs are missing

* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned

* feat(inji-238): handle key not found error after key invalidation

* feat(inji-238): reinit app machine on dismiss of invalidation popup

* fix(INJI-262):pinned VC's audit logs are missing

* fix(INJI-263):camera is not opening when vc is pinned

* feat(INJI-255): hash the passcode and store in mmkv

* feat(inji-238): use a dummy key to request biometric auth everytime user opens the app

* feat(inji-238): revert tamperedErrorMessageString value

* feat(inji-293): use jetify to fix react-native/location bundle issue

* feat(inji-293): fix jetify running location

* Inji 282 disable camera error (#775)

* fix(INJI-282): Correct error message will be displayed when camera is disabled

* fix(INJI-260):app not aligned properly with the smaller display screen (#778)

* Fixed tab elements which are still in english (#779)

* feat(INJI-202): hash uin/vid to store in mmkv and file storage (#780)

* feat(INJI-202): hash uin/vid to store in mmkv and file storage

* feat(INJI-202): refactor to store salt in constants

* feat(INJI-202): refactor argon2i salt and add function to get MMKV data

* feat(INJI-202): refactor to get mkkv data method

---------

Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* fix(inji-253): set thumbprint on wallet binding for e-signet login

* fix(INJI-296): label mismatch in language files (#772)

* fix(INJI-262):pinned VC's audit logs are missing

* fix(INJI-286): expand received card popup on click (#783)

Revert "chore: disallow expansion of received cards"

This reverts commit 038b6e4259.

* chore(INJI-304): bump up secure keystore version to v0.1.1

* chore(INJI-304): bump up tuvali version to v0.4.4

* Inji 304 update tuvali and secure keystore version (#784)

* chore(INJI-304): bump up secure keystore version to v0.1.1

* chore(INJI-304): bump up tuvali version to v0.4.4

---------

Co-authored-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>

* fix(INJI-304): tuvali & secure-keystore version update in package-lock

Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* fix(INJI-282) Cross button of pop-up will navigate to home (#786)

* fix(INJI-282) Cross button of pop-up will navigate to home

* Icon made as pressble part

* fix(INJI-253): set thumbprint for custom secure keystore for qr login (#787)

---------

Co-authored-by: anil_majji <majjianilkumar050@gmail.com>
Co-authored-by: Monobikash Das <43202165+MonobikashDas@users.noreply.github.com>
Co-authored-by: Vijay <vijay@Vijays-MacBook-Pro.local>
Co-authored-by: Alka Prasad <Alka1703@users.noreply.github.com>
Co-authored-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
Co-authored-by: vijay151096 <94220135+vijay151096@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: Tilak Puli <tilakpuli15@gmail.com>
Co-authored-by: adityankannan-tw <adityan.kannan@thoughtworks.com>
Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: PoojaBabusing <115976560+PoojaBabusing@users.noreply.github.com>
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
Co-authored-by: Alka <prasadalka1998@gmail.com>
Co-authored-by: Dhivya <dhivya.v@thoughtworks.com>
Co-authored-by: srikanth716 <97477121+srikanth716@users.noreply.github.com>
Co-authored-by: Anil kumar M <106086523+Anil-kumar-Majji@users.noreply.github.com>
Co-authored-by: Swati Goel <meet2swati@gmail.com>
Co-authored-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>
2023-08-31 15:01:49 +05:30
Tilak Puli
515cf115af feat(inji-293): fix jetify running location 2023-08-28 12:50:27 +05:30
Tilak Puli
3ea34f2c92 feat(inji-293): use jetify to fix react-native/location bundle issue 2023-08-28 12:14:03 +05:30
adityankannan-tw
587b78a246 version code for beta build in pipeline 2023-07-25 14:25:00 +05:30
vijay151096
8bbd6b8d33 Merge pull request #84 from tw-mosip/beta-release
feat(#INJI-173) [Adityan] Added a beta release workflow when tagged
2023-07-18 10:48:32 +05:30
adityankannan-tw
3cbeb0660f feat(#INJI-173) [Adityan] Added a beta release workflow when tagged 2023-07-17 16:45:29 +05:30
anil_majji
b97ccd9c1b Adjusted splash-screen & updated locals 2023-07-11 13:17:11 +05:30
Monobikash Das
66b36a5e4f Merge pull request #750 from Anil-kumar-Majji/ui-revamp-release
INJI new UI/UX release
2023-07-03 11:15:10 +05:30
anil_majji
8413c7ad82 Removed debug.keystore file 2023-07-03 10:13:24 +05:30
adityankannan-tw
0879cdb754 INJI-31 - [Android] Added a workflow to publish to play store (#747)
* feat(#INJI-31) [Android] Added a workflow to publish to play store and update readme

* Enable proguard and shrink resources

* added spa.json

Signed-off-by: Keshav Mishra <chandrakeshavmishra@gmail.com>

* Refactor the code and update readme

* Remove spanish locale file to avoid conflict

* Update Fastfile with ENV variables

---------

Signed-off-by: Keshav Mishra <chandrakeshavmishra@gmail.com>
Signed-off-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: Keshav Mishra <chandrakeshavmishra@gmail.com>
2023-06-28 11:54:44 +05:30
anil_majji
acc3a91807 Inji new UI/UX for release 2023-06-27 20:20:17 +05:30
anil_majji
6cb8687391 Merge branch 'develop' of https://github.com/mosip/inji into ui-revamp 2023-06-27 10:30:02 +05:30