Skip to content

Commit

Permalink
Merge pull request #147 from Anyline/release/41.0.0
Browse files Browse the repository at this point in the history
Release/41.0.0
  • Loading branch information
renatoAnyline authored Aug 3, 2022
2 parents 6797b34 + 63dc9bd commit 38d831c
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 30 deletions.
2 changes: 1 addition & 1 deletion example/RNExampleApp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 4
versionName "40.0.0"
versionName "41.0.0"
multiDexEnabled true

}
Expand Down
13 changes: 2 additions & 11 deletions example/RNExampleApp/config/AnalogMeterConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
"plugin": {
"id": "Meter_ID",
"meterPlugin": {
"scanMode": "ANALOG_METER"
"scanMode": "AUTO_ANALOG_DIGITAL_METER"
}
},
"cutoutConfig": {
Expand All @@ -35,15 +35,6 @@ export default {
},
"cancelOnResult": true
},
"nativeBarcodeEnabled": true,
"segment": {
"titles": ["Analog", "Digital"],
"modes": ["ANALOG_METER", "DIGITAL_METER"],
"tintColor": "CCCCCC",
"offset": {
"x": 0,
"y": 400
}
}
"nativeBarcodeEnabled": true
}
}
2 changes: 1 addition & 1 deletion example/RNExampleApp/config/DigitalMeterConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
"plugin": {
"id": "DIGITAL_METER",
"meterPlugin": {
"scanMode": "DIGITAL_METER"
"scanMode": "AUTO_ANALOG_DIGITAL_METER"
}
},
"cutoutConfig": {
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/config/DotMatrixConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
"plugin": {
"id": "Meter_ID",
"meterPlugin": {
"scanMode": "DOT_MATRIX_METER"
"scanMode": "AUTO_ANALOG_DIGITAL_METER"
}
},
"cutoutConfig": {
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/config/TireSizeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
"scanFeedback" : {
"animation": "traverse_multi",
"animationDuration" : 250,
"style": "contour_rect",
"style": "rect",
"strokeWidth": 2,
"strokeColor": "0099FF",
"beepOnResult": true,
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/ios/RNExampleApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>40.0.0</string>
<string>41.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RNExampleApp",
"version": "40.0.0",
"version": "41.0.0",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
Expand Down
2 changes: 1 addition & 1 deletion plugin/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ repositories {

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'io.anyline:anylinesdk:40.0.0'
implementation 'io.anyline:anylinesdk:41.0.0'
implementation "com.facebook.react:react-native:+" // from node_modules
implementation("com.google.android.material:material:1.4.0-rc01")
implementation 'androidx.multidex:multidex:2.0.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ public void onResult(ScanResult result) {
jsonMeterResult = AnylinePluginHelper.jsonHelper(Anyline4Activity.this, subResult,
jsonMeterResult);
jsonResult.put(subResult.getPluginId(), jsonMeterResult);
AnylinePluginHelper.clearFinalBarcodeList(); // otherwise result from previous scan could be shown if new scan does not include barcode

} catch (Exception e) {
Log.e(TAG, "EXCEPTION", e);
}
Expand Down Expand Up @@ -437,10 +435,13 @@ public void onResult(MeterScanResult meterScanResult) {
}

setResult(scanViewPlugin, jsonResult);
AnylinePluginHelper.clearFinalBarcodeList(); // otherwise result from previous scan could be shown if new scan does not include barcode
}
});
}

/* Clear NativeBarcodeResult after every scan, otherwise the result from previous
* scan would be shown if now barcode was found */
AnylinePluginHelper.clearFinalBarcodeList();
}

} catch (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", "~> 40.0.0"
s.dependency "Anyline", "~> 41.0.0"
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@^40.0.0",
"_id": "anyline-ocr-react-native-module@40.0.0",
"_from": "anyline-ocr-react-native-module@^41.0.0",
"_id": "anyline-ocr-react-native-module@41.0.0",
"_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@^40.0.0",
"raw": "anyline-ocr-react-native-module@^41.0.0",
"name": "anyline-ocr-react-native-module",
"escapedName": "anyline-ocr-react-native-module",
"rawSpec": "^40.0.0",
"rawSpec": "^41.0.0",
"saveSpec": null,
"fetchSpec": "^40.0.0"
"fetchSpec": "^41.0.0"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-40.0.0.tgz",
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-41.0.0.tgz",
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
"_spec": "anyline-ocr-react-native-module@^40.0.0",
"_spec": "anyline-ocr-react-native-module@^41.0.0",
"_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": "40.0.0"
"version": "41.0.0"
}

0 comments on commit 38d831c

Please sign in to comment.