diff --git a/README.md b/README.md
index 791afe48..ca158121 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,15 @@ Get the basic features working with plain/native JavaScript or within a framewor
* [**Hello World in Angular**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/angular): Read single barcode from camera in an Angular application.
* [**Hello World in React**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/react): Read single barcode from camera in a React application.
* [**Hello World in Vue**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/vue): Read single barcode from camera in a Vue application.
+* [**Hello World in Svelte**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/svelte): Read single barcode from camera in a Svelte application.
+* [**Hello World in Capacitor**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/capacitor): Read single barcode from camera in a Capacitor application.
+* [**Hello World in Webview**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/webview): Read single barcode from camera in a Webview application.
+* [**Hello World in Typescript**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/native-ts): Read single barcode from camera in a Typescript application.
+* [**Hello World in Electron**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/electron): Read single barcode from camera in a Electron application.
+* [**Hello World in Blazor**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/blazor): Read single barcode from camera in a Blazor application.
+* [**Hello World in RequireJS**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/requirejs.html): Read single barcode from camera in a RequireJS application.
+* [**Hello World in ES6**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/es6.html): Read single barcode from camera in a ES6 application.
+* [**Hello World in PWA**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/pwa): Read single barcode from camera in a PWA application.
**Scan multiple barcodes**
diff --git a/barcode-scanner-api-samples/scan-multiple-barcodes/README.md b/barcode-scanner-api-samples/scan-multiple-barcodes/README.md
index c1df723a..06dc7bd7 100644
--- a/barcode-scanner-api-samples/scan-multiple-barcodes/README.md
+++ b/barcode-scanner-api-samples/scan-multiple-barcodes/README.md
@@ -112,4 +112,13 @@ Multiple samples are provided for single barcode scanning. These samples can be
* [**Use customized template**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/use-customized-template): Use different customized templates for scanning various barcode types.
* [**Hello World in Angular**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/angular): Read single barcode from camera in an Angular application.
* [**Hello World in React**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/react): Read single barcode from camera in a React application.
-* [**Hello World in Vue**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/vue): Read single barcode from camera in a Vue application.
\ No newline at end of file
+* [**Hello World in Vue**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/vue): Read single barcode from camera in a Vue application.
+* [**Hello World in Svelte**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/svelte): Read single barcode from camera in a Svelte application.
+* [**Hello World in Capacitor**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/capacitor): Read single barcode from camera in a Capacitor application.
+* [**Hello World in Webview**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/webview): Read single barcode from camera in a Webview application.
+* [**Hello World in Typescript**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/native-ts): Read single barcode from camera in a Typescript application.
+* [**Hello World in Electron**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/electron): Read single barcode from camera in a Electron application.
+* [**Hello World in Blazor**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/blazor): Read single barcode from camera in a Blazor application.
+* [**Hello World in RequireJS**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/requirejs.html): Read single barcode from camera in a RequireJS application.
+* [**Hello World in ES6**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/es6.html): Read single barcode from camera in a ES6 application.
+* [**Hello World in PWA**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/pwa): Read single barcode from camera in a PWA application.
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/README.md b/barcode-scanner-api-samples/scan-single-barcode/README.md
index d2836d05..35cbba46 100644
--- a/barcode-scanner-api-samples/scan-single-barcode/README.md
+++ b/barcode-scanner-api-samples/scan-single-barcode/README.md
@@ -131,6 +131,15 @@ It allows users to dynamically select a scanning template (e.g., DPM, Dot Code,
* [**Hello World in Angular**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/angular): Read single barcode from camera in an Angular application.
* [**Hello World in React**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/react): Read single barcode from camera in a React application.
* [**Hello World in Vue**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/vue): Read single barcode from camera in a Vue application.
+* [**Hello World in Svelte**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/svelte): Read single barcode from camera in a Svelte application.
+* [**Hello World in Capacitor**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/capacitor): Read single barcode from camera in a Capacitor application.
+* [**Hello World in Webview**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/webview): Read single barcode from camera in a Webview application.
+* [**Hello World in Typescript**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/native-ts): Read single barcode from camera in a Typescript application.
+* [**Hello World in Electron**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/electron): Read single barcode from camera in a Electron application.
+* [**Hello World in Blazor**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/blazor): Read single barcode from camera in a Blazor application.
+* [**Hello World in RequireJS**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/requirejs.html): Read single barcode from camera in a RequireJS application.
+* [**Hello World in ES6**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/es6.html): Read single barcode from camera in a ES6 application.
+* [**Hello World in PWA**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/pwa): Read single barcode from camera in a PWA application.
Scan multiple barcodes:
diff --git a/barcode-scanner-api-samples/scan-single-barcode/angular/README.md b/barcode-scanner-api-samples/scan-single-barcode/angular/README.md
index a4431426..e31e5b7c 100644
--- a/barcode-scanner-api-samples/scan-single-barcode/angular/README.md
+++ b/barcode-scanner-api-samples/scan-single-barcode/angular/README.md
@@ -19,7 +19,7 @@ npm install
### 2. Run the App
```bash
-ng serve
+npm run start
```
Then open your browser at http://localhost:4200 to view the sample app.
diff --git a/barcode-scanner-api-samples/scan-single-barcode/angular/package.json b/barcode-scanner-api-samples/scan-single-barcode/angular/package.json
index 1a14307c..f3cf9924 100644
--- a/barcode-scanner-api-samples/scan-single-barcode/angular/package.json
+++ b/barcode-scanner-api-samples/scan-single-barcode/angular/package.json
@@ -5,8 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
- "watch": "ng build --watch --configuration development",
- "test": "ng test"
+ "watch": "ng build --watch --configuration development"
},
"private": true,
"dependencies": {
diff --git a/barcode-scanner-api-samples/scan-single-barcode/angular/public/favicon.ico b/barcode-scanner-api-samples/scan-single-barcode/angular/public/favicon.ico
deleted file mode 100644
index 57614f9c..00000000
Binary files a/barcode-scanner-api-samples/scan-single-barcode/angular/public/favicon.ico and /dev/null differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.html b/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.html
index ead93434..1e505568 100644
--- a/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.html
+++ b/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.html
@@ -1,8 +1,7 @@
Hello World for Angular
-
-
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.spec.ts b/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.spec.ts
deleted file mode 100644
index 9a8153d9..00000000
--- a/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.spec.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { TestBed } from '@angular/core/testing';
-import { AppComponent } from './app.component';
-
-describe('AppComponent', () => {
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [AppComponent],
- }).compileComponents();
- });
-
- it('should create the app', () => {
- const fixture = TestBed.createComponent(AppComponent);
- const app = fixture.componentInstance;
- expect(app).toBeTruthy();
- });
-
- it(`should have the 'angular' title`, () => {
- const fixture = TestBed.createComponent(AppComponent);
- const app = fixture.componentInstance;
- expect(app.title).toEqual('angular');
- });
-
- it('should render title', () => {
- const fixture = TestBed.createComponent(AppComponent);
- fixture.detectChanges();
- const compiled = fixture.nativeElement as HTMLElement;
- expect(compiled.querySelector('h1')?.textContent).toContain('Hello, angular');
- });
-});
diff --git a/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.ts b/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.ts
index 381b1621..994f07ae 100644
--- a/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.ts
+++ b/barcode-scanner-api-samples/scan-single-barcode/angular/src/app/app.component.ts
@@ -9,17 +9,21 @@ import { BarcodeScanner, BarcodeScannerConfig } from 'dynamsoft-barcode-reader-b
export class AppComponent {
title = 'angular';
+ barcodeScanner: BarcodeScanner | null = null;
- @ViewChild('scannerView') scannerView!: ElementRef;
+ @ViewChild('barcodeScannerViewRef') barcodeScannerViewRef!: ElementRef;
async ngAfterViewInit(): Promise {
// Configuration object for initializing the BarcodeScanner instance
const config: BarcodeScannerConfig = {
license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with your Dynamsoft license key
- container: this.scannerView.nativeElement, // Specify where to render the scanner UI
+
+ // Specify where to render the scanner UI
+ // If container is not specified, the UI will take up the full screen
+ container: this.barcodeScannerViewRef.nativeElement,
// Specify the path for the definition file "barcode-scanner.ui.xml" for the scanner view.
- uiPath: "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.6000/dist/",
+ uiPath: "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.6000/dist/ui/barcode-scanner.ui.xml",
// showUploadImageButton: true,
// scannerViewConfig: {
@@ -34,13 +38,16 @@ export class AppComponent {
}
// Create an instance of the BarcodeScanner with the provided configuration
- const barcodeScanner = new BarcodeScanner(config);
+ this.barcodeScanner = new BarcodeScanner(config);
// Launch the scanner; once a barcode is detected, display its text in an alert
- barcodeScanner.launch().then((result) => {
- if (result.barcodeResults.length) {
- alert(result.barcodeResults[0].text);
- }
- });
+ let result = await this.barcodeScanner.launch();
+ if (result.barcodeResults.length) {
+ alert(result.barcodeResults[0].text);
+ }
+ }
+ async ngOnDestroy(): Promise {
+ // Dispose of the barcode scanner when the component unmounts
+ this.barcodeScanner?.dispose();
}
}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/angular/src/index.html b/barcode-scanner-api-samples/scan-single-barcode/angular/src/index.html
index 36c25def..bae20c6b 100644
--- a/barcode-scanner-api-samples/scan-single-barcode/angular/src/index.html
+++ b/barcode-scanner-api-samples/scan-single-barcode/angular/src/index.html
@@ -5,7 +5,6 @@
Dynamsoft Barcode Reader Sample - Hello World (Decode via Camera)
-
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/.gitignore b/barcode-scanner-api-samples/scan-single-barcode/blazor/.gitignore
new file mode 100644
index 00000000..e6c4e46a
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/.gitignore
@@ -0,0 +1,486 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from `dotnet new gitignore`
+
+# dotenv files
+.env
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# Tye
+.tye/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.tlog
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio 6 auto-generated project file (contains which files were open etc.)
+*.vbp
+
+# Visual Studio 6 workspace and project file (working project files containing files to include in project)
+*.dsw
+*.dsp
+
+# Visual Studio 6 technical files
+*.ncb
+*.aps
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# Visual Studio History (VSHistory) files
+.vshistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd
+
+# VS Code files for those working on multiple tools
+.vscode/*
+!.vscode/settings.json
+!.vscode/tasks.json
+!.vscode/launch.json
+!.vscode/extensions.json
+*.code-workspace
+
+# Local History for Visual Studio Code
+.history/
+
+# Windows Installer files from build outputs
+*.cab
+*.msi
+*.msix
+*.msm
+*.msp
+
+# JetBrains Rider
+*.sln.iml
+.idea
+
+##
+## Visual studio for Mac
+##
+
+
+# globs
+Makefile.in
+*.userprefs
+*.usertasks
+config.make
+config.status
+aclocal.m4
+install-sh
+autom4te.cache/
+*.tar.gz
+tarballs/
+test-results/
+
+# Mac bundle stuff
+*.dmg
+*.app
+
+# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
+# Windows thumbnail cache files
+Thumbs.db
+ehthumbs.db
+ehthumbs_vista.db
+
+# Dump file
+*.stackdump
+
+# Folder config file
+[Dd]esktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Windows Installer files
+*.cab
+*.msi
+*.msix
+*.msm
+*.msp
+
+# Windows shortcuts
+*.lnk
+
+# Vim temporary swap files
+*.swp
+
+PublishProfiles
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/App.razor b/barcode-scanner-api-samples/scan-single-barcode/blazor/App.razor
new file mode 100644
index 00000000..6fd3ed1b
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/App.razor
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ Not found
+
+ Sorry, there's nothing at this address.
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/BlazorApp.csproj b/barcode-scanner-api-samples/scan-single-barcode/blazor/BlazorApp.csproj
new file mode 100644
index 00000000..8e50d8dc
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/BlazorApp.csproj
@@ -0,0 +1,18 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/Layout/MainLayout.razor b/barcode-scanner-api-samples/scan-single-barcode/blazor/Layout/MainLayout.razor
new file mode 100644
index 00000000..5a584b18
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/Layout/MainLayout.razor
@@ -0,0 +1,4 @@
+@inherits LayoutComponentBase
+
+ @Body
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/Pages/Home.razor b/barcode-scanner-api-samples/scan-single-barcode/blazor/Pages/Home.razor
new file mode 100644
index 00000000..c94ddbd7
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/Pages/Home.razor
@@ -0,0 +1,25 @@
+@page "/"
+@inject IJSRuntime JS
+
+Dynamsoft Barcode Reader Sample - Hello World (Decode via Camera)
+
+Barcode Scanner for Svelte
+
+
+
+@code {
+ // reference: https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/call-javascript-from-dotnet?view=aspnetcore-8.0#invoke-js-functions
+
+
+ protected override async Task OnAfterRenderAsync(bool firstRender)
+ {
+ if (firstRender)
+ {
+ // This code will only run once after the component has rendered.
+ // It's the ideal place to call JavaScript functions that
+ // need access to the rendered HTML.
+ var resultTxt = await JS.InvokeAsync("decodeBarcodeViaCamera");
+ await JS.InvokeVoidAsync("alert", resultTxt);
+ }
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/Program.cs b/barcode-scanner-api-samples/scan-single-barcode/blazor/Program.cs
new file mode 100644
index 00000000..e6ef32a3
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/Program.cs
@@ -0,0 +1,11 @@
+using BlazorApp;
+using Microsoft.AspNetCore.Components.Web;
+using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
+
+var builder = WebAssemblyHostBuilder.CreateDefault(args);
+builder.RootComponents.Add("#app");
+builder.RootComponents.Add("head::after");
+
+builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
+
+await builder.Build().RunAsync();
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/Properties/launchSettings.json b/barcode-scanner-api-samples/scan-single-barcode/blazor/Properties/launchSettings.json
new file mode 100644
index 00000000..e25d8f48
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/Properties/launchSettings.json
@@ -0,0 +1,41 @@
+{
+ "$schema": "http://json.schemastore.org/launchsettings.json",
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:17951",
+ "sslPort": 44366
+ }
+ },
+ "profiles": {
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
+ "applicationUrl": "http://localhost:5244",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
+ "applicationUrl": "https://localhost:7074;http://localhost:5244",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/README.md b/barcode-scanner-api-samples/scan-single-barcode/blazor/README.md
new file mode 100644
index 00000000..c25f2ed6
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/README.md
@@ -0,0 +1,17 @@
+# 📦 Scan Single Barcode - Blazor
+
+This sample demonstrates how to use the `BarcodeScanner` API from the [Dynamsoft Barcode Reader JavaScript SDK](https://www.dynamsoft.com/barcode-reader/overview/javascript/) in a **Blazor** app to scan a single barcode using the camera.
+
+## ✨ Features
+
+- Easy integration with pre-built UI
+- Renders barcodeScanner inside a container
+- Scans one barcode at a time from video
+
+## 📌 Customization
+
+Please refer to sample [`scan-multiple-barcodes`](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-multiple-barcodes) or check the official [documentation](https://dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/barcode-scanner-customization.html).
+
+## 📄 Support
+
+If you have any questions, feel free to [contact Dynamsoft Support](https://www.dynamsoft.com/company/contact?utm_source=sampleReadme).
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/_Imports.razor b/barcode-scanner-api-samples/scan-single-barcode/blazor/_Imports.razor
new file mode 100644
index 00000000..2c3956ad
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/_Imports.razor
@@ -0,0 +1,10 @@
+@using System.Net.Http
+@using System.Net.Http.Json
+@using Microsoft.AspNetCore.Components.Forms
+@using Microsoft.AspNetCore.Components.Routing
+@using Microsoft.AspNetCore.Components.Web
+@using Microsoft.AspNetCore.Components.Web.Virtualization
+@using Microsoft.AspNetCore.Components.WebAssembly.Http
+@using Microsoft.JSInterop
+@using BlazorApp
+@using BlazorApp.Layout
diff --git a/barcode-scanner-api-samples/scan-single-barcode/blazor/wwwroot/index.html b/barcode-scanner-api-samples/scan-single-barcode/blazor/wwwroot/index.html
new file mode 100644
index 00000000..a5e91ce2
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/blazor/wwwroot/index.html
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+ BlazorApp
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/README.md b/barcode-scanner-api-samples/scan-single-barcode/capacitor/README.md
new file mode 100644
index 00000000..24b2f172
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/README.md
@@ -0,0 +1,43 @@
+# 📦 Scan Single Barcode - Capacitor
+
+This sample demonstrates how to use the `BarcodeScanner` API from the [Dynamsoft Barcode Reader JavaScript SDK](https://www.dynamsoft.com/barcode-reader/overview/javascript/) in a **Capacitor** app to scan a single barcode using the camera.
+
+We use typescript and rollup inside capacitor for demonstration. You can use any framework you like, or even vanilla javascript.
+
+## ✨ Features
+
+- Easy integration with pre-built UI
+- Renders barcodeScanner inside a Capacitor container
+- Scans one barcode at a time from video
+
+## 🚀 Quick Start
+
+```bash
+npm install
+npm run build
+npx cap sync
+```
+
+Then build your app in Android Studio and Xcode.
+
+## 👓 Camera Permission
+
+Notice we add camera permission in `AndroidManifest.xml` and `Info.plist`.
+
+[android/app/src/main/AndroidManifest.xml](android/app/src/main/AndroidManifest.xml):
+```xml
+
+```
+[ios/App/App/Info.plist](ios/App/App/Info.plist):
+```xml
+NSCameraUsageDescription
+Decoding barcodes from video needs to access your camera.
+```
+
+## 📌 Customization
+
+Please refer to sample [`scan-multiple-barcodes`](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-multiple-barcodes) or check the official [documentation](https://dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/barcode-scanner-customization.html).
+
+## 📄 Support
+
+If you have any questions, feel free to [contact Dynamsoft Support](https://www.dynamsoft.com/company/contact?utm_source=sampleReadme).
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/.gitignore b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/.gitignore
new file mode 100644
index 00000000..48354a3d
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/.gitignore
@@ -0,0 +1,101 @@
+# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
+
+# Built application files
+*.apk
+*.aar
+*.ap_
+*.aab
+
+# Files for the ART/Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+out/
+# Uncomment the following line in case you need and you don't have the release build type files in your app
+# release/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+# IntelliJ
+*.iml
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/gradle.xml
+.idea/assetWizardSettings.xml
+.idea/dictionaries
+.idea/libraries
+# Android Studio 3 in .gitignore file.
+.idea/caches
+.idea/modules.xml
+# Comment next line if keeping position of elements in Navigation Editor is relevant for you
+.idea/navEditor.xml
+
+# Keystore files
+# Uncomment the following lines if you do not want to check your keystore files in.
+#*.jks
+#*.keystore
+
+# External native build folder generated in Android Studio 2.2 and later
+.externalNativeBuild
+.cxx/
+
+# Google Services (e.g. APIs or Firebase)
+# google-services.json
+
+# Freeline
+freeline.py
+freeline/
+freeline_project_description.json
+
+# fastlane
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
+fastlane/test_output
+fastlane/readme.md
+
+# Version control
+vcs.xml
+
+# lint
+lint/intermediates/
+lint/generated/
+lint/outputs/
+lint/tmp/
+# lint/reports/
+
+# Android Profiling
+*.hprof
+
+# Cordova plugins for Capacitor
+capacitor-cordova-android-plugins
+
+# Copied web assets
+app/src/main/assets/public
+
+# Generated Config files
+app/src/main/assets/capacitor.config.json
+app/src/main/assets/capacitor.plugins.json
+app/src/main/res/xml/config.xml
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/.gitignore b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/.gitignore
new file mode 100644
index 00000000..043df802
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/.gitignore
@@ -0,0 +1,2 @@
+/build/*
+!/build/.npmkeep
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/build.gradle b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/build.gradle
new file mode 100644
index 00000000..a2585f06
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/build.gradle
@@ -0,0 +1,54 @@
+apply plugin: 'com.android.application'
+
+android {
+ namespace "com.dynamsoft.dbrjs"
+ compileSdk rootProject.ext.compileSdkVersion
+ defaultConfig {
+ applicationId "com.dynamsoft.dbrjs"
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ aaptOptions {
+ // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+ // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
+ ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
+ }
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+repositories {
+ flatDir{
+ dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
+ }
+}
+
+dependencies {
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
+ implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
+ implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
+ implementation project(':capacitor-android')
+ testImplementation "junit:junit:$junitVersion"
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
+ implementation project(':capacitor-cordova-android-plugins')
+}
+
+apply from: 'capacitor.build.gradle'
+
+try {
+ def servicesJSON = file('google-services.json')
+ if (servicesJSON.text) {
+ apply plugin: 'com.google.gms.google-services'
+ }
+} catch(Exception e) {
+ logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/capacitor.build.gradle b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/capacitor.build.gradle
new file mode 100644
index 00000000..bbfb44fa
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/capacitor.build.gradle
@@ -0,0 +1,19 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+
+android {
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_21
+ targetCompatibility JavaVersion.VERSION_21
+ }
+}
+
+apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
+dependencies {
+
+
+}
+
+
+if (hasProperty('postBuildExtras')) {
+ postBuildExtras()
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/proguard-rules.pro b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/proguard-rules.pro
new file mode 100644
index 00000000..f1b42451
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..f2c2217e
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import android.content.Context;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+import androidx.test.platform.app.InstrumentationRegistry;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+
+ assertEquals("com.getcapacitor.app", appContext.getPackageName());
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/AndroidManifest.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..4cc824b9
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/java/com/dynamsoft/dbrjs/MainActivity.java b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/java/com/dynamsoft/dbrjs/MainActivity.java
new file mode 100644
index 00000000..f3250895
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/java/com/dynamsoft/dbrjs/MainActivity.java
@@ -0,0 +1,5 @@
+package com.dynamsoft.dbrjs;
+
+import com.getcapacitor.BridgeActivity;
+
+public class MainActivity extends BridgeActivity {}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-hdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-hdpi/splash.png
new file mode 100644
index 00000000..e31573b4
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-hdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-mdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-mdpi/splash.png
new file mode 100644
index 00000000..f7a64923
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-mdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xhdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xhdpi/splash.png
new file mode 100644
index 00000000..80772550
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xhdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xxhdpi/splash.png
new file mode 100644
index 00000000..14c6c8fe
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xxxhdpi/splash.png
new file mode 100644
index 00000000..244ca250
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-hdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-hdpi/splash.png
new file mode 100644
index 00000000..74faaa58
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-hdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-mdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-mdpi/splash.png
new file mode 100644
index 00000000..e944f4ad
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-mdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xhdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xhdpi/splash.png
new file mode 100644
index 00000000..564a82ff
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xhdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xxhdpi/splash.png
new file mode 100644
index 00000000..bfabe687
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xxxhdpi/splash.png
new file mode 100644
index 00000000..69290712
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 00000000..c7bd21db
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 00000000..d5fccc53
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable/splash.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable/splash.png
new file mode 100644
index 00000000..f7a64923
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/drawable/splash.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/layout/activity_main.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..b5ad1387
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..036d09bc
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..036d09bc
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..c023e505
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..2127973b
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..b441f37d
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..72905b85
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..8ed0605c
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..9502e47a
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..4d1e0771
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..df0f1588
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..853db043
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..6cdf97c1
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..2960cbb6
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..8e3093a8
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..46de6e25
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..d2ea9abe
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..a40d73e9
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/ic_launcher_background.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 00000000..c5d5899f
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #FFFFFF
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/strings.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..ced650f8
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,7 @@
+
+
+ dbrjs capacitor
+ dbrjs capacitor
+ com.dynamsoft.dbrjs
+ com.dynamsoft.dbrjs
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/styles.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/styles.xml
new file mode 100644
index 00000000..be874e54
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/xml/file_paths.xml b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/xml/file_paths.xml
new file mode 100644
index 00000000..bd0c4d80
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/main/res/xml/file_paths.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
new file mode 100644
index 00000000..02973278
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
@@ -0,0 +1,18 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/build.gradle b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/build.gradle
new file mode 100644
index 00000000..f1b3b0e5
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/build.gradle
@@ -0,0 +1,29 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:8.7.2'
+ classpath 'com.google.gms:google-services:4.4.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+apply from: "variables.gradle"
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/capacitor.settings.gradle b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/capacitor.settings.gradle
new file mode 100644
index 00000000..9a5fa872
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/capacitor.settings.gradle
@@ -0,0 +1,3 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+include ':capacitor-android'
+project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle.properties b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle.properties
new file mode 100644
index 00000000..2e87c52f
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle.properties
@@ -0,0 +1,22 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle/wrapper/gradle-wrapper.jar b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..a4b76b95
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle/wrapper/gradle-wrapper.properties b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..c1d5e018
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradlew b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradlew
new file mode 100644
index 00000000..f5feea6d
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradlew
@@ -0,0 +1,252 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
+' "$PWD" ) || exit
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradlew.bat b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradlew.bat
new file mode 100644
index 00000000..9d21a218
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/gradlew.bat
@@ -0,0 +1,94 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+@rem SPDX-License-Identifier: Apache-2.0
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/settings.gradle b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/settings.gradle
new file mode 100644
index 00000000..3b4431d7
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/settings.gradle
@@ -0,0 +1,5 @@
+include ':app'
+include ':capacitor-cordova-android-plugins'
+project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
+
+apply from: 'capacitor.settings.gradle'
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/variables.gradle b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/variables.gradle
new file mode 100644
index 00000000..2c8e4083
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/android/variables.gradle
@@ -0,0 +1,16 @@
+ext {
+ minSdkVersion = 23
+ compileSdkVersion = 35
+ targetSdkVersion = 35
+ androidxActivityVersion = '1.9.2'
+ androidxAppCompatVersion = '1.7.0'
+ androidxCoordinatorLayoutVersion = '1.2.0'
+ androidxCoreVersion = '1.15.0'
+ androidxFragmentVersion = '1.8.4'
+ coreSplashScreenVersion = '1.0.1'
+ androidxWebkitVersion = '1.12.1'
+ junitVersion = '4.13.2'
+ androidxJunitVersion = '1.2.1'
+ androidxEspressoCoreVersion = '3.6.1'
+ cordovaAndroidVersion = '10.1.1'
+}
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/capacitor.config.json b/barcode-scanner-api-samples/scan-single-barcode/capacitor/capacitor.config.json
new file mode 100644
index 00000000..72cfd925
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/capacitor.config.json
@@ -0,0 +1,6 @@
+{
+ "appId": "com.dynamsoft.dbrjs",
+ "appName": "dbrjs capacitor",
+ "webDir": "dist",
+ "bundledWebRuntime": true
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/index.ts b/barcode-scanner-api-samples/scan-single-barcode/capacitor/index.ts
new file mode 100644
index 00000000..c1ea6c93
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/index.ts
@@ -0,0 +1,35 @@
+import { BarcodeScanner, BarcodeScannerConfig } from "dynamsoft-barcode-reader-bundle";
+
+// Configuration object for initializing the BarcodeScanner instance
+const config: BarcodeScannerConfig = {
+ license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with your Dynamsoft license key
+
+ // Specify where to render the scanner UI
+ // If container is not specified, the UI will take up the full screen
+ container: document.querySelector(".barcode-scanner-view") as HTMLElement, // Specify where to render the scanner UI
+
+ // Specify the path for the definition file "barcode-scanner.ui.xml" for the scanner view.
+ uiPath: "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.6000/dist/ui/barcode-scanner.ui.xml",
+
+ // showUploadImageButton: true,
+ // scannerViewConfig: {
+ // showFlashButton: true,
+ // cameraSwitchControl: "toggleFrontBack",
+ // },
+
+ // Specify custom paths for the engine resources
+ engineResourcePaths: {
+ rootDirectory: "https://cdn.jsdelivr.net/npm/",
+ },
+};
+
+// Create a new instance of the Dynamsoft Barcode Scanner
+const barcodeScanner = new BarcodeScanner(config);
+
+(async()=>{
+ // Launch the scanner; once a barcode is detected, display its text in an alert
+ let result = await barcodeScanner.launch();
+ if (result.barcodeResults.length) {
+ alert(result.barcodeResults[0].text);
+ }
+})();
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/.gitignore b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/.gitignore
new file mode 100644
index 00000000..f4702997
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/.gitignore
@@ -0,0 +1,13 @@
+App/build
+App/Pods
+App/output
+App/App/public
+DerivedData
+xcuserdata
+
+# Cordova plugins for Capacitor
+capacitor-cordova-ios-plugins
+
+# Generated Config files
+App/App/capacitor.config.json
+App/App/config.xml
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App.xcodeproj/project.pbxproj b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..bf705a81
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App.xcodeproj/project.pbxproj
@@ -0,0 +1,408 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 48;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
+ 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
+ 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
+ 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
+ 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
+ 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
+ 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
+ A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = ""; };
+ 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = ""; };
+ 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; };
+ AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; };
+ FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 504EC3011FED79650016851F /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 504EC2FB1FED79650016851F = {
+ isa = PBXGroup;
+ children = (
+ 504EC3061FED79650016851F /* App */,
+ 504EC3051FED79650016851F /* Products */,
+ 7F8756D8B27F46E3366F6CEA /* Pods */,
+ 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 504EC3051FED79650016851F /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 504EC3041FED79650016851F /* App.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 504EC3061FED79650016851F /* App */ = {
+ isa = PBXGroup;
+ children = (
+ 50379B222058CBB4000EE86E /* capacitor.config.json */,
+ 504EC3071FED79650016851F /* AppDelegate.swift */,
+ 504EC30B1FED79650016851F /* Main.storyboard */,
+ 504EC30E1FED79650016851F /* Assets.xcassets */,
+ 504EC3101FED79650016851F /* LaunchScreen.storyboard */,
+ 504EC3131FED79650016851F /* Info.plist */,
+ 2FAD9762203C412B000D30F8 /* config.xml */,
+ 50B271D01FEDC1A000F3C39B /* public */,
+ );
+ path = App;
+ sourceTree = "";
+ };
+ 7F8756D8B27F46E3366F6CEA /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */,
+ AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */,
+ );
+ name = Pods;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 504EC3031FED79650016851F /* App */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
+ buildPhases = (
+ 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */,
+ 504EC3001FED79650016851F /* Sources */,
+ 504EC3011FED79650016851F /* Frameworks */,
+ 504EC3021FED79650016851F /* Resources */,
+ 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = App;
+ productName = App;
+ productReference = 504EC3041FED79650016851F /* App.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 504EC2FC1FED79650016851F /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 0920;
+ LastUpgradeCheck = 0920;
+ TargetAttributes = {
+ 504EC3031FED79650016851F = {
+ CreatedOnToolsVersion = 9.2;
+ LastSwiftMigration = 1100;
+ ProvisioningStyle = Automatic;
+ };
+ };
+ };
+ buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */;
+ compatibilityVersion = "Xcode 8.0";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 504EC2FB1FED79650016851F;
+ packageReferences = (
+ );
+ productRefGroup = 504EC3051FED79650016851F /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 504EC3031FED79650016851F /* App */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 504EC3021FED79650016851F /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
+ 50B271D11FEDC1A000F3C39B /* public in Resources */,
+ 504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
+ 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
+ 504EC30D1FED79650016851F /* Main.storyboard in Resources */,
+ 2FAD9763203C412B000D30F8 /* config.xml in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 504EC3001FED79650016851F /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 504EC30B1FED79650016851F /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 504EC30C1FED79650016851F /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 504EC3111FED79650016851F /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 504EC3141FED79650016851F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 504EC3151FED79650016851F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 504EC3171FED79650016851F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ INFOPLIST_FILE = App/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ MARKETING_VERSION = 1.0;
+ OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
+ PRODUCT_BUNDLE_IDENTIFIER = com.dynamsoft.dbrjs;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 504EC3181FED79650016851F /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ INFOPLIST_FILE = App/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.dynamsoft.dbrjs;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 504EC3141FED79650016851F /* Debug */,
+ 504EC3151FED79650016851F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 504EC3171FED79650016851F /* Debug */,
+ 504EC3181FED79650016851F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 504EC2FC1FED79650016851F /* Project object */;
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/AppDelegate.swift b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/AppDelegate.swift
new file mode 100644
index 00000000..c3cd83b5
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/AppDelegate.swift
@@ -0,0 +1,49 @@
+import UIKit
+import Capacitor
+
+@UIApplicationMain
+class AppDelegate: UIResponder, UIApplicationDelegate {
+
+ var window: UIWindow?
+
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
+ // Override point for customization after application launch.
+ return true
+ }
+
+ func applicationWillResignActive(_ application: UIApplication) {
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
+ }
+
+ func applicationDidEnterBackground(_ application: UIApplication) {
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+ }
+
+ func applicationWillEnterForeground(_ application: UIApplication) {
+ // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
+ }
+
+ func applicationDidBecomeActive(_ application: UIApplication) {
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+ }
+
+ func applicationWillTerminate(_ application: UIApplication) {
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+ }
+
+ func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
+ // Called when the app was launched with a url. Feel free to add additional processing here,
+ // but if you want the App API to support tracking app url opens, make sure to keep this call
+ return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
+ }
+
+ func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
+ // Called when the app was launched with an activity, including Universal Links.
+ // Feel free to add additional processing here, but if you want the App API to support
+ // tracking app url opens, make sure to keep this call
+ return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler)
+ }
+
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
new file mode 100644
index 00000000..adf6ba01
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..9b7d382d
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,14 @@
+{
+ "images" : [
+ {
+ "filename" : "AppIcon-512@2x.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Contents.json b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Contents.json
new file mode 100644
index 00000000..da4a164c
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
new file mode 100644
index 00000000..d7d96a67
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "splash-2732x2732-2.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "splash-2732x2732-1.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "splash-2732x2732.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png
new file mode 100644
index 00000000..33ea6c97
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png
new file mode 100644
index 00000000..33ea6c97
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png
new file mode 100644
index 00000000..33ea6c97
Binary files /dev/null and b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png differ
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 00000000..e7ae5d78
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Base.lproj/Main.storyboard b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Base.lproj/Main.storyboard
new file mode 100644
index 00000000..b44df7be
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Base.lproj/Main.storyboard
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Info.plist b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Info.plist
new file mode 100644
index 00000000..18184968
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/App/Info.plist
@@ -0,0 +1,51 @@
+
+
+
+
+ NSCameraUsageDescription
+ Decoding barcodes from video needs to access your camera.
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ dbrjs capacitor
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(MARKETING_VERSION)
+ CFBundleVersion
+ $(CURRENT_PROJECT_VERSION)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UIRequiredDeviceCapabilities
+
+ armv7
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/Podfile b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/Podfile
new file mode 100644
index 00000000..bb7762ae
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/ios/App/Podfile
@@ -0,0 +1,24 @@
+require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'
+
+platform :ios, '14.0'
+use_frameworks!
+
+# workaround to avoid Xcode caching of Pods that requires
+# Product -> Clean Build Folder after new Cordova plugins installed
+# Requires CocoaPods 1.6 or newer
+install! 'cocoapods', :disable_input_output_paths => true
+
+def capacitor_pods
+ pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
+ pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
+
+end
+
+target 'App' do
+ capacitor_pods
+ # Add your Pods here
+end
+
+post_install do |installer|
+ assertDeploymentTarget(installer)
+end
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/package.json b/barcode-scanner-api-samples/scan-single-barcode/capacitor/package.json
new file mode 100644
index 00000000..24dd4df7
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "dbrjs-capacitor",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
+ "build": "tsc && rollup -c",
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "@capacitor/android": "^7.4.2",
+ "@capacitor/cli": "^7.4.2",
+ "@capacitor/core": "^7.4.2",
+ "@capacitor/ios": "^7.4.2",
+ "@rollup/plugin-node-resolve": "^15.3.0",
+ "@rollup/plugin-typescript": "^12.1.1",
+ "dynamsoft-barcode-reader-bundle": "11.0.6000",
+ "rollup": "^4.24.0",
+ "tslib": "^2.8.0",
+ "typescript": "^5.6.3"
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/public/index.html b/barcode-scanner-api-samples/scan-single-barcode/capacitor/public/index.html
new file mode 100644
index 00000000..22685d65
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/public/index.html
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+ Dynamsoft Barcode Reader Sample - Hello World (Decode via Camera)
+
+
+
+ Hello World (Scan One Single Barcode via Camera)
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/rollup.config.mjs b/barcode-scanner-api-samples/scan-single-barcode/capacitor/rollup.config.mjs
new file mode 100644
index 00000000..dab19334
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/rollup.config.mjs
@@ -0,0 +1,28 @@
+import fs from 'fs/promises';
+import typescript from "@rollup/plugin-typescript";
+import { nodeResolve } from "@rollup/plugin-node-resolve";
+
+// https://rollupjs.org/guide/en/#configuration-files
+export default async() => {
+ await fs.mkdir("./dist", { recursive: true, force: true });
+ fs.cp("./public/", "./dist/", { recursive: true, force: true })
+ return [
+ {
+ input: "./index.ts",
+ plugins: [
+ typescript({
+ tsconfig: "./tsconfig.json"
+ }),
+ nodeResolve({
+ exportConditions: ["browser", "default", "module", "import"],
+ }),
+ ],
+ output: [
+ {
+ file: "./dist/index.js",
+ format: "umd",
+ },
+ ],
+ },
+ ];
+};
diff --git a/barcode-scanner-api-samples/scan-single-barcode/capacitor/tsconfig.json b/barcode-scanner-api-samples/scan-single-barcode/capacitor/tsconfig.json
new file mode 100644
index 00000000..35e8318a
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/capacitor/tsconfig.json
@@ -0,0 +1,21 @@
+{
+ "compilerOptions": {
+ "target": "es2017",
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
+ "allowJs": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noFallthroughCasesInSwitch": true,
+ "module": "ESNext",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": true,
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/electron/README.md b/barcode-scanner-api-samples/scan-single-barcode/electron/README.md
new file mode 100644
index 00000000..5db7f2f3
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/electron/README.md
@@ -0,0 +1,31 @@
+# 📦 Scan Single Barcode - Electron
+
+This sample demonstrates how to use the `BarcodeScanner` API from the [Dynamsoft Barcode Reader JavaScript SDK](https://www.dynamsoft.com/barcode-reader/overview/javascript/) in a **Electron** app to scan a single barcode using the camera.
+
+## ✨ Features
+
+- Easy integration with pre-built UI
+- Renders barcodeScanner inside a container
+- Scans one barcode at a time from video
+
+## 🚀 Quick Start
+
+### 1. Install Dependencies
+
+```bash
+npm install
+```
+
+### 2. Start the App
+
+```bash
+npm run start
+```
+
+## 📌 Customization
+
+Please refer to sample [`scan-multiple-barcodes`](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-multiple-barcodes) or check the official [documentation](https://dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/barcode-scanner-customization.html).
+
+## 📄 Support
+
+If you have any questions, feel free to [contact Dynamsoft Support](https://www.dynamsoft.com/company/contact?utm_source=sampleReadme).
diff --git a/barcode-scanner-api-samples/scan-single-barcode/electron/action.js b/barcode-scanner-api-samples/scan-single-barcode/electron/action.js
new file mode 100644
index 00000000..5b6f0295
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/electron/action.js
@@ -0,0 +1,22 @@
+// Configuration object for initializing the BarcodeScanner instance. Refer to https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/barcode-scanner.html#barcodescannerconfig
+let config = {
+ license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with your Dynamsoft license key
+ container: document.querySelector(".barcode-scanner-view"), // Specify where to render the scanner UI
+
+ // showUploadImageButton: true,
+ // scannerViewConfig: {
+ // showFlashButton: true,
+ // cameraSwitchControl: "toggleFrontBack",
+ // },
+};
+
+// Create a new instance of the Dynamsoft Barcode Scanner
+const barcodeScanner = new Dynamsoft.BarcodeScanner(config);
+
+// Launch the scanner and handle the scanned result
+barcodeScanner.launch().then((result) => {
+ // Display the first detected barcode's text in an alert
+ if (result.barcodeResults.length) {
+ alert(result.barcodeResults[0].text);
+ }
+});
diff --git a/barcode-scanner-api-samples/scan-single-barcode/electron/index.html b/barcode-scanner-api-samples/scan-single-barcode/electron/index.html
new file mode 100644
index 00000000..5e734485
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/electron/index.html
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+ Dynamsoft Barcode Scanner Sample - Hello World (Decode via Camera)
+
+
+
+
+
+ Hello World (Scan One Single Barcode via Camera)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barcode-scanner-api-samples/scan-single-barcode/electron/main.js b/barcode-scanner-api-samples/scan-single-barcode/electron/main.js
new file mode 100644
index 00000000..452d42f9
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/electron/main.js
@@ -0,0 +1,29 @@
+const { app, BrowserWindow } = require("electron");
+
+function createWindow() {
+ const win = new BrowserWindow({
+ width: 800,
+ height: 600,
+ webPreferences: {
+ nativeWindowOpen: true,
+ },
+ });
+
+ win.loadFile("index.html");
+}
+
+app.whenReady().then(() => {
+ createWindow();
+
+ app.on("activate", () => {
+ if (BrowserWindow.getAllWindows().length === 0) {
+ createWindow();
+ }
+ });
+});
+
+app.on("window-all-closed", () => {
+ if (process.platform !== "darwin") {
+ app.quit();
+ }
+});
diff --git a/barcode-scanner-api-samples/scan-single-barcode/electron/package.json b/barcode-scanner-api-samples/scan-single-barcode/electron/package.json
new file mode 100644
index 00000000..afc17b89
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/electron/package.json
@@ -0,0 +1,26 @@
+{
+ "name": "dbrjs-electron-sample",
+ "version": "1.2.0",
+ "description": "How to read barcodes from a video input in an Electron App",
+ "main": "main.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "start": "electron ."
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Dynamsoft/barcode-reader-javascript-samples.git"
+ },
+ "author": "Dynamsoft",
+ "license": "ISC",
+ "bugs": {
+ "url": "https://github.com/Dynamsoft/barcode-reader-javascript-samples/issues"
+ },
+ "homepage": "https://github.com/Dynamsoft/barcode-reader-javascript-samples#readme",
+ "devDependencies": {
+ "electron": "^26.4.1"
+ },
+ "dependencies": {
+ "dynamsoft-barcode-reader-bundle": "11.0.6000"
+ }
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/electron/style.css b/barcode-scanner-api-samples/scan-single-barcode/electron/style.css
new file mode 100644
index 00000000..917e0cc1
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/electron/style.css
@@ -0,0 +1,6 @@
+#results {
+ width: 100%;
+ height: 10vh;
+ overflow: auto;
+ white-space: pre-wrap;
+}
diff --git a/barcode-scanner-api-samples/scan-single-barcode/es6.html b/barcode-scanner-api-samples/scan-single-barcode/es6.html
new file mode 100644
index 00000000..741ad42e
--- /dev/null
+++ b/barcode-scanner-api-samples/scan-single-barcode/es6.html
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+ Dynamsoft Barcode Scanner Sample - Hello World (Decode via Camera)
+
+
+
+
+
+ Hello World (Scan One Single Barcode via Camera)
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/barcode-scanner-api-samples/scan-single-barcode/hello-world.html b/barcode-scanner-api-samples/scan-single-barcode/hello-world.html
index fc0ade20..019ad007 100644
--- a/barcode-scanner-api-samples/scan-single-barcode/hello-world.html
+++ b/barcode-scanner-api-samples/scan-single-barcode/hello-world.html
@@ -7,13 +7,49 @@
Dynamsoft Barcode Scanner Sample - Hello World (Decode via Camera)
+
+
+
+
+ Hello World (Scan One Single Barcode via Camera)
+
+
+
+
+
+
-
-
-
-
- Hello World (Scan One Single Barcode via Camera)
-
-
-
-
-