anyline-ocr-react-native-module 40.0.0 → 41.0.2
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/android/build.gradle
CHANGED
|
@@ -65,7 +65,7 @@ repositories {
|
|
|
65
65
|
|
|
66
66
|
dependencies {
|
|
67
67
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
68
|
-
implementation 'io.anyline:anylinesdk:
|
|
68
|
+
implementation 'io.anyline:anylinesdk:41.0.0'
|
|
69
69
|
implementation "com.facebook.react:react-native:+" // from node_modules
|
|
70
70
|
implementation("com.google.android.material:material:1.4.0-rc01")
|
|
71
71
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
@@ -239,18 +239,21 @@ public class Anyline4Activity extends AnylineBaseActivity {
|
|
|
239
239
|
e.printStackTrace();
|
|
240
240
|
}
|
|
241
241
|
} else if (subResult instanceof BarcodeScanResult) {
|
|
242
|
-
|
|
242
|
+
try {
|
|
243
|
+
jsonResult.put(
|
|
244
|
+
subResult.getPluginId(),
|
|
245
|
+
extractBarcodeResult(jsonResult, subResult)
|
|
246
|
+
);
|
|
247
|
+
} catch (Exception e) {
|
|
248
|
+
Log.e(TAG, "EXCEPTION", e);
|
|
249
|
+
}
|
|
243
250
|
} else if (subResult instanceof MeterScanResult) {
|
|
244
251
|
JSONObject jsonMeterResult = new JSONObject();
|
|
245
252
|
try {
|
|
246
|
-
jsonMeterResult = AnylinePluginHelper.setMeterScanMode(
|
|
247
|
-
((MeterScanResult) subResult).getScanMode(), jsonMeterResult);
|
|
253
|
+
jsonMeterResult = AnylinePluginHelper.setMeterScanMode(((MeterScanResult) subResult).getScanMode(), jsonMeterResult);
|
|
248
254
|
jsonMeterResult.put("reading", subResult.getResult());
|
|
249
|
-
jsonMeterResult = AnylinePluginHelper.jsonHelper(Anyline4Activity.this, subResult,
|
|
250
|
-
jsonMeterResult);
|
|
255
|
+
jsonMeterResult = AnylinePluginHelper.jsonHelper(Anyline4Activity.this, subResult, jsonMeterResult);
|
|
251
256
|
jsonResult.put(subResult.getPluginId(), jsonMeterResult);
|
|
252
|
-
AnylinePluginHelper.clearFinalBarcodeList(); // otherwise result from previous scan could be shown if new scan does not include barcode
|
|
253
|
-
|
|
254
257
|
} catch (Exception e) {
|
|
255
258
|
Log.e(TAG, "EXCEPTION", e);
|
|
256
259
|
}
|
|
@@ -437,10 +440,13 @@ public class Anyline4Activity extends AnylineBaseActivity {
|
|
|
437
440
|
}
|
|
438
441
|
|
|
439
442
|
setResult(scanViewPlugin, jsonResult);
|
|
440
|
-
AnylinePluginHelper.clearFinalBarcodeList(); // otherwise result from previous scan could be shown if new scan does not include barcode
|
|
441
443
|
}
|
|
442
444
|
});
|
|
443
445
|
}
|
|
446
|
+
|
|
447
|
+
/* Clear NativeBarcodeResult after every scan, otherwise the result from previous
|
|
448
|
+
* scan would be shown if now barcode was found */
|
|
449
|
+
AnylinePluginHelper.clearFinalBarcodeList();
|
|
444
450
|
}
|
|
445
451
|
|
|
446
452
|
} catch (Exception e) {
|
package/ios/AnylineReact.podspec
CHANGED
|
@@ -19,6 +19,6 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
|
|
20
20
|
|
|
21
21
|
s.source_files = "*.{h,m}"
|
|
22
|
-
s.dependency "Anyline", "~>
|
|
22
|
+
s.dependency "Anyline", "~> 41.0.1"
|
|
23
23
|
s.dependency "React"
|
|
24
24
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "anyline-ocr-react-native-module@^
|
|
3
|
-
"_id": "anyline-ocr-react-native-module
|
|
2
|
+
"_from": "anyline-ocr-react-native-module@^41.0.2",
|
|
3
|
+
"_id": "anyline-ocr-react-native-module@^41.0.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
5
|
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
|
|
6
6
|
"_location": "/anyline-ocr-react-native-module",
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
"_requested": {
|
|
9
9
|
"type": "range",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "anyline-ocr-react-native-module@^
|
|
11
|
+
"raw": "anyline-ocr-react-native-module@^41.0.2",
|
|
12
12
|
"name": "anyline-ocr-react-native-module",
|
|
13
13
|
"escapedName": "anyline-ocr-react-native-module",
|
|
14
|
-
"rawSpec": "^
|
|
14
|
+
"rawSpec": "^41.0.2",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^
|
|
16
|
+
"fetchSpec": "^41.0.2"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/"
|
|
20
20
|
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-41.0.2.tgz",
|
|
22
22
|
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
|
|
23
|
-
"_spec": "anyline-ocr-react-native-module@^
|
|
23
|
+
"_spec": "anyline-ocr-react-native-module@^41.0.2",
|
|
24
24
|
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"type": "git",
|
|
48
48
|
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
|
|
49
49
|
},
|
|
50
|
-
"version": "
|
|
50
|
+
"version": "41.0.2"
|
|
51
51
|
}
|