Skip to content

Commit 50136ce

Browse files
Release 0.3.0
1 parent a3675a3 commit 50136ce

23 files changed

Lines changed: 1213 additions & 903 deletions

README.md

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The iProov Biometrics React Native SDK wraps iProov's native iOS (Swift) and And
2323
### Requirements
2424

2525
- React Native 0.60 and above
26-
- iOS 11 and above
26+
- iOS 12 and above
2727
- Android API Level 21 (Android 5 Lollipop) and above
2828

2929
## Repository contents
@@ -42,7 +42,7 @@ You can obtain API credentials by registering on the [iProov Partner Portal](htt
4242

4343
```json
4444
"dependencies": {
45-
"iproov-react-native": "git+ssh://git@github.com:iProov/react-native.git#0.2.0"
45+
"iproov-react-native": "git+ssh://git@github.com:iProov/react-native.git#0.3.0"
4646
}
4747
```
4848

@@ -71,7 +71,7 @@ You can obtain API credentials by registering on the [iProov Partner Portal](htt
7171
```ruby
7272
pre_install do |installer|
7373
installer.pod_targets.each do |pod|
74-
if !['iProov', 'Starscream'].include?(pod.name)
74+
if !['iProov'].include?(pod.name)
7575
def pod.static_framework?;
7676
true
7777
end
@@ -82,21 +82,6 @@ You can obtain API credentials by registering on the [iProov Partner Portal](htt
8282
end
8383
end
8484
```
85-
86-
3. **Enable module stability** - iProov and its dependencies require `BUILD_LIBRARY_FOR_DISTRIBUTION` to be enabled. Add the following `post_install` step (or add it to your existing `post_install` step if you have one already):
87-
88-
```ruby
89-
post_install do |installer|
90-
installer.pods_project.targets.each do |target|
91-
if ['iProov', 'Starscream'].include? target.name
92-
target.build_configurations.each do |config|
93-
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
94-
end
95-
end
96-
end
97-
end
98-
```
99-
10085
2. In your React Native app `ios` directory, run:
10186

10287
```sh
@@ -153,13 +138,13 @@ IProov.launch('wss://eu.rp.secure.iproov.me/ws', "< YOUR TOKEN >", options, (eve
153138
let message = event.params.message
154139
break
155140

156-
case IProov.EVENT_CANCELLED:
157-
// Either the user cancelled iProov by pressing the Close button at the top or
158-
// the Home button (canceller == USER)
159-
// Or the app cancelled using Session.cancel() (canceller = APP).
141+
case IProov.EVENT_CANCELED:
142+
// Either the user canceled iProov by pressing the Close button at the top or
143+
// the Home button (canceler == USER)
144+
// Or the app canceled using Session.cancel() (canceler = APP).
160145
// You should use this to determine the next step in your flow.
161146

162-
let canceller = event.params.canceller
147+
let canceler = event.params.canceler
163148
break
164149

165150
case IProov.EVENT_FAILURE:
@@ -216,7 +201,7 @@ A summary of the support for the various SDK options in React Native is provided
216201
| `titleTextColor` | `String` (#rgba) |||
217202
| `surroundColor` | `String` (#rgba) |||
218203
| `font` | `String` |||
219-
| `fontPath` (1) | Unsupported |||
204+
| `fontPath` (*) | Unsupported |||
220205
| `logoImage` | `String` (Base64-encoded image) |||
221206
| `closeButtonImage` | `String` (Base64-encoded image) |||
222207
| `closeButtonTintColor` | `String` (#rgba) |||
@@ -225,20 +210,16 @@ A summary of the support for the various SDK options in React Native is provided
225210
| `enableScreenshots` | `Boolean` | ||
226211
| `orientation` | `Options.(PORTRAIT\|LANDSCAPE\|REVERSE_PORTRAIT\|REVERSE_LANDSCAPE)`| ||
227212
| `camera` | `Options.(FRONT\|EXTERNAL)` | ||
228-
| `faceDetector` | `Options.(AUTO\|CLASSIC\|ML_KIT\|BLAZEFACE)` | ||
213+
| `headerBackgroundColor` | `String` (#rgba) |||
214+
| `disableExteriorEffects` | `Boolean` |||
229215
| **`Options.genuinePresenceAssurance.`** | | | |
230216
|`notReadyOvalStrokeColor ` | `String` (#rgba) |||
231217
|`readyOvalStrokeColor ` | `String` (#rgba) |||
232-
|`maxPitch` (2) | `Number` |||
233-
|`maxYaw` (2) | `Number` |||
234-
|`maxRoll` (2) | `Number` |||
235218
| **`Options.livenessAssurance.`** | | | |
236219
|`ovalStrokeColor` | `String` (#rgba) |||
237220
|`completedOvalStrokeColor` | `String` (#rgba) |||
238221

239-
(1) Custom fonts are not currently supported and will be added in a future version of the React Native SDK.
240-
241-
(2) These options are deprecated and will be removed in a future release.
222+
(*) Custom fonts are not currently supported and will be added in a future version of the React Native SDK.
242223

243224
### Filter Options
244225

@@ -291,10 +272,15 @@ IProov listener error events will contain an `error` string within the events `p
291272
| `camera_permission_error` ||| The user disallowed access to the camera when prompted. You should direct the user to re-enable camera access. |
292273
| `server_error` ||| A server-side error/token invalidation occurred. The associated `message` will contain further information about the error. |
293274
| `unexpected_error` ||| An unexpected and unrecoverable error has occurred. These errors should be reported to iProov for further investigation. |
275+
| `unsupported_device_error` ||| Device is not supported.|
294276
| `multi_window_unsupported_error` | || The user attempted to iProov in split-screen/multi-screen mode, which is not supported. |
295277
| `camera_error` | || An error occurred acquiring or using the camera. This could happen when a non-phone is used with/without an external/USB camera. |
296278
| `face_detector_error` | || An error occurred with the face detector. |
297279
| `invalid_options_error` | || An error occurred when trying to apply your options. |
280+
| `user_timeout_error` || | The user has taken too long to complete the claim.|
281+
282+
283+
298284

299285
## Localization
300286

android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:7.0.3'
8+
classpath 'com.android.tools.build:gradle:7.4.1'
99
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1010
}
1111
}
@@ -14,12 +14,12 @@ apply plugin: 'com.android.library'
1414
apply plugin: 'kotlin-android'
1515

1616
android {
17-
compileSdkVersion 31
18-
buildToolsVersion "31.0.0"
17+
compileSdkVersion 33
18+
buildToolsVersion "33.0.0"
1919

2020
defaultConfig {
2121
minSdkVersion 21
22-
targetSdkVersion 31
22+
targetSdkVersion 33
2323
versionCode 1
2424
versionName "1.0"
2525
}
@@ -36,7 +36,7 @@ repositories {
3636
}
3737

3838
dependencies {
39-
implementation 'com.iproov.sdk:iproov:8.3.1'
39+
implementation 'com.iproov.sdk:iproov:9.0.1'
4040
implementation 'com.facebook.react:react-native:+'
4141
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
4242
}
58.4 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

android/gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)