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

v1.3.0

Latest
Compare
Choose a tag to compare
@alistairsykes alistairsykes released this 12 Jul 12:15
· 3 commits to master since this release
d16454f

Headline Features

Tap to Focus, Camera Flash Mode, Firebase ML to Play Services MLKit

Migration

Migrating to version 1.3.0 of KBarcode does involve a couple of small changes to your code.

ScaleType to PreviewScaleType

We have renamed all uses of ScaleType to PreviewScaleType. This clarifies more precisely what this attribute does. It also means
KBarcode shouldn't clash with camerax lib should you have both installed. The behaviour of this attribute hasn't changed.

Depending on exactly how you've implemented KBarcode, you should simply be able to replace your use like for like. For example:
XML: app:scaleType="centerInside" -> app:previewScaleType="centerInside"
Kotlin: .scaleType(BarcodeView.CENTER_INSIDE) -> .previewScaleType(BarcodeView.CENTER_INSIDE)

Deprecated setBarcodeFormats removal

The deprecated setBarcodeFormats method which was deprecated in 1.0.3 has now been removed. Please make use of the IntArray replacement for this method.
KBarcode/releases/tag/v1.0.3

Changes