From 6ee28602ae6295c321b77815cc21b2ac390adb9e Mon Sep 17 00:00:00 2001 From: al-rosenthal Date: Wed, 6 Nov 2024 16:44:28 -0800 Subject: [PATCH 1/3] feat: updated bifold packages and config settings Signed-off-by: al-rosenthal --- app/App.tsx | 73 +++++++++++++++++++++++--------------------- app/container-imp.ts | 6 ++++ app/package.json | 10 +++--- yarn.lock | 50 +++++++++++++++--------------- 4 files changed, 74 insertions(+), 65 deletions(-) diff --git a/app/App.tsx b/app/App.tsx index 86d1d5d0..3b46e885 100644 --- a/app/App.tsx +++ b/app/App.tsx @@ -16,6 +16,7 @@ import { ContainerProvider, MainContainer, InactivityWrapper, + OpenIDCredentialRecordProvider, } from '@hyperledger/aries-bifold-core' import { useNavigation } from '@react-navigation/native' import React, { useEffect, useState, useMemo } from 'react' @@ -65,41 +66,43 @@ const App = () => { - - - - - - - - - - + + + + + + + + + + + + diff --git a/app/container-imp.ts b/app/container-imp.ts index c2e5680d..933cf4b6 100644 --- a/app/container-imp.ts +++ b/app/container-imp.ts @@ -211,6 +211,7 @@ export class AppContainer implements Container { ], }, ], + enableChat: false, enableTours: true, supportedLanguages: ['en'], showPreface: true, @@ -219,6 +220,11 @@ export class AppContainer implements Container { showScanHelp: true, showScanButton: true, showDetailsInfo: true, + contactDetailsOptions: { + showConnectedTime: false, + enableEditContactName: false, + enableCredentialList: false, + }, contactHideList: ['BCAttestationService'], proofTemplateBaseUrl: Config.PROOF_TEMPLATE_URL, // Credential Definition IDs diff --git a/app/package.json b/app/package.json index 6195cf83..8e52a400 100644 --- a/app/package.json +++ b/app/package.json @@ -62,11 +62,11 @@ "@formatjs/intl-relativetimeformat": "9.3.1", "@hyperledger/anoncreds-react-native": "0.2.4", "@hyperledger/aries-askar-react-native": "0.2.3", - "@hyperledger/aries-bifold-core": "1.0.0-alpha.350", - "@hyperledger/aries-bifold-remote-logs": "1.0.0-alpha.350", - "@hyperledger/aries-bifold-verifier": "1.0.0-alpha.350", - "@hyperledger/aries-oca": "1.0.0-alpha.350", - "@hyperledger/aries-react-native-attestation": "1.0.0-alpha.350", + "@hyperledger/aries-bifold-core": "1.0.0-alpha.359", + "@hyperledger/aries-bifold-remote-logs": "1.0.0-alpha.359", + "@hyperledger/aries-bifold-verifier": "1.0.0-alpha.359", + "@hyperledger/aries-oca": "1.0.0-alpha.359", + "@hyperledger/aries-react-native-attestation": "1.0.0-alpha.359", "@hyperledger/indy-vdr-react-native": "0.2.2", "@hyperledger/indy-vdr-shared": "0.2.2", "@react-native-async-storage/async-storage": "1.15.11", diff --git a/yarn.lock b/yarn.lock index dc4a58db..4dd7a44a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3253,9 +3253,9 @@ __metadata: languageName: node linkType: hard -"@hyperledger/aries-bifold-core@npm:1.0.0-alpha.350": - version: 1.0.0-alpha.350 - resolution: "@hyperledger/aries-bifold-core@npm:1.0.0-alpha.350" +"@hyperledger/aries-bifold-core@npm:1.0.0-alpha.359": + version: 1.0.0-alpha.359 + resolution: "@hyperledger/aries-bifold-core@npm:1.0.0-alpha.359" peerDependencies: "@credo-ts/anoncreds": 0.5.11 "@credo-ts/askar": 0.5.11 @@ -3330,13 +3330,13 @@ __metadata: uuid: ^9.0.0 bin: bifold: bin/bifold - checksum: d6721f349a6938ed6ce5b6645309832f206dbba15846f78307eb94c53fd3cab3c2d1a3eff1caba7c1c1887d4f60377a9840910092281a12e575514f69e3930c0 + checksum: 816d0e214e9bbff297f187897606f39e1f0bff0de8c0c0a8d1ef71007cf4a3f7a07afba975098f46927549a2350da3f78842963c4daf80b87d55d47977325ffa languageName: node linkType: hard -"@hyperledger/aries-bifold-remote-logs@npm:1.0.0-alpha.350": - version: 1.0.0-alpha.350 - resolution: "@hyperledger/aries-bifold-remote-logs@npm:1.0.0-alpha.350" +"@hyperledger/aries-bifold-remote-logs@npm:1.0.0-alpha.359": + version: 1.0.0-alpha.359 + resolution: "@hyperledger/aries-bifold-remote-logs@npm:1.0.0-alpha.359" peerDependencies: "@credo-ts/core": 0.5.11 axios: ^1.4.0 @@ -3344,43 +3344,43 @@ __metadata: react: ^18.2.0 react-native: ^0.72.5 react-native-logs: ^5.1.0 - checksum: 740a49d9af3a33b20f298d2e917e14e7eeaa218eb3330468c65da52fa0211686a7cbc4868ac2cd386f012f954b2448a0753bae88b56017f23b44e66d4c0070d5 + checksum: 892c3e94ff61233d9c7e5e08e224b52edbe40774c9214af26f8cdd12be3c9584a9de328b24e7e2bd606a67f0e0f2ffa8c68ce18ad45312f7f85df70975f6c3cc languageName: node linkType: hard -"@hyperledger/aries-bifold-verifier@npm:1.0.0-alpha.350": - version: 1.0.0-alpha.350 - resolution: "@hyperledger/aries-bifold-verifier@npm:1.0.0-alpha.350" +"@hyperledger/aries-bifold-verifier@npm:1.0.0-alpha.359": + version: 1.0.0-alpha.359 + resolution: "@hyperledger/aries-bifold-verifier@npm:1.0.0-alpha.359" peerDependencies: "@credo-ts/anoncreds": 0.5.11 "@credo-ts/core": 0.5.11 "@credo-ts/react-hooks": ^0.6.0 "@hyperledger/anoncreds-shared": 0.2.4 react: ^18.2.0 - checksum: e39ca24360e1f0077326485b1b257ad8a6bb851fce27d428b5cd99e315ed19164ea4f4a4bb9aeb0479460746fe447225bf2bdab4cae7e8fb4665238c7186e88c + checksum: 4cfadc3840be6a65d847439541ee637d51eb54359d41e1e92720a2a47ff92c6a4f6009c4292c7573e7598260dfd92306d32bef6a6414e0b179b489d0c6a2f918 languageName: node linkType: hard -"@hyperledger/aries-oca@npm:1.0.0-alpha.350": - version: 1.0.0-alpha.350 - resolution: "@hyperledger/aries-oca@npm:1.0.0-alpha.350" +"@hyperledger/aries-oca@npm:1.0.0-alpha.359": + version: 1.0.0-alpha.359 + resolution: "@hyperledger/aries-oca@npm:1.0.0-alpha.359" dependencies: "@credo-ts/anoncreds": "npm:0.5.11" "@credo-ts/core": "npm:0.5.11" axios: "npm:^1.4.0" lodash.startcase: "npm:^4.4.0" react-native-fs: "npm:^2.16.6" - checksum: 07b21cf2f431269e32c0a1b2ccf3ad6e0547c557cdd19191b5bd40bf24becd374585b390dea0141ea769c43cdc0064c75265d58fba7ce05e5ef8951ad06d5b3e + checksum: cfde414837c5f642e78b067a4f22681a1250622adfde9963f13f81fda8ba90a92a90852eb1504a868a43ab1e93f147c550c0713478b177cba3de5429e7554602 languageName: node linkType: hard -"@hyperledger/aries-react-native-attestation@npm:1.0.0-alpha.350": - version: 1.0.0-alpha.350 - resolution: "@hyperledger/aries-react-native-attestation@npm:1.0.0-alpha.350" +"@hyperledger/aries-react-native-attestation@npm:1.0.0-alpha.359": + version: 1.0.0-alpha.359 + resolution: "@hyperledger/aries-react-native-attestation@npm:1.0.0-alpha.359" peerDependencies: react: "*" react-native: "*" - checksum: b13610cf4a7f7478383e10d7a9e67320872ca19c64ec96625122ba1f1a2e707fcd5ae083711598fcfabe772b5720221503ac705c742f051dafc47c95bf406ee0 + checksum: 04564855bf908539897256dff1aff420cd068b2665f42a8cbc69791999d1a34faac424ff6bae24b793c142591c31c881bdd609dc31a41e7072a77d9ab094a99b languageName: node linkType: hard @@ -8291,11 +8291,11 @@ __metadata: "@formatjs/intl-relativetimeformat": "npm:9.3.1" "@hyperledger/anoncreds-react-native": "npm:0.2.4" "@hyperledger/aries-askar-react-native": "npm:0.2.3" - "@hyperledger/aries-bifold-core": "npm:1.0.0-alpha.350" - "@hyperledger/aries-bifold-remote-logs": "npm:1.0.0-alpha.350" - "@hyperledger/aries-bifold-verifier": "npm:1.0.0-alpha.350" - "@hyperledger/aries-oca": "npm:1.0.0-alpha.350" - "@hyperledger/aries-react-native-attestation": "npm:1.0.0-alpha.350" + "@hyperledger/aries-bifold-core": "npm:1.0.0-alpha.359" + "@hyperledger/aries-bifold-remote-logs": "npm:1.0.0-alpha.359" + "@hyperledger/aries-bifold-verifier": "npm:1.0.0-alpha.359" + "@hyperledger/aries-oca": "npm:1.0.0-alpha.359" + "@hyperledger/aries-react-native-attestation": "npm:1.0.0-alpha.359" "@hyperledger/indy-vdr-react-native": "npm:0.2.2" "@hyperledger/indy-vdr-shared": "npm:0.2.2" "@react-native-async-storage/async-storage": "npm:1.15.11" From 588489536bc1ee31cd9590dceed88a3093a38cac Mon Sep 17 00:00:00 2001 From: al-rosenthal Date: Thu, 7 Nov 2024 11:04:30 -0800 Subject: [PATCH 2/3] chore: ran ios setup, updated container settings Signed-off-by: al-rosenthal --- app/container-imp.ts | 7 ++----- app/ios/Podfile.lock | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/container-imp.ts b/app/container-imp.ts index fe8ab939..5bd549fb 100644 --- a/app/container-imp.ts +++ b/app/container-imp.ts @@ -21,6 +21,7 @@ import { testIdWithKey, PersistentStorage, PersistentState, + defaultConfig, } from '@hyperledger/aries-bifold-core' import { RemoteLogger, RemoteLoggerOptions } from '@hyperledger/aries-bifold-remote-logs' import { getProofRequestTemplates } from '@hyperledger/aries-bifold-verifier' @@ -157,6 +158,7 @@ export class AppContainer implements Container { }, ]) this._container.registerInstance(TOKENS.CONFIG, { + ...defaultConfig, PINSecurity: { rules: PINRules, displayHelper: false }, settings: [ { @@ -221,11 +223,6 @@ export class AppContainer implements Container { showScanHelp: true, showScanButton: true, showDetailsInfo: true, - contactDetailsOptions: { - showConnectedTime: false, - enableEditContactName: false, - enableCredentialList: false, - }, contactHideList: ['BCAttestationService'], proofTemplateBaseUrl: Config.PROOF_TEMPLATE_URL, // Credential Definition IDs diff --git a/app/ios/Podfile.lock b/app/ios/Podfile.lock index 16a7a4da..34f0b9bd 100644 --- a/app/ios/Podfile.lock +++ b/app/ios/Podfile.lock @@ -445,7 +445,7 @@ PODS: - React-jsinspector (0.72.5) - React-logger (0.72.5): - glog - - "react-native-attestation (1.0.0-alpha.353+7257e199)": + - react-native-attestation (1.0.0): - RCT-Folly (= 2021.07.22.00) - React-Core - react-native-config (1.5.0): @@ -936,7 +936,7 @@ SPEC CHECKSUMS: React-jsiexecutor: ff70a72027dea5cc7d71cfcc6fad7f599f63987a React-jsinspector: aef73cbd43b70675f572214d10fa438c89bf11ba React-logger: 2e4aee3e11b3ec4fa6cfd8004610bbb3b8d6cca4 - react-native-attestation: 6e7fb59eb29b078162071fcc6c84752d2f88e1e4 + react-native-attestation: f2aa564acafe79a8c2a5fda3acbf76e7fcd5f93a react-native-config: 5330c8258265c1e5fdb8c009d2cabd6badd96727 react-native-date-picker: 06a4d96ab525a163c7a90bccd68833d136b0bb13 react-native-encrypted-storage: db300a3f2f0aba1e818417c1c0a6be549038deb7 From e703ae85af0f3903ded78cfd1fc76d75bcced761 Mon Sep 17 00:00:00 2001 From: al-rosenthal Date: Thu, 7 Nov 2024 11:45:53 -0800 Subject: [PATCH 3/3] chore: ran ios:setup again Signed-off-by: al-rosenthal --- app/ios/Podfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ios/Podfile.lock b/app/ios/Podfile.lock index 34f0b9bd..1712c005 100644 --- a/app/ios/Podfile.lock +++ b/app/ios/Podfile.lock @@ -445,7 +445,7 @@ PODS: - React-jsinspector (0.72.5) - React-logger (0.72.5): - glog - - react-native-attestation (1.0.0): + - "react-native-attestation (1.0.0-alpha.359+3cd3556b)": - RCT-Folly (= 2021.07.22.00) - React-Core - react-native-config (1.5.0): @@ -936,7 +936,7 @@ SPEC CHECKSUMS: React-jsiexecutor: ff70a72027dea5cc7d71cfcc6fad7f599f63987a React-jsinspector: aef73cbd43b70675f572214d10fa438c89bf11ba React-logger: 2e4aee3e11b3ec4fa6cfd8004610bbb3b8d6cca4 - react-native-attestation: f2aa564acafe79a8c2a5fda3acbf76e7fcd5f93a + react-native-attestation: e5d716b1b7d8ef61262539558589c99f2efff4bc react-native-config: 5330c8258265c1e5fdb8c009d2cabd6badd96727 react-native-date-picker: 06a4d96ab525a163c7a90bccd68833d136b0bb13 react-native-encrypted-storage: db300a3f2f0aba1e818417c1c0a6be549038deb7