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
- Dependency updates
- Build tools
3.6.1
->4.2.1
- Gradle
5.6.4
->6.7.1
- Kotlin
1.3.71
->1.4.32
- Google services
4.3.3
->4.3.8
- Build tools
- Library dependency updates
- Coroutines
1.3.4
->1.4.3
- Various test dependencies
- Coroutines
- Sample app dependency updates
- Material
1.1.0
->1.3.0
- Constraint layout
1.1.3
->2.0.4
- Firebase migrated to BOM
28.1.0
- Lifecycle-common-java8
2.2.0
->2.3.1
- Various test dependencies
- Material
- Removed JCenter
- Compile and target SDK
29
->30
- Migrated
firebase-ml-vision
toplay-services-mlkit-barcode-scanning
#39 - Added Camera Flash Mode feature #28
KBarcode/wiki/Reference#camera-flash-mode - Added Tap To Focus feature #11
KBarcode/wiki/Reference#clear-focus-delay
KBarcode/wiki/Under-the-Hood#tap-to-focus
How has ‘Tap to Focus’ evolved over the years on Android? - Set library into Kotlin explicit api mode
- Renamed ScaleType to PreviewScaleType
- Added a CameraX example
CameraX: An Introduction - Removed synthetics in favour of view binding. Guide