Code Scanner
Description
The Code Scanner example is intended to familiarize developers with the use of the mobile_scanner plugin and shows how to integrate it into an application for scanning linear and two-dimensional barcodes. The application for example allows simultaneous scanning of:
- Barcodes.
- QR code.
The scanned barcodes are saved in a list and are available on a separate page. When you open the application, the saved data is loaded. If the code is a link, you can click on it.
Table of Contents
- Compatibility
- Branch info
- Install and launch
- Screenshots
- Project Structure
- Terms of Use and Participation in Development
Compatibility
The project is compatible with version 5.0.0 of the Aurora OS.
Branch info
Application versions conform to the branch naming convention
Install and launch
Permissions
Dependencies must be written in the .spec file to build the package:
BuildRequires: pkgconfig(runtime-manager-qt5)
BuildRequires: pkgconfig(flutter-embedder)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(streamcamera)
BuildRequires: pkgconfig(gstreamer-app-1.0)
After the build, when installing the package, explicitly removing these dependencies is required for the validator to skip the plug-in libraries:
%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$
%global __requires_exclude ^lib(ZXing|jpeg|yuv|dconf|flutter-embedder|maliit-glib|.+_platform_plugin|gstreamer-1.0)\\.so.*$
The application needs to have permissions on UserDirs, Videos and Camera in order to run. These permissions are set in the
.desktop file.
[X-Application]
Permissions=UserDirs;Videos;Camera
Screenshots
Project Structure
The project has a standard application structure based on Dart and Flutter for Aurora OS.
- The aurora directory contains C++ source code and resources needed for installation.
- The lib directory contains Dart plugin source code.
- The pubspec.yaml file describes dependencies and plugin name settings.
Terms of Use and Participation in Development
The source code of the project is provided under license, which allows to use it in third-party applications.
To participate in the development of the project, please read the member agreement. If you plan to submit your own source code for inclusion in the project, you will need to accept the CLA terms and conditions.
Participant information is listed in the AUTHORS file.
The Code of Conduct is the current set of rules of the Open Mobile Platform Company, which informs about the expectations for interaction between community members when communicating and working on projects.


