@capgo/capacitor-document-scanner 8.3.8 → 8.3.10

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.
@@ -416,6 +416,8 @@ public class DocumentScannerPlugin extends Plugin {
416
416
  String manufacturer = Build.MANUFACTURER.toLowerCase(Locale.ROOT);
417
417
  String brand = Build.BRAND.toLowerCase(Locale.ROOT);
418
418
  String device = Build.DEVICE.toLowerCase(Locale.ROOT);
419
+ String hardware = Build.HARDWARE.toLowerCase(Locale.ROOT);
420
+ String board = Build.BOARD.toLowerCase(Locale.ROOT);
419
421
 
420
422
  return (
421
423
  fingerprint.startsWith("generic") ||
@@ -427,7 +429,11 @@ public class DocumentScannerPlugin extends Plugin {
427
429
  (brand.startsWith("generic") && device.startsWith("generic")) ||
428
430
  "google_sdk".equals(product) ||
429
431
  product.contains("sdk_gphone") ||
430
- product.contains("emulator")
432
+ product.contains("emulator") ||
433
+ hardware.contains("ranchu") ||
434
+ hardware.contains("goldfish") ||
435
+ board.contains("ranchu") ||
436
+ board.contains("goldfish")
431
437
  );
432
438
  }
433
439
 
@@ -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.3.8"
6
+ private let pluginVersion: String = "8.3.10"
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.8",
3
+ "version": "8.3.10",
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",