* [INJIMOB-3647] refactor: modify data type of isRevoked to EvaluationStatus
Type representing any possible value of EvaluationStatus.
- "TRUE" → Condition was evaluated and is positively true
- "FALSE" → Condition was evaluated and is definitively false
- "UNDETERMINED" → Condition could not be evaluated due to an error
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3647] refactor: modify data type of isRevoked to EvaluationStatus
Type representing any possible value of EvaluationStatus.
- "TRUE" → Condition was evaluated and is positively true
- "FALSE" → Condition was evaluated and is definitively false
- "UNDETERMINED" → Condition could not be evaluated due to an error
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3647] refactor: change statuslistVC type to record from string
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
# Conflicts:
# shared/vcjs/verifyCredential.ts
* [INJIMOB-3647] refactor: update status revoke check to check for null status
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3647] refactor: VCMetadat constructor isRevoked param
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3647] refactor: rename EvaluationStatus to RevocationStatus
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3647] refactor: modify revocation status logs
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3440] fix: qr login not showing binded VCs
Post success of wallet binding, VCItem machine was sending an event to update the VC data stored in VCMetada machine context, which was causing the issue of not able to recognize binded VCs.
Other changes:
- refactor: rm unused variable
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3440] refactor: rename variable aligning intent
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3390] update OpenID4VP.ts to accomodate new library changes
Changes include
- moving walletMetadat to oVP class instantiation rather than authenticateVerifier
- use walletMetadata with enums rather than strings
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3388]: update ovp bridge layer with the library contract change
Signed-off-by: Alka <prasadalka1998@gmail.com>
* [INJIMOB-3390] refactor: OVP instance with configured walletMetadata
To maintain singleton pattern and accommodate async pattern to get walletMetadata from config, getInstance in OpenID4VP.ts is modified to private method which will be called by any flow's method like authenticateVerifier, etc
Other changes:
- rename walletMetadata to fallbackWalletMetadata.ts
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3390] fix: send walletMetadata vpFormats with mdoc for ios
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3390] refactor: use fromValue from lib exposed enums
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3390] chore: upgrade inji-openid4vp-ios-swift to latest develop
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3390] fix: openid4vp lib update in pbxproj
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
Signed-off-by: Alka <prasadalka1998@gmail.com>
Co-authored-by: Alka <prasadalka1998@gmail.com>
* [INJIMOB-3376]-fix for claims not visible in Error Screen
Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>
* [INJIMOB-3376]-Fix claims not visible in error screen
Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>
* [INJIMOB-3376]:Optimized logic for claims not visible in error screen
Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>
---------
Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>
[INJIMOB-3058]temp commit2
[INJIMOB-3058]temp commit2
[INJIMOB-3058] add support for pre-auth flow by credential-offer
[INJIMOB-3187] animo working chcekpoint
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
* [INJIMOB-3129] fix display of long client names in OVP consent screen
To avoid, long client names making the consent screen occupy the entire screen, the client names are formatted for display. The logic of formatting involves trimming the value to 15 characters and appending ... with it
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3129] fix enabling of share with selfie button in OVP flow
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3129] optimize import and avoid usage of var
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-3129] rename formatText function
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] update package.json and resolve dependencies for react 0.73.0
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
* [INJIMOB-2381] setup for 0.73.6
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
* [INJIMOB-2381] fix font & image not loading issue
changes include
- move common image assets to android & iOS folders
- update gradle version to 8.2
- add expo-font asset for Inter regular
- replace useFont with expo-font
- remove flipper (reason: 0.74 react native decoupled flipper)
- npm package updates
- close icon changed to close text in QRScanner.tsx
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
* [INJIMOB-2381] update android:mosip script as per updated react native version
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] fix android build failure issue
Changes include:
- rename android assets folder as per convention
- remove unused biometrics dependency
- use env from react-native-dotenv as per module registered in babel config
- revert conversion of close icon to image in QRScanner component
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] fix iOS build issue
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] rm unused local images linking in adnroid
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] fix splash screen not rendering issue in android
Issue: Local assets were not loaded via React Native Image component in android, to fix this @react-native/assets-registry has been added
Reference: https://github.com/expo/expo/issues/31240#issuecomment-2459049911
Other changes:
- remove usage of expo-image as we dont have any explicit usecase for expo-image and its unused
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] rm unused intro slider image assets
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] revert back using local font assets in android
Reason: Previously expo-font was used for fonts, to bring back the same compatiblity it is bought back
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] use GestureHandlerRootView in root level to handle gestures
ref - https://docs.swmansion.com/react-native-gesture-handler/docs/1.x/#js
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove custom assets and linking for images in iOS
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] use default parameters instead of defaultProps
Reason: React 18 has marked defaultProps as deprecated and it is removed in React 19 version. To avoid the issue of deprated usage, its modified.
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove unused terminal option in android build script
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove font assets in android
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] optimize import
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] fix failing test
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] set package.resolved version to 2
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] fix setting of camera view in face scanner
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] fix setting of camera view in face compare
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove flipper config file
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove unused debug logs
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] refactor use component instead of type
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] refactor use GestureHandlerRootView only on root level
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] refactor remove unused config linking of font assets
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] refactor remove unused image assets
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] fix camera persmission issue in QRScanner
use expo-camera to request and getstatus of camera permission instead of expo-barcode-scanner to avoid multiple re-renders of scan screen in flow of camera permission denial
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove package expo-barcode-scanner
expo-barcode-scanner is deprecated and its suggested to use expo-camera to handle the scanning flows. The existing bar-code-scanner implementations have been replaced with expo-camera.
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] use extracted enums instead of legacy expo-camera
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove patch for react-native-0.71.8
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] revert date-fs version to 2.28.0
date-fns is not supporting filipino langauge, so we are maintaining patch for that. The patch created is for version 2.28.0 and updating the version of date-fns is causing conflicts in patch application if updated as well. To avoid this issue, version is kept as 2.28.0
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] update readme
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] remove usage of legacy expo-camera in getting image type
Other changes
- remove resolutions block from package.json
- sync pbxproj
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2381] add active prop to expo-camera as per suggestions
expo-camera suggests "Only one Camera preview can be active at any given time. If you have multiple screens in your app, you should unmount Camera components whenever a screen is unfocused.". To handle this active prop is used which is set to false on unMount of the component whenever rendering Camera from expo-camera
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
Signed-off-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
* [INJIMOB-2180] send selectedVcs along with credential format
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2180] update OVP library version
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2180] fix syntax error in credentials map creation
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2810] modify OVP library communication method params input type
Changes include
- Modify selectedCredentials to hold a credential format of VCs
- Modify VPResponseMetadata creation and passing to OVP library to include credential format
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMON-2810] modify shareVP method signature as per library
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2810] handle conversion of json string - vpTokensForSigning in native module
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2810] modify iOS native module to adapt OVP library changes
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2810] modify inji-opeind4vp library version to 0.3.0
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2810] modify inji-opeind4vp to adapt rename of VPTokenForSigning to UnsignedVPToken
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2810] update OpenID4VP swift library version to develop
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] make identifier of Vc as random UUID
Previously, we were relying on the id feild of the Vc to construct the unique identifier for VC component and file name for storing VC, this identifier in now replaced with random generated UUID. This was made since id property of VC is optional field as per w3c data-model 1.1.
We are using UUID version 4 to ensure randomness and collision-resistance.
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] maintain consistency in setting VCMetadata ID
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJICERT-2471] use VC metadata id as VC key
This VC key will be used for storing file name, component key & other identifier for VCs
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] remove setting identifier field in credential wrapper
The identitifier in credentialWrapper having the value "$issuer:$protocol:$UUID" was used to construct VC metadata id, issuer and protocol field which is already available in context param. This is now replaced with constructing VC metadata with the required fields available in machine context.
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] use context VCMetadata instead of calling function for accessing in issuersMachine
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] optimize import
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>