Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Releases: capacitor-community/barcode-scanner

v2.0.1

11 Jun 14:35
f7cf711
Compare
Choose a tag to compare

Fixes

  • 🐛 a7082b3 define callback for openAppSettings to fix #46 (#47)

v2.0.0

04 Jun 13:10
a020fd2
Compare
Choose a tag to compare

🚀 This release adds support for Capacitor 3

How to migrate from v1 to v2?

Update your main package

First of all, you should make sure you have followed all the steps of the official Capacitor docs to migrate your main app to Capacitor 3.0, if you haven't already. Read more about this here.

Upgrade this package through npm

Run

npm install @capacitor-community/barcode-scanner@latest
npx cap sync

from your terminal.

Troubleshooting

If XCode or Android Studio give any errors after upgrading, check: troubleshooting

(Android) Registering plugin in MainActivity

From Capacitor 3 on, it is not necessary anymore to register the plugin manually in MainActivity. So you can remove the following lines from your MainActivity.java:

import com.dutchconcepts.capacitor.barcodescanner.BarcodeScanner;
add(BarcodeScanner.class);

Read more about this here

Plugin import

Additionally you can, but are not required to, change how you import this plugin.

Old way:

import { Plugins } from '@capacitor/core';
const { BarcodeScanner } = Plugins;

New way:

import { BarcodeScanner } from '@capacitor-community/barcode-scanner';

Read more about this here

Breaking changes

Error message unimplemented methods on web

The Error being thrown for unimplemented web method is a little different now (diff).

Old error message: method not available in web
New error message: Not implemented on web.

TypeScript definitions

Some TypeScript definitions were incorrect and are fixed now (diff)

v1.2.1

16 Mar 15:51
ca12c05
Compare
Choose a tag to compare

==== IMPORTANT RELEASE NOTE ====
🚀 From this release on the package is hosted under @capacitor-community

Please run the following commands to update:

npm uninstall @dutchconcepts/capacitor-barcode-scanner
npm install @capacitor-community/barcode-scanner
npx cap sync

That's it 💯

==== ====

Features

  • 0006029 add support for specifying specific targeted formats (#19)

v1.2.0-alpha.2

21 Jan 12:29
Compare
Choose a tag to compare
v1.2.0-alpha.2 Pre-release
Pre-release
🔖 v1.2.0-alpha.2

v1.1.1

11 Dec 10:28
Compare
Choose a tag to compare

Features

  • 2968dce [ios] add support for all types of barcodes (#8)

Fixes

  • ⬆️ a9e0c48 Bump ini from 1.3.5 to 1.3.7 (#9)

v1.0.1

10 Dec 15:00
Compare
Choose a tag to compare

Fixes

  • 🐛 [ios] fix bug that caused pod to not be recognized correctly

v1.0.1-alpha.0

10 Dec 14:42
Compare
Choose a tag to compare
v1.0.1-alpha.0 Pre-release
Pre-release
🔖 v1.0.1-alpha.0

🎉 v1.0.0

09 Dec 10:23
Compare
Choose a tag to compare

The first production safe and thoroughly tested version is out now!

v1.0.0-alpha.6

02 Dec 10:08
Compare
Choose a tag to compare
v1.0.0-alpha.6 Pre-release
Pre-release

Features

  • 91b45b8 add permissions utilities (#2)
  • fcb8c1c add a layout example
  • 📝 a38c4ec add Table of Contents to readme

v1.0.0-alpha.5

01 Dec 11:13
Compare
Choose a tag to compare
v1.0.0-alpha.5 Pre-release
Pre-release

test release for permission utils