Skip to content

Commit 1b4c36c

Browse files
update to v9.4.0
1 parent 43031dd commit 1b4c36c

File tree

59 files changed

+1617
-1931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1617
-1931
lines changed

.gitignore

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
1-
21
.DS_Store
2+
## Build generated
3+
build/
4+
DerivedData/
5+
6+
## Various settings
7+
*.pbxuser
8+
!default.pbxuser
9+
*.mode1v3
10+
!default.mode1v3
11+
*.mode2v3
12+
!default.mode2v3
13+
*.perspectivev3
14+
!default.perspectivev3
15+
xcuserdata/
16+
17+
## Other
18+
*.moved-aside
19+
*.xcuserstate
20+
21+
## Obj-C/Swift specific
22+
*.hmap
23+
*.ipa
24+
*.dSYM.zip
25+
*.dSYM
26+
iOSInjectionProject/
27+
project.xcworkspace

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
License Notice
22

3-
This folder contains code samples ("Sample Code") for use with Dynamsoft Barcode Reader, a commercial software development kit licensed by Dynamsoft. The Sample Code may be modified and included in your end user software under the terms of the Dynamsoft Software License Agreement   https://www.dynamsoft.com/barcode-reader/license-agreement/ (Commercial License). Except as expressly stated in the Commercial License, no other rights are granted in the Sample Code. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3+
This folder contains code samples ("Sample Code") for use with Dynamsoft Barcode Reader, a commercial software development kit licensed by Dynamsoft. The Sample Code may be modified and included in your end user software under the terms of the Dynamsoft Software License Agreement   https://www.dynamsoft.com/barcode-reader/license-agreement/ ("Commercial License"). Except as expressly stated in the Commercial License, no other rights are granted in the Sample Code. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44

5-
Copyright © 2003–2021 Dynamsoft. All rights reserved.
5+
Copyright © 2003–2022 Dynamsoft. All rights reserved.

android/DecodeWithCameraX/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ android {
2626
targetCompatibility JavaVersion.VERSION_1_8
2727
}
2828
repositories {
29-
maven {
30-
url "https://download2.dynamsoft.com/maven/aar"
29+
flatDir {
30+
dirs '../../../Libs'
3131
}
3232
}
3333
}
3434

3535
dependencies {
36-
implementation 'com.dynamsoft:dynamsoftbarcodereader:9.2.10@aar'
36+
implementation fileTree(include: ['*.aar'], dir: '../../../Libs')
3737
implementation 'androidx.appcompat:appcompat:1.0.2'
3838
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
3939
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.1'

android/DecodeWithCameraX/app/src/main/java/com/dynamsoft/decodewithcamerax/CameraFragment.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,7 @@ private void showResult(TextResult[] results) {
231231
StringBuilder strRes = new StringBuilder();
232232
if (results != null && results.length > 0) {
233233
for (TextResult result : results) {
234-
if (result.barcodeFormat_2 != 0) {
235-
strRes.append("Format: ").append(result.barcodeFormatString_2).append("\n").append("Text: ").append(result.barcodeText).append("\n\n");
236-
} else {
237-
strRes.append("Format: ").append(result.barcodeFormatString).append("\n").append("Text: ").append(result.barcodeText).append("\n\n");
238-
}
234+
strRes.append("Format: ").append(result.barcodeFormatString).append("\n").append("Text: ").append(result.barcodeText).append("\n\n");
239235
}
240236
} else {
241237
return;

android/DecodeWithCameraX/app/src/main/res/layout/activity_main.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

android/GeneralSettings/app/build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,12 @@ android {
2525
sourceCompatibility JavaVersion.VERSION_1_8
2626
targetCompatibility JavaVersion.VERSION_1_8
2727
}
28-
repositories {
29-
maven {
30-
url "https://download2.dynamsoft.com/maven/aar"
31-
}
32-
}
3328

3429
}
3530

3631
dependencies {
37-
implementation 'com.dynamsoft:dynamsoftcameraenhancer:2.3.3@aar'
38-
implementation 'com.dynamsoft:dynamsoftbarcodereader:9.2.10@aar'
32+
implementation fileTree(include: ['*.aar'], dir: '../../../Libs')
33+
3934
implementation 'androidx.appcompat:appcompat:1.2.0'
4035
implementation 'com.google.android.material:material:1.2.1'
4136
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'

android/GeneralSettings/app/src/main/java/com/dynamsoft/generalsettings/scan/ScanFragment.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,8 @@ private void showResults(TextResult[] results) {
258258
for (int i = 0; i < results.length; i++) {
259259
Map<String, String> temp = new HashMap<>();
260260
temp.put("Index", String.valueOf(i + 1));
261-
if (results[i].barcodeFormat_2 != 0) {
262-
temp.put("Format", results[i].barcodeFormatString_2);
263-
continueRes.append("\n\n").append(getString(R.string.format)).append(results[i].barcodeFormatString_2).append("\n").append(getString(R.string.text)).append(results[i].barcodeText);
264-
} else {
265-
temp.put("Format", results[i].barcodeFormatString);
266-
continueRes.append("\n\n").append(getString(R.string.format)).append(results[i].barcodeFormatString).append("\n").append(getString(R.string.text)).append(results[i].barcodeText);
267-
}
261+
temp.put("Format", results[i].barcodeFormatString);
262+
continueRes.append("\n\n").append(getString(R.string.format)).append(results[i].barcodeFormatString).append("\n").append(getString(R.string.text)).append(results[i].barcodeText);
268263
temp.put("Text", results[i].barcodeText);
269264
resultMapList.add(temp);
270265
}

android/HelloWorld/app/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@ android {
2525
sourceCompatibility JavaVersion.VERSION_1_8
2626
targetCompatibility JavaVersion.VERSION_1_8
2727
}
28-
repositories {
29-
maven {
30-
url "https://download2.dynamsoft.com/maven/aar"
31-
}
32-
} }
28+
}
3329

3430
dependencies {
35-
implementation 'com.dynamsoft:dynamsoftcameraenhancer:2.3.3@aar'
36-
implementation 'com.dynamsoft:dynamsoftbarcodereader:9.2.10@aar'
31+
implementation fileTree(include: ['*.aar'], dir: '../../../Libs')
32+
3733
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
3834
implementation 'androidx.appcompat:appcompat:1.2.0'
3935
implementation 'com.google.android.material:material:1.2.1'

android/PerformanceSettings/app/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@ android {
2828
}
2929
repositories {
3030
maven { url "https://jitpack.io" }
31-
maven {
32-
url "https://download2.dynamsoft.com/maven/aar"
33-
} }
31+
}
3432
}
3533

3634
dependencies {
37-
implementation 'com.dynamsoft:dynamsoftcameraenhancer:2.3.3@aar'
38-
implementation 'com.dynamsoft:dynamsoftbarcodereader:9.2.10@aar'
35+
implementation fileTree(include: ['*.aar'], dir: '../../../Libs')
3936

4037
implementation 'androidx.appcompat:appcompat:1.2.0'
4138
implementation 'com.google.android.material:material:1.2.1'

android/PerformanceSettings/app/src/main/java/com/dynamsoft/performancesettings/ResultsFragment.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,7 @@ private void showResults(TextResult[] results) {
166166
for (int i = 0; i < results.length; i++) {
167167
Map<String, String> temp = new HashMap<>();
168168
temp.put("Index", String.valueOf(i + 1));
169-
if (results[i].barcodeFormat_2 != 0) {
170-
temp.put("Format", results[i].barcodeFormatString_2);
171-
} else {
172-
temp.put("Format", results[i].barcodeFormatString);
173-
}
169+
temp.put("Format", results[i].barcodeFormatString);
174170
temp.put("Text", results[i].barcodeText);
175171
resultMapList.add(temp);
176172
}

0 commit comments

Comments
 (0)