From d233da7564e197f65f8b510bf17980d99c6f6ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Queir=C3=B3s?= Date: Wed, 29 Jan 2020 17:48:46 +0000 Subject: [PATCH] feat: translate UPC-A to EAN-13 --- .idea/vcs.xml | 6 ++++++ src/android/Aidc.java | 1 + 2 files changed, 7 insertions(+) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/android/Aidc.java b/src/android/Aidc.java index bbc27ae..828c159 100644 --- a/src/android/Aidc.java +++ b/src/android/Aidc.java @@ -92,6 +92,7 @@ public boolean execute(String action, JSONArray args, final CallbackContext call barcodeReader.setProperty(BarcodeReader.PROPERTY_EAN_8_CHECK_DIGIT_TRANSMIT_ENABLED, true); barcodeReader.setProperty(BarcodeReader.PROPERTY_EAN_13_ENABLED, true); barcodeReader.setProperty(BarcodeReader.PROPERTY_EAN_13_CHECK_DIGIT_TRANSMIT_ENABLED, true); + barcodeReader.setProperty(BarcodeReader.PROPERTY_UPC_A_TRANSLATE_EAN13, true); } catch (UnsupportedPropertyException e) { callbackContext.error(e.getMessage()); }