SELF-1060: Move passport-reader (#1349)

* rm passport-reader

* update CI scripts

* yarn nice

* update android workflow files

* ignore leaks

* fix write access error

* ignore passport read build.gradle file

* update message condition

* fix read access

* revert earlier changes. the failures were do to token permissions

* fix wasm test

* update jest

* fix tests

* simplify tests to avoid oom issues

* fix tests

* fix notification test

* fix nfcScanner tests

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
This commit is contained in:
Seshanth.S
2025-11-12 05:44:32 +05:30
committed by GitHub
parent c7fdf9f791
commit c4dbb902a3
30 changed files with 924 additions and 2008 deletions

View File

@@ -196,7 +196,7 @@ const AccountRecoveryChoiceScreen: React.FC = () => {
<Description>
By continuing, you certify that this passport belongs to you and is
not stolen or forged.{' '}
{biometricsAvailable && (
{!biometricsAvailable && (
<>
Your device doesn't support biometrics or is disabled for apps
and is required for cloud storage.

View File

@@ -267,7 +267,8 @@ const handleResponseAndroid = (response: AndroidScanResponse): PassportData => {
const dgHashesObj = JSON.parse(dataGroupHashes);
const dg1HashString = dgHashesObj['1'];
const dg1Hash = Array.from(Buffer.from(dg1HashString, 'hex'));
const dg2Hash = dgHashesObj['2'];
const dg2HashString = dgHashesObj['2'];
const dg2Hash = Array.from(Buffer.from(dg2HashString, 'hex'));
const pem =
'-----BEGIN CERTIFICATE-----' +
documentSigningCertificate +