Skip to content

Commit 621ae02

Browse files
update to 11.0.5000
1 parent bcefe32 commit 621ae02

File tree

320 files changed

+3364
-1997
lines changed

Some content is hidden

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

320 files changed

+3364
-1997
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ This repository contains multiple samples that demonstrate how to use the [Dynam
1212

1313
- Supported OS: <a href="https://developer.android.com/about/versions/lollipop" target="_blank">Android 5.0 (API Level 21)</a> or higher.
1414
- Supported ABI: **armeabi-v7a**, **arm64-v8a**, **x86** and **x86_64**.
15-
- Development Environment: Android Studio 2022.2.1 or higher.
15+
- Development Environment:
16+
- IDE: **Android Studio 2024.3.2** suggested.
17+
- JDK: **Java 17** or higher.
18+
- Gradle: **8.0** or higher.
1619

1720
### iOS
1821

@@ -51,6 +54,7 @@ High-level customization is available via the foundational APIs. These samples s
5154
| `TinyBarcodeDecoding` | The sample to tell you how to process the tiny barcodes. Including zoom and focus control. | Java(Android)/Swift |
5255
| `DriversLicenseScanner` | The sample shows how to scan the PDF417 barcode on a driver's license and extract driver's information. | Java(Android)/Swift |
5356
| `Debug` | The sample shows how to capture original video frames for debugging. | Java(Android)/Swift |
57+
| `ReadGS1AI` | The sample shows how to extract and interpret GS1 Application Identifiers (AIs) from GS1 barcodes. | Java(Android)/Swift |
5458

5559
- API Reference
5660
- [Android](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/api-reference/)

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ plugins {
44

55
android {
66
namespace 'com.dynamsoft.scanmultiplebarcodes'
7-
compileSdk 34
7+
compileSdk 35
88

99
defaultConfig {
1010
applicationId "com.dynamsoft.scanmultiplebarcodes"
1111
minSdk 21
12-
targetSdk 34
12+
targetSdk 35
1313
versionCode 1
1414
versionName "1.0"
1515

@@ -28,8 +28,9 @@ android {
2828
}
2929

3030
dependencies {
31-
implementation 'com.dynamsoft:barcodereaderbundle:11.0.3100'
31+
implementation 'com.dynamsoft:barcodereaderbundle:11.0.5000'
3232

33-
implementation 'androidx.appcompat:appcompat:1.6.1'
34-
implementation 'com.google.android.material:material:1.9.0'
33+
implementation 'androidx.activity:activity:1.10.1'
34+
implementation 'androidx.appcompat:appcompat:1.7.1'
35+
implementation 'com.google.android.material:material:1.12.0'
3536
}

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
android:allowBackup="true"
66
android:icon="@drawable/dbr_icon"
77
android:label="@string/app_name"
8-
android:roundIcon="@mipmap/ic_launcher_round"
8+
android:roundIcon="@drawable/dbr_icon"
99
android:supportsRtl="true"
1010
android:theme="@style/Theme.BarcodeScannerAPISamples">
1111

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/java/com/dynamsoft/scanmultiplebarcodes/MainActivity.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
import com.dynamsoft.dbrbundle.ui.BarcodeScannerConfig;
1010
import com.dynamsoft.dbrbundle.ui.EnumScanningMode;
1111

12+
import androidx.activity.EdgeToEdge;
1213
import androidx.activity.result.ActivityResultLauncher;
1314
import androidx.annotation.Nullable;
1415
import androidx.appcompat.app.AppCompatActivity;
16+
import androidx.core.graphics.Insets;
17+
import androidx.core.view.ViewCompat;
18+
import androidx.core.view.WindowInsetsCompat;
1519

1620
public class MainActivity extends AppCompatActivity {
1721
private ActivityResultLauncher<BarcodeScannerConfig> launcher;
@@ -21,6 +25,14 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
2125
super.onCreate(savedInstanceState);
2226
setContentView(R.layout.activity_main);
2327

28+
EdgeToEdge.enable(this);
29+
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
30+
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
31+
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
32+
return insets;
33+
});
34+
35+
2436
TextView textView = findViewById(R.id.tv_result);
2537

2638
//optional

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/drawable-v24/ic_launcher_foreground.xml

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

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/drawable/ic_launcher_background.xml

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

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
55
android:gravity="center"
6+
android:id="@+id/main"
67
android:orientation="vertical">
78

89
<Button

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

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

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.
-1.37 KB
Binary file not shown.

0 commit comments

Comments
 (0)