Skip to content

Commit 12b48e5

Browse files
author
RN SDK Release User
committed
v10.0.0 release
1 parent 95ed115 commit 12b48e5

25 files changed

+347
-360
lines changed

CHANGELOG.md

Lines changed: 63 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,56 @@
11
# Change Log
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
56
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
67

8+
## [10.0.0] - 2023-07-12
9+
10+
### Changed:
11+
12+
- Public: Updated underlying Onfido native SDKs versions:
13+
- iOS 29.1.x (up from 29.0.x)
14+
- Android 19.0.x (up from 18.0.x)
15+
- Public: Added Proof of Address configuration
16+
17+
### Fixed:
18+
19+
- Fixed Motion fallback configuration for iOS
20+
21+
## [9.0.0] - 2023-06-26
22+
723
### Changed:
8-
- Public: Added support for Fallback as motionFallbackOptions - MOTION:
24+
25+
- Public: Changed how to setup fallbacks for Motion
926

1027
### Added:
1128

12-
- Public: Added support for Fallback Option OnfidoFaceCaptureOptions - MOTION:
1329
- Public: Added support for RecordingAudio Option as RecordAudio - MOTION:
1430
- Public: Allow Selfie/Video step configuration
1531

32+
## [8.3.0] - 2023-05-02
33+
34+
### Added:
35+
36+
- Public: Added support for Fallback Option OnfidoFaceCaptureOptions - MOTION:
37+
38+
### Fixed:
39+
40+
- Public: Fixed the Workflow result handling crash
41+
1642
## [8.2.0] - 2023-04-12
1743

1844
### Changed:
45+
1946
- Public: Updated underlying Onfido native SDKs versions:
2047
- iOS 28.3.x (up from 28.1.x)
2148
- Android 16.3.x (up from 16.1.x)
2249

2350
## [8.1.0] - 2023-03-06
2451

2552
### Changed:
53+
2654
- Public: Updated underlying Onfido native SDKs versions:
2755
- iOS 28.1.0 (up from 28.0.0)
2856
- Android 16.1.0 (up from 16.0.1)
@@ -32,20 +60,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3260
## [8.0.0] - 2023-02-28
3361

3462
### Changed:
63+
3564
- Public: Updated underlying Onfido native SDKs versions:
3665
- iOS 28.0.0 (up from 27.4.0)
3766
- Android 16.0.1 (up from 15.4.0)
3867

3968
## [7.4.0] - 2023-02-13
4069

4170
### Changed:
71+
4272
- Public: Updated underlying Onfido native SDKs versions:
4373
- iOS 27.4.0 (up from 27.3.0)
4474
- Android 15.4.0 (up from 15.3.0)
4575

4676
## [7.3.0] - 2023-01-12
4777

4878
### Changed:
79+
4980
- Public: Updated underlying Onfido native SDKs versions:
5081
- iOS 27.3.0 (up from 27.2.0)
5182
- Android 15.3.0 (up from 15.1.0)
@@ -58,13 +89,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5889
- Public: Added RTL languages support
5990

6091
### Changed:
92+
6193
- Public: Update underlying Onfido native SDK versions:
6294
- iOS 27.2.0 (up from 27.0.0)
6395
- Android 15.1.0 (up from 14.0.0)
6496

6597
### Fixed:
6698

67-
- Public: Remove NFC dependencies from the SDK. They should be added in your app when utilizing NFC.
99+
- Public: Remove NFC dependencies from the SDK. They should be added in your app when utilizing NFC.
68100

69101
## [7.1.0] - 2022-12-07
70102

@@ -76,6 +108,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
76108
## [7.0.1] - 2022-11-28
77109

78110
### Changed:
111+
79112
- Public: Update underlying Onfido native SDK versions:
80113
- iOS 27.0.0 (up from 26.1.1)
81114
- Android 14.0.0 (up from 13.0.0)
@@ -85,6 +118,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
85118
## [6.1.0] - 2022-11-07
86119

87120
### Changed:
121+
88122
- Public: Update underlying Onfido native SDK versions:
89123
- iOS 26.1.1 (up from 26.0.1)
90124
- Public: Start supporting Typescript
@@ -93,6 +127,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
93127
## [6.0.0] - 2022-09-13
94128

95129
### Changed:
130+
96131
- Public: Update underlying Onfido native SDK versions:
97132
- Android 13.0.0 (up from 12.2.0)
98133
- iOS 26.0.1 (up from 25.1.0)
@@ -102,6 +137,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
102137
## [5.4.0] - 2022-06-22
103138

104139
### Changed:
140+
105141
- Public:
106142
- Public: Update underlying Onfido native SDK versions:
107143
- Android 12.2.0 (up from 11.5.0)
@@ -110,26 +146,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
110146
## [5.3.0] - 2022-05-02
111147

112148
### Changed:
149+
113150
- Public: Update underlying Onfido native SDK versions:
114151
- Android 11.5.0 (up from 11.4.1)
115152
- iOS 24.6.0 (up from 24.5.0)
116153

117154
## [5.2.0] - 2022-04-18
118155

119156
### Changed:
157+
120158
- Public: Updated underlying Onfido native SDKs versions:
121159
- Android 11.4.1 (up from 11.3.0)
122160
- iOS 24.5.0 (up from 24.3.0)
123161

124162
## [5.1.0] - 2022-03-18
125163

126164
### Changed:
165+
127166
- Public: Upgraded to React v17.0.1 and React Native v0.64.3
128167
- Public: Updating Country Code list to match iOS SDK
129168

130169
## [5.0.0] - 2022-02-18
131170

132171
### Changed:
172+
133173
- Public: Updated underlying Onfido iOS SDK to version 24.3.0 (up from 23.1.0).
134174
For more information visit the [Onfido iOS SDK releases on Github](https://github.com/onfido/onfido-ios-sdk/releases)
135175
NOTE: This version of SDK will only support building your app with Xcode 13 due to lack of backward compatibility introduced by Apple with Xcode 13.
@@ -146,60 +186,67 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
146186
## [4.0.0] - 2022-01-13
147187

148188
### Changed:
189+
149190
- Public: Upgraded the Gradle version of the Onfido's React Native SDK to v7.0.2
150191
- Public: Upgraded the Android Gradle Plugin to v7.0.4
151192

152-
153193
## [3.0.0] - 2021-12-22
154194

155195
### Changed:
196+
156197
- Public: Updated underlying Onfido iOS SDK to version 23.1.0 (up from 22.3.0). For more information visit the [Onfido iOS SDK releases on Github](https://github.com/onfido/onfido-ios-sdk/releases) NOTE: This version of SDK will only support building your app with Xcode 13 due to lack of backward compatibility introduced by Apple with Xcode 13.
157198
- Public: Updated underlying Onfido Android SDK to version 10.3.2 (up from 10.1.0). For more information visit the [Onfido Android SDK releases on Github](https://github.com/onfido/onfido-android-sdk/releases)
158199

159-
160200
## [2.2.1] - 2022-01-25
161201

162202
### Changed:
163203

164204
- Public: Removed the final screen from being always shown at the end of the flow steps on Android
165205

166-
167206
## [2.2.0] - 2021-09-15
168207

169208
### Changed:
209+
170210
- Public: Updated underlying Onfido iOS SDK to version 22.3.0 (up from 21.4.0). For more information visit the [Onfido iOS SDK releases on Github](https://github.com/onfido/onfido-ios-sdk/releases)
171211
- Public: Updated underlying Onfido Android SDK to version 10.1.0 (up from 9.3.1). For more information visit the [Onfido Android SDK releases on Github](https://github.com/onfido/onfido-android-sdk/releases)
172212

173213
### Fixed:
214+
174215
- Public: Fixed script that added Onfido bintray link to users' `android/app/build.gradle` to now add `mavenCentral()` instead, if not already present.
175216
- Public: Fixed sample Localizable file to match newest iOS string keys.
176217

177-
## [2.1.1] - 2021-07-27
218+
## [2.1.1] - 2021-07-27
178219

179220
### Changed:
221+
180222
- Public: Updated React peer dependency to include up to versions 17.0.x
181223

182224
## [2.1.0] - 2021-07-19
183225

184226
### Changed:
227+
185228
- Public: Updated error messages to propagate more info from underlying native SDKs.
186229

187230
## [2.0.0] - 2021-06-11
188231

189232
### Added:
233+
190234
- Public: Added support for enabling the user consent screen for iOS and Android.
191235

192236
### Changed:
237+
193238
- Public: Updated underlying Onfido iOS SDK to version 21.4.0 (up from 20.1.0). For more information visit the [Onfido iOS SDK releases on Github](https://github.com/onfido/onfido-ios-sdk/releases)
194239
- Public: Updated underlying Onfido Android SDK to version 9.3.1 (up from 9.0.0). For more information visit the [Onfido Android SDK releases on Github](https://github.com/onfido/onfido-android-sdk/releases)
195240

196241
## [1.3.4] - 2021-05-18
197242

198243
### Added:
244+
199245
- Public: Updated README with troubleshooting information and okhttp3 resolution guide.
200246
- Public: Updated error responses to be more descriptive.
201247

202248
### Fixed:
249+
203250
- Public: Apply okhttp3 fix to SampleApp.
204251
- Public: Add fix for XCode 12.5 to SampleApp Podfile.
205252
- Public: Fix an iOS bug where the Onfido flow isn't presented to user if the rootViewController is not at the top of the view hierarchy.
@@ -208,42 +255,51 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
208255
## [1.3.3] - 2021-02-26
209256

210257
### Added:
258+
211259
- Public: Added support for hide logo and cobranding enterprise features
212260

213261
## [1.3.2] - 2020-09-29
214262

215263
### Fixed:
264+
216265
- UI: Fixed iOS crash problem on Xcode12 simulator
217266

218267
## [1.3.1] - 2020-09-02
219268

220269
### Fixed:
270+
221271
- UI: Fixed iOS custom appearance problem on real device
222272

223273
## [1.3.0] - 2020-08-04
224274

225275
### Changed:
276+
226277
- Public: Upgraded android SDK version to 7.2.0
227278

228279
## [1.2.2] - 2020-07-16
229280

230281
### Fixed:
282+
231283
- Public: Added fix in Github Repository filter
232284

233285
## [1.2.0] - 2020-07-07
234286

235287
### Added:
288+
236289
- Public: Added custom localisation support for ios
237290

238291
### Changed:
292+
239293
- Public: Upgraded iOS SDK version
240294

241295
## [1.0.1] - 2020-04-16
242296

243297
### Fixed:
298+
244299
- Public: Added fix for bug where npm install in SampleApp is deleting files in SampleApp directory.
245300

246301
## [1.0.0] - 2020-04-15
247302

248303
### Added:
304+
249305
- Public: MVP release of React Native SDK.

README.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- [Kotlin](#kotlin)
1919
- [4.4 Update your iOS configuration files](#44-update-your-ios-configuration-files)
2020
- [Enabling NFC extraction](#enabling-nfc-extraction)
21-
- [Pre-requisites](#pre-requisites)
2221
- [Usage](#usage)
2322
- [User data](#user-data)
2423
- [1. Creating the SDK configuration](#1-creating-the-sdk-configuration)
@@ -33,7 +32,6 @@
3332
- [2. Creating a check](#2-creating-a-check)
3433
- [Theme Customization](#theme-customization)
3534
- [Android](#android-1)
36-
- [Customizing Dimensions](#customizing-dimensions)
3735
- [iOS](#ios-1)
3836
- [Going live](#going-live)
3937
- [More Information](#more-information)
@@ -166,6 +164,12 @@ android {
166164

167165
</br>
168166

167+
##### Enabling NFC extraction
168+
169+
With version 10.0.0 of the Onfido React Native SDK, NFC is enabled by default and offered to customer when both the document and the device support NFC.
170+
171+
For more information on how to configure NFC and the list of supported documents, please refer to the [NFC for Document Report](https://developers.onfido.com/guide/document-report-nfc) guide.
172+
169173

170174
NFC dependencies are not included in the SDK to avoid increasing the SDK size when the NFC feature is disabled. To use the NFC feature, you need to include the following dependencies (with the specified versions) in your build script:
171175

@@ -200,7 +204,7 @@ You also need to add the following Proguard rules to your `proguard-rules.pro` f
200204
#### 4.3 Custom Android Application Class
201205
**Note**: You can skip this step if you don't have any custom application class.
202206

203-
⚠️ As of version 9.0.0, Onfido SDK runs in a separate process on Android. This means that when the Onfido SDK is started, a new application instance will be created. To prevent re-running any initialization code that you have in your custom Application class, you can use the following `isOnfidoProcess` function and return from the `onCreate` method as shown below:
207+
⚠️ After the release of version 9.0.0, Onfido RN SDK runs in a separate process. This means that when the Onfido SDK started, a new application instance will be created. To prevent reinitializing you have in the Android application class, you can use the `isOnfidoProcess` extension function and return from `onCreate` as shown below:
204208

205209
This will prevent initialization-related crashes such as: [`FirebaseApp is not initialized in this process`](https://github.com/firebase/firebase-android-sdk/issues/4693)
206210

@@ -266,15 +270,10 @@ cd ..
266270

267271
##### Enabling NFC extraction
268272

269-
Recent passports, national identity cards and residence permits contain a chip that can be accessed using Near Field Communication (NFC).
270-
The Onfido SDKs provide a set of screens and functionalities to extract this information, verify its authenticity and provide the results as part of a Document report.
271-
With version [8.4.0] of the Onfido React Native SDK, NFC is enabled by default and offered to customer when both the document and the device support NFC.
273+
With version 10.0.0 of the Onfido React Native SDK, NFC is enabled by default and offered to customer when both the document and the device support NFC.
272274

273275
For more information on how to configure NFC and the list of supported documents, please refer to the [NFC for Document Report](https://developers.onfido.com/guide/document-report-nfc) guide.
274276

275-
###### Pre-requisites
276-
277-
278277
This feature requires Near Field Communication Tag Reading capability in your app target. If you haven't added it before, please follow the steps in Apple's documentation.
279278

280279

@@ -285,7 +284,6 @@ You're required to have the following key in your application's Info.plist file:
285284
<string>Required to read ePassports</string>
286285
```
287286

288-
289287
You have to include the entries below in your app target's Info.plist file to be able to read NFC tags properly.
290288

291289
```xml
@@ -429,9 +427,8 @@ config = {
429427
},
430428
captureFace: {
431429
type: OnfidoCaptureType.VIDEO
432-
},
433-
},
434-
enableNFC: true
430+
}
431+
}
435432
}
436433
```
437434

@@ -441,14 +438,14 @@ config = {
441438
* **`flowSteps`**: Required. This object is used to toggle individual screens on and off and set configurations inside the screens.
442439
* **`welcome`**: Optional. This toggles the welcome screen on or off. If omitted, this screen does not appear in the flow.
443440
* Valid values: `true`, `false`
441+
* **`proofOfAddress`**: Optional. This toggles the proof of address screen on or off. If omitted, this screen does not appear in the flow.
442+
* Valid values: `true`, `false`
444443
* **`captureDocument`**: Optional. This object contains configuration for the capture document screen. If docType and countryCode are not specified, a screen will appear allowing the user to choose these values. If omitted, this screen does not appear in the flow.
445444
* **`docType`**: Required if countryCode is specified.
446445
* Valid values in `OnfidoDocumentType`: `PASSPORT`, `DRIVING_LICENCE`, `NATIONAL_IDENTITY_CARD`, `RESIDENCE_PERMIT`, `RESIDENCE_PERMIT`, `VISA`, `WORK_PERMIT`, `GENERIC`.
447446
**Note**: `GENERIC` document type doesn't offer an optimised capture experience for a desired document type.
448447
* **`countryCode`**: Required if docType is specified.
449448
* Valid values in `OnfidoCountryCode`: Any ISO 3166-1 alpha-3 code. For example: `OnfidoCountryCode.USA`.
450-
* **`enableNFC`**: Optional. This toggles the ePassport NFC extraction feature. If omitted, this feature is not enabled in the flow. There is also application configuration changes needed to use this feature. To do that please follow [Onfido Developer Hub](#https://developers.onfido.com/guide/document-report-nfc#enable-nfc-in-the-onfido-sdks)
451-
* Valid values: `true`, `false`.
452449
* **`captureFace`**: Optional. This object object containing options for capture face screen. If omitted, this screen does not appear in the flow.
453450
* **`type`**: Required if captureFace is specified.
454451
* Valid values in `OnfidoCaptureType`: `PHOTO`, `VIDEO`, `MOTION`.
@@ -691,8 +688,6 @@ You can customize the SDK by adding a `colors.json` file to your xcode project a
691688
"onfidoPrimaryColor": "#FF0000",
692689
"onfidoPrimaryButtonTextColor": "#FFFFFF",
693690
"onfidoPrimaryButtonColorPressed": "#FFA500",
694-
"onfidoAndroidStatusBarColor": "#A52A2A",
695-
"onfidoAndroidToolBarColor": "#800080",
696691
"onfidoIosSupportDarkMode": true,
697692
"secondaryTitleColor": "#FF0000",
698693
"secondaryBackgroundPressedColor": "#FF0000",

SampleApp/backend-server-example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const createSdkToken = async (applicant, applicationId) => {
9292
applicant_id: sdkRequestBody.applicant_id,
9393
};
9494
const workflowRunIdResponse = await fetch(
95-
'https://api.onfido.com/v4/workflow_runs',
95+
'https://api.onfido.com/v3.5/workflow_runs',
9696
{
9797
method: 'POST',
9898
headers: {

0 commit comments

Comments
 (0)