Skip to content

Commit 4d60b74

Browse files
authored
Adjust barcode detection area (#103)
1 parent 30a8ec5 commit 4d60b74

File tree

6 files changed

+224
-136
lines changed

6 files changed

+224
-136
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55
### Added
66
### Changed
77
* ui: Set the screen orientation of the 'CheckoutActivity' to 'userPortrait'
8+
* ui: Adjust detection rect implementation
9+
* ui: Speed up ZXing's barcode by using TRY_HARDER mode
810

911
### Removed
1012
### Fixed

ui/build.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ android {
5454
}
5555

5656
dependencies {
57+
def kotest_version = '5.4.0'
58+
5759
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${project.desugarVersion}"
5860

5961
implementation project(':utils')
@@ -91,7 +93,7 @@ dependencies {
9193
//noinspection GradleDependency
9294
implementation 'commons-io:commons-io:2.5'
9395
//noinspection GradleDependency
94-
implementation 'com.google.zxing:core:3.3.3'
96+
implementation 'com.google.zxing:core:3.5.1'
9597
implementation 'com.squareup.picasso:picasso:2.8'
9698

9799
androidTestImplementation 'androidx.test:runner:1.4.0'
@@ -112,4 +114,14 @@ dependencies {
112114

113115
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1'
114116
implementation 'androidx.lifecycle:lifecycle-runtime-compose:2.6.0-alpha02'
117+
118+
testImplementation "io.kotest:kotest-runner-junit5:$kotest_version"
119+
testImplementation "io.kotest:kotest-assertions-core:$kotest_version"
120+
testImplementation 'io.mockk:mockk:1.13.3'
121+
}
122+
123+
android.testOptions {
124+
unitTests.all {
125+
useJUnitPlatform()
126+
}
115127
}

0 commit comments

Comments
 (0)