Skip to content

Commit 450fbfc

Browse files
Release 3.2.0
1 parent 9650fb1 commit 450fbfc

File tree

15 files changed

+191
-37
lines changed

15 files changed

+191
-37
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# iProov Biometrics Flutter SDK
22

3+
## 3.2.0
4+
5+
iProov Biometrics Flutter SDK v3.2.0 includes the following changes
6+
7+
### Flutter
8+
9+
- Declared support for Dart 3.
10+
- Dependency on [image](https://pub.dev/packages/image) package upgraded to 4.0.0
11+
- Added `copyWith()` implementation to `Options`.
12+
- `Options` classes are now marked `@immutable`.
13+
14+
### iOS
15+
16+
* Upgraded SDK to [v10.3.0](https://github.com/iProov/ios/releases/tag/10.3.0).
17+
18+
### Android
19+
20+
* Upgraded SDK to [v8.5.0](https://github.com/iProov/android/releases/tag/v8.5.0).
21+
22+
### API Client
23+
24+
- All methods now have named parameters.
25+
- `enrolPhotoAndGetVerifyToken()` now supports passing assurance type.
26+
327
## 3.1.1
428

529
iProov Biometrics Flutter SDK v3.1.1 includes an additional certificate added to the default certificate pinning, to support beyond Dec 2023.
@@ -31,6 +55,25 @@ Please consult the [Upgrade Guide](https://github.com/iProov/flutter/wiki/Upgrad
3155
* Upgraded SDK to [v8.3.0](https://github.com/iProov/android/releases/tag/v8.3.0).
3256

3357

58+
## 3.1.0
59+
60+
iProov SDK Biometrics Flutter SDK v3.1.0 includes bug fixes
61+
62+
Please consult the [Upgrade Guide](https://github.com/iProov/flutter/wiki/Upgrade-Guide#upgrading-to-v30) for detailed instructions on how to upgrade to this new version.
63+
64+
### Flutter
65+
66+
* Fix how `feedbackCode`, `reason` and `frame` values are returned by `IProovEventFailure`, and value `frame` by `IProovEventSucces` in the Android side.
67+
68+
### iOS
69+
70+
* Upgraded SDK to [v10.1.2](https://github.com/iProov/ios/releases/tag/10.1.2).
71+
72+
### Android
73+
74+
* Upgraded SDK to [v8.3.0](https://github.com/iProov/android/releases/tag/v8.3.0).
75+
76+
3477
## 3.0.0
3578

3679
iProov SDK Biometrics Flutter SDK v3.0.0 is a major update which includes a number of improvements and breaking changes.

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We also provide an API Client written in Dart to call our [REST API v2](https://
99

1010
### Requirements
1111

12-
- Dart SDK 2.12 and above
12+
- Dart SDK 2.15 and above
1313
- Flutter SDK 1.20 and above
1414
- iOS 11 and above
1515
- Android API Level 21 (Android 5 Lollipop) and above
@@ -35,7 +35,7 @@ Add the following to your project's `pubspec.yml` file:
3535

3636
```yaml
3737
dependencies:
38-
iproov_flutter: ^3.1.1
38+
iproov_flutter: ^3.2.0
3939
```
4040
4141
You can then install it with:
@@ -186,6 +186,8 @@ A summary of the support for the various SDK options in Flutter is provided belo
186186
| `orientation` | `Orientation?` | ||
187187
| `camera` | `Camera?` | ||
188188
| `faceDetector` | `FaceDetector?` | ||
189+
| `headerBackgroundColor` | `Color?` |||
190+
| `disableExteriorEffects` | `bool?` |||
189191
|**`genuinePresenceAssurance`** | `GenuinePresenceAssuranceOptions?` | | |
190192
|`readyOvalStrokeColor` | `Color?` |||
191193
|`notReadyOvalStrokeColor` | `Color?` |||
@@ -310,10 +312,14 @@ import 'package:iproov_api_client/iproov_api_client.dart';
310312
final apiClient = const ApiClient(
311313
baseUrl: 'https://eu.rp.secure.iproov.me/api/v2', // Substitute URL as appropriate
312314
apiKey: '< YOUR API KEY >',
313-
secret: '< YOUR SECRET >'
315+
secret: '< YOUR SECRET >',
314316
);
315317
316-
final token = await apiClient.getToken(AssuranceType.genuinePresenceAssurance, ClaimType.enrol, "[email protected]");
318+
final token = await apiClient.getToken(
319+
assuranceType: AssuranceType.genuinePresenceAssurance,
320+
claimType: ClaimType.enrol,
321+
userId: "[email protected]",
322+
);
317323
```
318324

319325
You can then launch the iProov SDK with this token.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ android {
4141

4242
dependencies {
4343
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
44-
implementation "com.iproov.sdk:iproov:8.3.1"
44+
implementation "com.iproov.sdk:iproov:8.5.0"
4545
}

example/ios/Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- iProov (10.1.3):
3+
- iProov (10.3.0):
44
- Starscream (~> 4.0)
5-
- iproov_flutter (3.1.0):
5+
- iproov_flutter (3.2.0):
66
- Flutter
7-
- iProov (= 10.1.3)
7+
- iProov (= 10.3.0)
88
- Starscream (4.0.4)
99

1010
DEPENDENCIES:
@@ -24,10 +24,10 @@ EXTERNAL SOURCES:
2424

2525
SPEC CHECKSUMS:
2626
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
27-
iProov: e0616d6f785f669b261c956bfa00450a74c1234d
28-
iproov_flutter: d69a92eced10d8535744f443d844b985404e9cc0
27+
iProov: 4f50623887ec2be48f841b157c94ba85099a9d1d
28+
iproov_flutter: 80e42ee100af1c5adc9964cbb28e44231aef12b3
2929
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
3030

3131
PODFILE CHECKSUM: 0e3d3e6da1983f2e8b05f2ed5e37df0638b36672
3232

33-
COCOAPODS: 1.11.3
33+
COCOAPODS: 1.12.1

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -221,17 +221,19 @@
221221
};
222222
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
223223
isa = PBXShellScriptBuildPhase;
224+
alwaysOutOfDate = 1;
224225
buildActionMask = 2147483647;
225226
files = (
226227
);
227228
inputPaths = (
229+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
228230
);
229231
name = "Thin Binary";
230232
outputPaths = (
231233
);
232234
runOnlyForDeploymentPostprocessing = 0;
233235
shellPath = /bin/sh;
234-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
236+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
235237
};
236238
90B85BFCF43F702CA9743E6F /* [CP] Embed Pods Frameworks */ = {
237239
isa = PBXShellScriptBuildPhase;
@@ -252,6 +254,7 @@
252254
};
253255
9740EEB61CF901F6004384FC /* Run Script */ = {
254256
isa = PBXShellScriptBuildPhase;
257+
alwaysOutOfDate = 1;
255258
buildActionMask = 2147483647;
256259
files = (
257260
);

example/ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@
4545
<false/>
4646
<key>CADisableMinimumFrameDurationOnPhone</key>
4747
<true/>
48+
<key>UIApplicationSupportsIndirectInputEvents</key>
49+
<true/>
4850
</dict>
4951
</plist>

example/lib/main.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ class _MyHomePageState extends State<MyHomePage> {
4949
String token;
5050

5151
try {
52-
token = await _apiClient.getToken(assuranceType, claimType, userId);
52+
token = await _apiClient.getToken(
53+
assuranceType: assuranceType,
54+
claimType: claimType,
55+
userId: userId,
56+
);
5357
} catch (e) {
5458
setState(() => _scanInProgress = false);
5559
ProgressHud.dismiss();
@@ -73,8 +77,8 @@ class _MyHomePageState extends State<MyHomePage> {
7377
return;
7478
}
7579

76-
const options = Options();
7780
// TODO: Customize your options here
81+
const options = Options();
7882

7983
_launchIProov(token, options);
8084
}
@@ -101,7 +105,7 @@ class _MyHomePageState extends State<MyHomePage> {
101105
} else if (event is IProovEventFailure) {
102106
ProgressHud.showAndDismiss(ProgressHudType.error, event.reason);
103107
} else if (event is IProovEventError) {
104-
ProgressHud.showAndDismiss(ProgressHudType.error, event.error.title ?? 'Error');
108+
ProgressHud.showAndDismiss(ProgressHudType.error, event.error.title);
105109
}
106110
});
107111
}

example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: archive
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "3.3.7"
10+
version: "3.3.6"
1111
async:
1212
dependency: transitive
1313
description:
@@ -129,7 +129,7 @@ packages:
129129
path: ".."
130130
relative: true
131131
source: path
132-
version: "3.1.1"
132+
version: "3.1.0"
133133
js:
134134
dependency: transitive
135135
description:
@@ -185,7 +185,7 @@ packages:
185185
name: pointycastle
186186
url: "https://pub.dartlang.org"
187187
source: hosted
188-
version: "3.7.2"
188+
version: "3.6.2"
189189
sky_engine:
190190
dependency: transitive
191191
description: flutter

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Example app for the iProov Biometrics Flutter SDK
44
publish_to: 'none'
55

66
environment:
7-
sdk: ">=2.12.0 <3.0.0"
7+
sdk: ">=2.15.0 <4.0.0"
88

99
dependencies:
1010
flutter:

ios/iproov_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414
s.source_files = 'Classes/**/*'
1515

1616
s.dependency 'Flutter'
17-
s.dependency 'iProov', '10.1.3'
17+
s.dependency 'iProov', '10.3.0'
1818

1919
s.swift_version = '5.5'
2020
s.platform = :ios, '11.0'

0 commit comments

Comments
 (0)