Skip to content

Commit

Permalink
Merge pull request #150 from Anyline/release/41.0.1
Browse files Browse the repository at this point in the history
Release/41.0.1
  • Loading branch information
patrickAnyline authored Aug 5, 2022
2 parents 38d831c + 3e25496 commit 0eeaced
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,20 @@ public void onResult(ScanResult result) {
e.printStackTrace();
}
} else if (subResult instanceof BarcodeScanResult) {
jsonResult = extractBarcodeResult(jsonResult, subResult);
try {
jsonResult.put(
subResult.getPluginId(),
extractBarcodeResult(jsonResult, subResult)
);
} catch (Exception e) {
Log.e(TAG, "EXCEPTION", e);
}
} else if (subResult instanceof MeterScanResult) {
JSONObject jsonMeterResult = new JSONObject();
try {
jsonMeterResult = AnylinePluginHelper.setMeterScanMode(
((MeterScanResult) subResult).getScanMode(), jsonMeterResult);
jsonMeterResult = AnylinePluginHelper.setMeterScanMode(((MeterScanResult) subResult).getScanMode(), jsonMeterResult);
jsonMeterResult.put("reading", subResult.getResult());
jsonMeterResult = AnylinePluginHelper.jsonHelper(Anyline4Activity.this, subResult,
jsonMeterResult);
jsonMeterResult = AnylinePluginHelper.jsonHelper(Anyline4Activity.this, subResult, jsonMeterResult);
jsonResult.put(subResult.getPluginId(), jsonMeterResult);
} catch (Exception e) {
Log.e(TAG, "EXCEPTION", e);
Expand Down
2 changes: 1 addition & 1 deletion plugin/ios/AnylineReact.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }

s.source_files = "*.{h,m}"
s.dependency "Anyline", "~> 41.0.0"
s.dependency "Anyline", "~> 41.0.1"
s.dependency "React"
end
16 changes: 8 additions & 8 deletions plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"_from": "anyline-ocr-react-native-module@^41.0.0",
"_id": "[email protected].0",
"_from": "anyline-ocr-react-native-module@^41.0.1",
"_id": "[email protected].1",
"_inBundle": false,
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
"_location": "/anyline-ocr-react-native-module",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "anyline-ocr-react-native-module@^41.0.0",
"raw": "anyline-ocr-react-native-module@^41.0.1",
"name": "anyline-ocr-react-native-module",
"escapedName": "anyline-ocr-react-native-module",
"rawSpec": "^41.0.0",
"rawSpec": "^41.0.1",
"saveSpec": null,
"fetchSpec": "^41.0.0"
"fetchSpec": "^41.0.1"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-41.0.0.tgz",
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-41.0.1.tgz",
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
"_spec": "anyline-ocr-react-native-module@^41.0.0",
"_spec": "anyline-ocr-react-native-module@^41.0.1",
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
"bugs": {
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
Expand All @@ -47,5 +47,5 @@
"type": "git",
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
},
"version": "41.0.0"
"version": "41.0.1"
}

0 comments on commit 0eeaced

Please sign in to comment.