Skip to content

Commit

Permalink
Fix invalid livenessImages JSON in SmartSelfie (#72)
Browse files Browse the repository at this point in the history
Fixes #70
  • Loading branch information
vanshg authored May 15, 2024
1 parent ea1bc1d commit 685573e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Release Notes

## 10.0.12

* Fixed a bug where SmartSelfieEnrollment and SmartSelfieAuthentication would return invalid `livenessImages` in `onSuccess`

## 10.0.11

* Fixed SmileIDSmartSelfieAuthentication so that it calls the correct method on ios
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SmileIDSmartSelfieAuthentication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SmileIDSmartSelfieAuthentication : NSObject, FlutterPlatformView, SmartSel
}
_channel.invokeMethod("onSuccess", arguments: """
{"selfieFile": "\(selfieImage.absoluteString)",
"livenessImages": "\(livenessImages.map { $0.absoluteString })",
"livenessImages": \(livenessImages.map { $0.absoluteString }),
"jobStatusResponse": \(jobStatusResponseJson)}
""")
}
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SmileIDSmartSelfieEnrollment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SmileIDSmartSelfieEnrollment : NSObject, FlutterPlatformView, SmartSelfieR
let jsonData = try! encoder.encode(jobStatusResponse)
_channel.invokeMethod("onSuccess", arguments: """
{"selfieFile": "\(selfieImage.absoluteString)",
"livenessImages": "\(livenessImages.map{ $0.absoluteString })",
"livenessImages": \(livenessImages.map{ $0.absoluteString }),
"jobStatusResponse": \(jobStatusResponseJson)}
""")
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: smile_id
description: The Official Smile ID Flutter SDK
version: 10.0.11
version: 10.0.12
homepage: "https://usesmileid.com"

environment:
Expand Down

0 comments on commit 685573e

Please sign in to comment.