0.0.14 • Published 7 months ago

@team_yumi/code-scanner v0.0.14

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

code-scanner

This library was generated with Nx.

Building

Run nx build code-scanner to build the library.

Running unit tests

Run nx test code-scanner to execute the unit tests via Jest.

Barcode Scanner

Instalation and Config

iOS

For iOS you need to set a usage description in your info.plist file.

This can be done by either adding it to the Source Code directly or by using Xcode Property List inspector.

Adding it to the source code directly

Open up the Info.plist (in Xcode right-click > Open As > Source Code) With change the following

<dict>
+  <key>NSCameraUsageDescription</key>
+  <string>To be able to scan barcodes</string>
</dict>

NOTE: "To be able to scan barcodes" can be substituted for anything you like.

Adding it by using Xcode Property List inspector

Open up the Info.plist in Xcode (right-click > Open As > Property List) Next to "Information Property List" click on the tiny + button. Under key, type "Privacy - Camera Usage Description" Under value, type "To be able to scan barcodes" NOTE: "To be able to scan barcodes" can be substituted for anything you like.

More info here: https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription

Android

Within your AndroidManifest.xml file, change the following:

<?xml version="1.0" encoding="utf-8"?>
<manifest
  xmlns:android="http://schemas.android.com/apk/res/android"
+  xmlns:tools="http://schemas.android.com/tools"
  package="com.example">

  <application
+    android:hardwareAccelerated="true"
  >
  </application>

+  <uses-permission android:name="android.permission.CAMERA" />

+  <uses-sdk tools:overrideLibrary="com.google.zxing.client.android" />
</manifest>

How to use

Code example

0.0.14

7 months ago

0.0.11

7 months ago

0.0.7

8 months ago

0.0.6

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago