@capgo/capacitor-document-scanner 8.3.32 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -331,13 +331,13 @@ public class DocumentScannerPlugin extends Plugin {
|
|
|
331
331
|
boolean canContinue = scan.acceptedPageFiles.size() < scan.requestedPageLimit;
|
|
332
332
|
|
|
333
333
|
if (canContinue) {
|
|
334
|
-
builder.setPositiveButton("
|
|
335
|
-
builder.setNeutralButton("
|
|
334
|
+
builder.setPositiveButton("Add another", (dialog, which) -> relaunchScanner(call));
|
|
335
|
+
builder.setNeutralButton("Finish", (dialog, which) -> resolveAcceptedPages(call));
|
|
336
336
|
} else {
|
|
337
|
-
builder.setPositiveButton("
|
|
337
|
+
builder.setPositiveButton("Finish", (dialog, which) -> resolveAcceptedPages(call));
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
builder.setNegativeButton("
|
|
340
|
+
builder.setNegativeButton("Try again", (dialog, which) -> {
|
|
341
341
|
removeLastAcceptedPage(scan);
|
|
342
342
|
relaunchScanner(call);
|
|
343
343
|
});
|
|
@@ -387,8 +387,8 @@ public class DocumentScannerPlugin extends Plugin {
|
|
|
387
387
|
subtitle.setPadding(0, padding, 0, 0);
|
|
388
388
|
subtitle.setText(
|
|
389
389
|
scan.acceptedPageFiles.size() >= scan.requestedPageLimit
|
|
390
|
-
? "Use
|
|
391
|
-
: "Use
|
|
390
|
+
? "Use Finish to keep this page, or Try again to scan it again."
|
|
391
|
+
: "Use Add another to scan the next page, Finish to save, or Try again to replace this page."
|
|
392
392
|
);
|
|
393
393
|
container.addView(
|
|
394
394
|
subtitle,
|
|
@@ -3,7 +3,7 @@ import Foundation
|
|
|
3
3
|
|
|
4
4
|
@objc(DocumentScannerPlugin)
|
|
5
5
|
public class DocumentScannerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
6
|
-
private let pluginVersion: String = "8.
|
|
6
|
+
private let pluginVersion: String = "8.4.0"
|
|
7
7
|
public let identifier = "DocumentScannerPlugin"
|
|
8
8
|
public let jsName = "DocumentScanner"
|
|
9
9
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-document-scanner",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"description": "Capacitor plugin to scan document iOS and Android",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
"prepublishOnly": "bun run build",
|
|
50
50
|
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
51
51
|
"example:install": "cd example-app && bun install --frozen-lockfile",
|
|
52
|
-
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build"
|
|
53
|
-
"example:capgo:deploy": "bun run example:build && bun scripts/deploy-example-capgo.mjs"
|
|
52
|
+
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@capacitor/android": "^8.0.0",
|