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

Releases: bobekos/SimpleBarcodeScanner

1.0.23

17 Apr 16:38
Compare
Choose a tag to compare

Fix

  • Check if observable has been disposed before initial camera

1.0.22

25 Feb 21:15
Compare
Choose a tag to compare

Fix

  • In the last update the camera was not released at dispose. Only barcode detection was deactivated. This has been corrected now. To prevent the camera preview from being released the attribute "holdCameraOnDispose" has been added.

Features

1.0.21

14 Jan 18:20
d82bd26
Compare
Choose a tag to compare

Fix

  • fix when multiple surface listeners were add and called
  • surround camera release function with try catch block thx @JanStoltman
  • the barcode detector is now also released
  • release the camera outside the subscription to allow single emit

1.0.20

06 Dec 17:11
Compare
Choose a tag to compare

Features

1.0.19

10 Sep 22:56
dfe28de
Compare
Choose a tag to compare

Fix

  • revert #5 pull request to support androidx
    I see no reason to get this library ready for androidx. All older projects would have to be upgraded to compile version 28. If you want to use androix you should use android.enableJetifier=true instead.

1.0.18

10 Sep 22:02
69b2858
Compare
Choose a tag to compare

Bugs

  • Fixed #3

Features

1.0.17

01 Aug 19:19
47fd550
Compare
Choose a tag to compare

Features

  • Add layout custom attributes to set the config (see Readme file)

1.0.16

17 Jul 09:17
Compare
Choose a tag to compare

Handling the surface holder subscription on the main thread to avoid crashes when the app recreate the view (CalledFromWrongThreadException)

1.0.15

03 Jul 09:07
Compare
Choose a tag to compare

Method changes

setPreviewSize(width: Int, height: Int)

Takes now display width and height as default values. The surface size is now calculated to the correct dimensions without hurting the aspect ratio from camera preview.

Bugs

  • Fix the issue with wrong aspect ratio
  • Fix portrait / landscape overlay drawing

1.0.14

29 Jun 11:25
7d4eb7e
Compare
Choose a tag to compare

Add methods:

.setBeepSound(true)

Play Beep sound at barcode detection. Default value is true

.setVibration(500L)

Vibrate at barcode detection. Default value is 500ms.