@capgo/capacitor-document-scanner 7.1.8 → 7.2.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.
package/README.md
CHANGED
|
@@ -18,6 +18,14 @@ npm install @capgo/capacitor-document-scanner
|
|
|
18
18
|
npx cap sync
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
## Demo
|
|
22
|
+
|
|
23
|
+
### Scanning one note
|
|
24
|
+
|
|
25
|
+
| iOS | Android |
|
|
26
|
+
|:---:|:-------:|
|
|
27
|
+
|  |  |
|
|
28
|
+
|
|
21
29
|
## API
|
|
22
30
|
|
|
23
31
|
<docgen-index>
|
|
@@ -38,7 +38,7 @@ import java.util.Locale;
|
|
|
38
38
|
@CapacitorPlugin(name = "DocumentScanner")
|
|
39
39
|
public class DocumentScannerPlugin extends Plugin {
|
|
40
40
|
|
|
41
|
-
private final String
|
|
41
|
+
private final String pluginVersion = "7.1.7";
|
|
42
42
|
|
|
43
43
|
private static final String RESPONSE_TYPE_BASE64 = "base64";
|
|
44
44
|
private static final String RESPONSE_TYPE_FILE_PATH = "imageFilePath";
|
|
@@ -296,7 +296,7 @@ public class DocumentScannerPlugin extends Plugin {
|
|
|
296
296
|
public void getPluginVersion(final PluginCall call) {
|
|
297
297
|
try {
|
|
298
298
|
final JSObject ret = new JSObject();
|
|
299
|
-
ret.put("version", this.
|
|
299
|
+
ret.put("version", this.pluginVersion);
|
|
300
300
|
call.resolve(ret);
|
|
301
301
|
} catch (final Exception e) {
|
|
302
302
|
call.reject("Could not get plugin version", e);
|
|
@@ -4,7 +4,7 @@ import Foundation
|
|
|
4
4
|
@available(iOS 13.0, *)
|
|
5
5
|
@objc(DocumentScannerPlugin)
|
|
6
6
|
public class DocumentScannerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
7
|
-
private let
|
|
7
|
+
private let pluginVersion: String = "7.2.0"
|
|
8
8
|
public let identifier = "DocumentScannerPlugin"
|
|
9
9
|
public let jsName = "DocumentScanner"
|
|
10
10
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -52,7 +52,7 @@ public class DocumentScannerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
55
|
-
call.resolve(["version": self.
|
|
55
|
+
call.resolve(["version": self.pluginVersion])
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
}
|