Skip to content

Commit 6813962

Browse files
authored
bump sdk versions.
1 parent 1e4a6eb commit 6813962

File tree

7 files changed

+27
-2
lines changed

7 files changed

+27
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.4
2+
3+
* Bumped Android to 4.0.5
4+
* Bumped iOS to 2.0.5
5+
* Added `userShouldAcceptResultToContinue`.
6+
17
## 1.0.3
28

39
* Bumped Android to 4.0.5

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ config.userCanPickMediaFromStorage = true;
207207
// Whether the next button in the bottom right of the scanner screen goes to the review screen instead of finishing the session.
208208
config.shouldGoToReviewScreenOnFinishPressed = true;
209209
210+
// Whether the user must confirm the taken photo before the SDK continues.
211+
config.userShouldAcceptResultToContinue = false;
212+
210213
// What the default color conversion will be (grayscale, original, enhanced).
211214
config.defaultColor = DefaultColor.original;
212215

android/src/main/kotlin/com/klippa/scanner/klippa_scanner_sdk/KlippaScannerSdkPlugin.kt

+4
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ class KlippaScannerSdkPlugin: FlutterPlugin, MethodCallHandler, ActivityAware, P
192192
scannerSession.menu.shouldGoToReviewScreenWhenImageLimitReached = it
193193
}
194194

195+
call.argument<Boolean>("UserShouldAcceptResultToContinue")?.let {
196+
scannerSession.menu.userShouldAcceptResultToContinue = it
197+
}
198+
195199
call.argument<Boolean>("UserCanRotateImage")?.let {
196200
scannerSession.menu.userCanRotateImage = it
197201
}

ios/Classes/SwiftKlippaScannerSdkPlugin.swift

+4
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ public class SwiftKlippaScannerSdkPlugin: NSObject, FlutterPlugin, KlippaScanner
195195
builder.klippaMenu.shouldGoToReviewScreenWhenImageLimitReached = shouldGoToReviewScreenWhenImageLimitReached
196196
}
197197

198+
if let userShouldAcceptResultToContinue = builderArgs?["UserShouldAcceptResultToContinue"] as? Bool {
199+
builder.klippaMenu.userShouldAcceptResultToContinue = userShouldAcceptResultToContinue
200+
}
201+
198202
if let userCanRotateImage = builderArgs?["UserCanRotateImage"] as? Bool {
199203
builder.klippaMenu.userCanRotateImage = userCanRotateImage
200204
}

ios/sdk_version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.4
1+
2.0.5

lib/klippa_scanner_sdk.dart

+8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class CameraConfig {
112112
/// Whether to go to the Review Screen once the image limit has been reached. (default false)
113113
bool? shouldGoToReviewScreenWhenImageLimitReached;
114114

115+
/// Whether the user must confirm the taken photo before the SDK continues. (default false)
116+
bool? userShouldAcceptResultToContinue;
117+
115118
/// Whether to hide or show the rotate button in the Review Screen. (default shown/true)
116119
bool? userCanRotateImage;
117120

@@ -485,6 +488,11 @@ class KlippaScannerSdk {
485488
config.shouldGoToReviewScreenWhenImageLimitReached;
486489
}
487490

491+
if (config.userShouldAcceptResultToContinue != null) {
492+
parameters["UserShouldAcceptResultToContinue"] =
493+
config.userShouldAcceptResultToContinue;
494+
}
495+
488496
if (config.primaryColor != null) {
489497
parameters["PrimaryColor"] =
490498
KIVHexColor.flutterColorToHex(config.primaryColor!, true);

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: klippa_scanner_sdk
22
description: Allows you to do document scanning with the Klippa Scanner SDK from Flutter apps.
3-
version: 1.0.3
3+
version: 1.0.4
44
homepage: https://github.com/klippa-app/flutter-klippa-scanner-sdk
55

66
environment:

0 commit comments

Comments
 (0)