Skip to content

Commit 4c1a8b5

Browse files
AllenAllen-Dynamsoft
authored andcommitted
DBR update to 10.2.11
1 parent 2ed27c1 commit 4c1a8b5

File tree

31 files changed

+53
-34
lines changed

31 files changed

+53
-34
lines changed

android/GeneralSettings/GeneralSettings/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
}
3535

3636
dependencies {
37-
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.10'
37+
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.1100'
3838

3939
implementation 'androidx.navigation:navigation-fragment:2.3.1'
4040
implementation 'androidx.navigation:navigation-ui:2.3.1'

android/GeneralSettings/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/scanner/ScannerFragment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public void onDecodedBarcodesReceived(DecodedBarcodesResult result) {
8787
// Stop the barcode decoding when the scan mode is not continuous scan.
8888
if (!ifContinuousScan) {
8989
mRouter.stopCapturing();
90+
mRouter.getInput().clearBuffer();
9091
}
9192
if (isVibrationEnabled) {
9293
Feedback.vibrate(requireContext());

android/HelloWorld/DecodeFromAnImage/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ android {
3232
}
3333

3434
dependencies {
35-
implementation('com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.10') {
35+
implementation('com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.1100') {
3636
exclude group: 'com.dynamsoft', module: 'dynamsoftcameraenhancer'
3737
}
3838

android/HelloWorld/DecodeFromAnImageKt/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ android {
3636
}
3737

3838
dependencies {
39-
implementation('com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.10') {
39+
implementation('com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.1100') {
4040
exclude group: 'com.dynamsoft', module: 'dynamsoftcameraenhancer'
4141
}
4242

android/HelloWorld/DecodeWithCameraEnhancer/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ android {
2929
}
3030

3131
dependencies {
32-
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.10'
32+
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.1100'
3333

3434
implementation 'androidx.appcompat:appcompat:1.6.1'
3535
implementation 'com.google.android.material:material:1.9.0'

android/HelloWorld/DecodeWithCameraEnhancer/src/main/java/com/dynamsoft/dbr/decodewithcameraenhancer/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ private void showResult(DecodedBarcodesResult result) {
109109

110110
if (result != null && result.getItems() != null && result.getItems().length > 0) {
111111
mRouter.stopCapturing();
112+
mRouter.getInput().clearBuffer();
112113
// Extract the barcode format and the barcode text from the BarcodeResultItem.
113114
for (int i = 0; i < result.getItems().length; i++) {
114115
BarcodeResultItem item = result.getItems()[i];

android/HelloWorld/DecodeWithCameraEnhancerKt/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333
}
3434

3535
dependencies {
36-
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.10'
36+
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.1100'
3737

3838
implementation 'androidx.core:core-ktx:1.9.0'
3939
implementation 'androidx.appcompat:appcompat:1.6.1'

android/HelloWorld/DecodeWithCameraEnhancerKt/src/main/java/com/dynamsoft/decodewithcameraenhancerkt/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class MainActivity : AppCompatActivity() {
9191
val strRes = StringBuilder()
9292
if (result?.items != null && result.items.isNotEmpty()) {
9393
mRouter.stopCapturing()
94+
mRouter.input?.clearBuffer()
9495
for (i in result.items.indices) {
9596
// Extract the barcode format and the barcode text from the BarcodeResultItem.
9697
val item: BarcodeResultItem = result.items[i]

android/HelloWorld/DecodeWithCameraX/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies {
3838
// CameraX View class
3939
implementation "androidx.camera:camera-view:$camerax_version"
4040

41-
implementation('com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.10') {
41+
implementation('com.dynamsoft:dynamsoftbarcodereaderbundle:10.2.1100') {
4242
exclude group:'com.dynamsoft', module:'dynamsoftcameraenhancer'
4343
}
4444

android/HelloWorld/DecodeWithCameraX/src/main/java/com/dynamsoft/dbr/decodewithcamerax/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ private void showResult(DecodedBarcodesResult result) {
9393

9494
if (result != null && result.getItems() != null && result.getItems().length > 0) {
9595
mRouter.stopCapturing();
96+
mRouter.getInput().clearBuffer();
9697
for (int i = 0; i < result.getItems().length; i++) {
9798
// Extract the barcode format and the barcode text from the BarcodeResultItem.
9899
BarcodeResultItem item = result.getItems()[i];

0 commit comments

Comments
 (0)