From 278c1feb03e137cd61817f249b809619a03c88a5 Mon Sep 17 00:00:00 2001 From: Nathalie Kuoch Date: Fri, 3 Feb 2023 15:16:07 +0100 Subject: [PATCH 1/3] update Onfido sdk + fix allowed documents --- ios/Podfile.lock | 10 ++++----- package-lock.json | 30 +++++++++++++------------- package.json | 6 +++--- src/components/Onfido/BaseOnfidoWeb.js | 12 ++++------- 4 files changed, 27 insertions(+), 31 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index ed9cdc3f6850..7c7bb93b0e04 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -221,9 +221,9 @@ PODS: - nanopb/encode (= 2.30908.0) - nanopb/decode (2.30908.0) - nanopb/encode (2.30908.0) - - Onfido (27.0.0) - - onfido-react-native-sdk (7.0.1): - - Onfido (= 27.0.0) + - Onfido (27.4.0) + - onfido-react-native-sdk (7.4.0): + - Onfido (= 27.4.0) - React - OpenSSL-Universal (1.1.1100) - Permission-Camera (3.6.1): @@ -977,8 +977,8 @@ SPEC CHECKSUMS: lottie-ios: 8f97d3271e155c2d688875c29cd3c74908aef5f8 lottie-react-native: b702fab740cdb952a8e2354713d3beda63ff97b0 nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96 - Onfido: bdbc3ed45598aa106ab2ea021d94e2e28c6b5be3 - onfido-react-native-sdk: 5856e76fbfc0eb7b70b0f76fa1059830932a5c88 + Onfido: e36f284b865adcf99d9c905590a64ac09d4a576b + onfido-react-native-sdk: 4ecde1a97435dcff9f00a878e3f8d1eb14fabbdc OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c Permission-Camera: bf6791b17c7f614b6826019fcfdcc286d3a107f6 Permission-LocationAccuracy: 76df17de5c6b8bc2eee34e61ee92cdd7a864c73d diff --git a/package-lock.json b/package-lock.json index 51ab73ab38b2..184004ea602e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,8 @@ "@formatjs/intl-numberformat": "^6.2.5", "@formatjs/intl-pluralrules": "^4.0.13", "@gorhom/portal": "^1.0.14", - "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", - "@onfido/react-native-sdk": "7.0.1", + "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", + "@onfido/react-native-sdk": "7.4.0", "@react-native-async-storage/async-storage": "^1.17.10", "@react-native-community/cameraroll": "git+https://github.com/react-native-cameraroll/react-native-cameraroll.git#3f0aed96db68e134f199171c7b06c1b4d6cb382b", "@react-native-community/clipboard": "^1.5.1", @@ -48,7 +48,7 @@ "metro-config": "^0.71.3", "moment": "^2.29.4", "moment-timezone": "^0.5.31", - "onfido-sdk-ui": "10.3.0", + "onfido-sdk-ui": "10.4.0", "process": "^0.11.10", "prop-types": "^15.7.2", "pusher-js": "^7.0.6", @@ -5088,9 +5088,9 @@ } }, "node_modules/@onfido/react-native-sdk": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@onfido/react-native-sdk/-/react-native-sdk-7.0.1.tgz", - "integrity": "sha512-nhjByw/YyTACvkDWX2QtCzYmqkrDtSBJxYYgJjPuKvPRVIJhrny3bIm0DzAi1hWyIM2ZsKW/MSQxerGhR9FQaw==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@onfido/react-native-sdk/-/react-native-sdk-7.4.0.tgz", + "integrity": "sha512-qeeaXLxVXz+J0lrqMwQGP52fXhCnTmEAC5K8jZe8YTqst2s1FZZGKkd1bxTloHG5hBBTa39SwWVUKmgPUm+Ssw==", "peerDependencies": { "react": ">=17.0.0", "react-native": ">=0.68.2 <1.0.x" @@ -35522,9 +35522,9 @@ } }, "node_modules/onfido-sdk-ui": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/onfido-sdk-ui/-/onfido-sdk-ui-10.3.0.tgz", - "integrity": "sha512-53Yr9s9fb3heMPserJiJY8+Yf5XvRSBVXhswylhlosrZivr5ygEeweteSmdb/ICm2qpqYA8MAVNgzRKnFaImIA==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/onfido-sdk-ui/-/onfido-sdk-ui-10.4.0.tgz", + "integrity": "sha512-N/GwvtRUxhV5fH9lkoz8FTb8XvwAllCdgQB/YxomJ3yaFgU8OK3XmPscQ3b0edhaRohXDKyBvsbO23lEcSSq8Q==", "dependencies": { "@onfido/active-video-capture": "^0.22.1", "@onfido/opencv": "^1.0.0", @@ -48611,9 +48611,9 @@ } }, "@onfido/react-native-sdk": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@onfido/react-native-sdk/-/react-native-sdk-7.0.1.tgz", - "integrity": "sha512-nhjByw/YyTACvkDWX2QtCzYmqkrDtSBJxYYgJjPuKvPRVIJhrny3bIm0DzAi1hWyIM2ZsKW/MSQxerGhR9FQaw==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@onfido/react-native-sdk/-/react-native-sdk-7.4.0.tgz", + "integrity": "sha512-qeeaXLxVXz+J0lrqMwQGP52fXhCnTmEAC5K8jZe8YTqst2s1FZZGKkd1bxTloHG5hBBTa39SwWVUKmgPUm+Ssw==", "requires": {} }, "@pmmmwh/react-refresh-webpack-plugin": { @@ -71879,9 +71879,9 @@ } }, "onfido-sdk-ui": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/onfido-sdk-ui/-/onfido-sdk-ui-10.3.0.tgz", - "integrity": "sha512-53Yr9s9fb3heMPserJiJY8+Yf5XvRSBVXhswylhlosrZivr5ygEeweteSmdb/ICm2qpqYA8MAVNgzRKnFaImIA==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/onfido-sdk-ui/-/onfido-sdk-ui-10.4.0.tgz", + "integrity": "sha512-N/GwvtRUxhV5fH9lkoz8FTb8XvwAllCdgQB/YxomJ3yaFgU8OK3XmPscQ3b0edhaRohXDKyBvsbO23lEcSSq8Q==", "requires": { "@onfido/active-video-capture": "^0.22.1", "@onfido/opencv": "^1.0.0", diff --git a/package.json b/package.json index 041d83d98e37..7bf970d62797 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ "@formatjs/intl-numberformat": "^6.2.5", "@formatjs/intl-pluralrules": "^4.0.13", "@gorhom/portal": "^1.0.14", - "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", - "@onfido/react-native-sdk": "7.0.1", + "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", + "@onfido/react-native-sdk": "7.4.0", "@react-native-async-storage/async-storage": "^1.17.10", "@react-native-community/cameraroll": "git+https://github.com/react-native-cameraroll/react-native-cameraroll.git#3f0aed96db68e134f199171c7b06c1b4d6cb382b", "@react-native-community/clipboard": "^1.5.1", @@ -79,7 +79,7 @@ "metro-config": "^0.71.3", "moment": "^2.29.4", "moment-timezone": "^0.5.31", - "onfido-sdk-ui": "10.3.0", + "onfido-sdk-ui": "10.4.0", "process": "^0.11.10", "prop-types": "^15.7.2", "pusher-js": "^7.0.6", diff --git a/src/components/Onfido/BaseOnfidoWeb.js b/src/components/Onfido/BaseOnfidoWeb.js index c3e58bc674b0..5901fa04a5cc 100644 --- a/src/components/Onfido/BaseOnfidoWeb.js +++ b/src/components/Onfido/BaseOnfidoWeb.js @@ -63,16 +63,12 @@ class Onfido extends React.Component { options: { useLiveDocumentCapture: true, forceCrossDevice: true, - showCountrySelection: false, + hideCountrySelection: true, + country: 'USA', + uploadFallback: false, documentTypes: { driving_licence: { - country: null, - }, - national_identity_card: { - country: null, - }, - residence_permit: { - country: null, + country: 'USA', }, passport: true, }, From 8cc4230b1ead02bea5bf640000ddd096c9fba319 Mon Sep 17 00:00:00 2001 From: Nathalie Kuoch Date: Mon, 27 Feb 2023 17:42:26 +0100 Subject: [PATCH 2/3] Fix androidManifest and Podfile --- android/app/src/main/AndroidManifest.xml | 4 +++- ios/Podfile.lock | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 71c3dc6c9af3..208076beeb71 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ @@ -15,7 +16,8 @@ android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:resizeableActivity="false" - android:theme="@style/AppTheme"> + android:theme="@style/AppTheme" + tools:replace="android:supportsRtl"> 3.4.0) - React-Core - nanopb (2.30908.0): @@ -975,7 +975,7 @@ SPEC CHECKSUMS: libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef lottie-ios: 8f97d3271e155c2d688875c29cd3c74908aef5f8 - lottie-react-native: b702fab740cdb952a8e2354713d3beda63ff97b0 + lottie-react-native: 3e722c63015fdb9c27638b0a77969fc412067c18 nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96 Onfido: e36f284b865adcf99d9c905590a64ac09d4a576b onfido-react-native-sdk: 4ecde1a97435dcff9f00a878e3f8d1eb14fabbdc From 148c83f8643be2f7c75cc6cf414eb6dca9bc11ee Mon Sep 17 00:00:00 2001 From: Nathalie Kuoch Date: Tue, 28 Feb 2023 11:56:20 +0100 Subject: [PATCH 3/3] Fix lottie-react-native version --- ios/Podfile.lock | 28 ++++++++++++++-------------- package-lock.json | 24 ++++++++++++------------ package.json | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 6346b6dbc3db..f494e566c73e 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -177,29 +177,29 @@ PODS: - GoogleUtilities/Network (~> 7.4) - "GoogleUtilities/NSData+zlib (~> 7.4)" - nanopb (~> 2.30908.0) - - GoogleDataTransport (9.2.0): + - GoogleDataTransport (9.2.1): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/AppDelegateSwizzler (7.10.0): + - GoogleUtilities/AppDelegateSwizzler (7.11.0): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - - GoogleUtilities/Environment (7.10.0): + - GoogleUtilities/Environment (7.11.0): - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/ISASwizzler (7.10.0) - - GoogleUtilities/Logger (7.10.0): + - GoogleUtilities/ISASwizzler (7.11.0) + - GoogleUtilities/Logger (7.11.0): - GoogleUtilities/Environment - - GoogleUtilities/MethodSwizzler (7.10.0): + - GoogleUtilities/MethodSwizzler (7.11.0): - GoogleUtilities/Logger - - GoogleUtilities/Network (7.10.0): + - GoogleUtilities/Network (7.11.0): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" - GoogleUtilities/Reachability - - "GoogleUtilities/NSData+zlib (7.10.0)" - - GoogleUtilities/Reachability (7.10.0): + - "GoogleUtilities/NSData+zlib (7.11.0)" + - GoogleUtilities/Reachability (7.11.0): - GoogleUtilities/Logger - - GoogleUtilities/UserDefaults (7.10.0): + - GoogleUtilities/UserDefaults (7.11.0): - GoogleUtilities/Logger - hermes-engine (0.70.4) - libevent (2.1.12) @@ -235,7 +235,7 @@ PODS: - Permission-LocationWhenInUse (3.6.1): - RNPermissions - Plaid (2.5.1) - - PromisesObjC (2.1.1) + - PromisesObjC (2.2.0) - RCT-Folly (2021.07.22.00): - boost - DoubleConversion @@ -969,8 +969,8 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b GoogleAppMeasurement: 5ba1164e3c844ba84272555e916d0a6d3d977e91 - GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f - GoogleUtilities: bad72cb363809015b1f7f19beb1f1cd23c589f95 + GoogleDataTransport: ea169759df570f4e37bdee1623ec32a7e64e67c4 + GoogleUtilities: c2bdc4cf2ce786c4d2e6b3bcfd599a25ca78f06f hermes-engine: 3623325e0d0676a45fbc544d72c57dd79fce7446 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef @@ -985,7 +985,7 @@ SPEC CHECKSUMS: Permission-LocationAlways: 8d99b025c9f73c696e0cdb367e42525f2e9a26f2 Permission-LocationWhenInUse: 3ba99e45c852763f730eabecec2870c2382b7bd4 Plaid: 6beadc0828cfd5396c5905931b9503493bbc139a - PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb + PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda RCTRequired: 329ead02b8edd20fb186d17745a9cadd5ce2922d RCTTypeSafety: 698418021f8b47d82c058f3115c0026d1874a3ef diff --git a/package-lock.json b/package-lock.json index 184004ea602e..0c6711d46827 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "jest-when": "^3.5.2", "localforage": "^1.10.0", "lodash": "4.17.21", - "lottie-react-native": "^5.1.4", + "lottie-react-native": "^5.1.5", "metro-config": "^0.71.3", "moment": "^2.29.4", "moment-timezone": "^0.5.31", @@ -5024,8 +5024,8 @@ }, "node_modules/@oguzhnatly/react-native-image-manipulator": { "version": "1.0.5", - "resolved": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", - "integrity": "sha512-C9Br1BQqm6io6lvYHptlLcOHbzlaqxp9tS35P8Qj3pdiiYRTzU3KPvZ61rQ+ZnZ4FOQ6MwPsKsmB8+6WHkAY6Q==", + "resolved": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", + "integrity": "sha512-PvrSoCq5PS1MA5ZWUpB0khfzH6sM8SI6YiVl4i2SItPr7IeRxiWfI4n45VhBCCElc1z5GhAwTZOBaIzXTX7/og==", "license": "MIT" }, "node_modules/@onfido/active-video-capture": { @@ -32733,9 +32733,9 @@ "peer": true }, "node_modules/lottie-react-native": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/lottie-react-native/-/lottie-react-native-5.1.4.tgz", - "integrity": "sha512-Lu6mSG92Wck+vXEX6gfj/9ciqqoz0tJQZqgX0SumGvX/oZu4MbKO/oLApyHdy2V9Rb7qvwF9whOtitADxTswPA==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/lottie-react-native/-/lottie-react-native-5.1.5.tgz", + "integrity": "sha512-xl6uEo50joQeIqso5SvPKt1uGBqMhgNgs+36S4725Nfigf4zAY23/I9QEEkJF+1BHq7wKCeYha2KafLTm20gqA==", "dependencies": { "invariant": "^2.2.2", "react-native-safe-modules": "^1.0.3" @@ -48556,9 +48556,9 @@ } }, "@oguzhnatly/react-native-image-manipulator": { - "version": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", - "integrity": "sha512-C9Br1BQqm6io6lvYHptlLcOHbzlaqxp9tS35P8Qj3pdiiYRTzU3KPvZ61rQ+ZnZ4FOQ6MwPsKsmB8+6WHkAY6Q==", - "from": "@oguzhnatly/react-native-image-manipulator@github:Expensify/react-native-image-manipulator#5cdae3d4455b03a04c57f50be3863e2fe6c92c52" + "version": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", + "integrity": "sha512-PvrSoCq5PS1MA5ZWUpB0khfzH6sM8SI6YiVl4i2SItPr7IeRxiWfI4n45VhBCCElc1z5GhAwTZOBaIzXTX7/og==", + "from": "@oguzhnatly/react-native-image-manipulator@github:Expensify/react-native-image-manipulator#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050" }, "@onfido/active-video-capture": { "version": "0.22.1", @@ -69657,9 +69657,9 @@ "peer": true }, "lottie-react-native": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/lottie-react-native/-/lottie-react-native-5.1.4.tgz", - "integrity": "sha512-Lu6mSG92Wck+vXEX6gfj/9ciqqoz0tJQZqgX0SumGvX/oZu4MbKO/oLApyHdy2V9Rb7qvwF9whOtitADxTswPA==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/lottie-react-native/-/lottie-react-native-5.1.5.tgz", + "integrity": "sha512-xl6uEo50joQeIqso5SvPKt1uGBqMhgNgs+36S4725Nfigf4zAY23/I9QEEkJF+1BHq7wKCeYha2KafLTm20gqA==", "requires": { "invariant": "^2.2.2", "react-native-safe-modules": "^1.0.3" diff --git a/package.json b/package.json index 7bf970d62797..46091ac64cbe 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "jest-when": "^3.5.2", "localforage": "^1.10.0", "lodash": "4.17.21", - "lottie-react-native": "^5.1.4", + "lottie-react-native": "^5.1.5", "metro-config": "^0.71.3", "moment": "^2.29.4", "moment-timezone": "^0.5.31",