Skip to content

Commit

Permalink
Release 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Miquel-Martinez committed Nov 2, 2023
1 parent 90e976e commit 08228f9
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# iProov Biometrics Flutter SDK

## 4.0.1

iProov Biometrics Flutter SDK v4.0.1 includes the following changes

### Flutter

- The `certificates` option is now `List<String>?`. The base64-encoded SHA-256 hash of a certificate's Subject Public Key Info is used to add a certificate.
- Removed unnecessary `meta` library


## 4.0.0

iProov SDK Biometrics Flutter SDK v4.0.0 is a major update which includes a number of improvements and breaking changes.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Add the following to your project's `pubspec.yml` file:

```yaml
dependencies:
iproov_flutter: ^4.0.0
iproov_flutter: ^4.0.1
```
You can then install it with:
Expand Down Expand Up @@ -152,7 +152,7 @@ A summary of the support for the various SDK options in Flutter is provided belo
| `promptBackgroundColor` | `Color?` |||
| `promptRoundedCorners` | `bool?` |||
| `surroundColor` | `Color?` |||
| `certificates` | `List<Uint8List>?` |||
| `certificates` | `List<String>?` |||
| `timeout` | `Duration?` |||
| `enableScreenshots` | `bool?` | ||
| `orientation` | `Orientation?` | ||
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- Flutter (1.0.0)
- iProov (11.0.0)
- iproov_flutter (4.0.0):
- iproov_flutter (4.0.1):
- Flutter
- iProov (= 11.0.0)

Expand All @@ -22,7 +22,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
iProov: d22923b04dd1f78395979aeacd5e7d59e19465f8
iproov_flutter: 9093a13a2547a011c68bc24de3ee3fd868a56bbc
iproov_flutter: e954e549428b9cf5995f051093b7fe093e9ae902

PODFILE CHECKSUM: 3b63cf14198dad73e5eaccaa94ed2fb1260f5b72

Expand Down
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class _MyHomePageState extends State<MyHomePage> {
}
});
}


@override
Widget build(BuildContext context) {
Expand Down
8 changes: 4 additions & 4 deletions lib/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class Options {
/// Color applied to the area outside the oval.
final Color? surroundColor;

/// A [List] of certificates to use for certificate pinning, as DER-encoded X.509 certificates as [Uint8List]s.
/// A [List] of [String]s containing the base64-encoded SHA-256 hash of each certificate's Subject Public Key Info.
///
/// Certificate pinning can be disabled by passing an empty array (never do this in production apps!)
final List<Uint8List>? certificates;
final List<String>? certificates;

/// The network timeout for establishing a network connection.
final Duration? timeout;
Expand Down Expand Up @@ -121,7 +121,7 @@ class Options {
'prompt_background_color': promptBackgroundColor?.hex,
'prompt_rounded_corners': promptRoundedCorners,
'surround_color': surroundColor?.hex,
'certificates': certificates?.map((e) => base64.encode(e)).toList(),
'certificates': certificates,
'timeout': timeout?.inSeconds,
'enable_screenshots': enableScreenshots,
'orientation': orientation?.stringValue,
Expand All @@ -144,7 +144,7 @@ class Options {
Color? promptBackgroundColor,
bool? promptRoundedCorners,
Color? surroundColor,
List<Uint8List>? certificates,
List<String>? certificates,
Duration? timeout,
bool? enableScreenshots,
Orientation? orientation,
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: iproov_flutter
description: The iProov Biometrics SDK for Flutter, providing flexible authentication for identity assurance
version: 4.0.0
version: 4.0.1
homepage: https://github.com/iProov/flutter

environment:
Expand All @@ -11,7 +11,6 @@ dependencies:
flutter:
sdk: flutter
image: ^4.0.0
meta: ^1.9.1

dev_dependencies:
flutter_lints: ^1.0.4
Expand Down

0 comments on commit 08228f9

Please sign in to comment.