Skip to content

Commit 8854a64

Browse files
committed
Dev
1 parent 92930fa commit 8854a64

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Code scanner library for [Android](https://developer.android.com), based on [ZXi
3030
Add dependency:
3131
```gradle
3232
dependencies {
33-
implementation 'com.budiyev.android:code-scanner:2.0.1'
33+
implementation 'com.budiyev.android:code-scanner:2.1.0'
3434
}
3535
```
3636
Add camera permission to AndroidManifest.xml (Don't forget about dynamic permissions on API >= 23):
@@ -56,6 +56,7 @@ Define a view in your layout file:
5656
app:flashButtonVisible="true"
5757
app:frameColor="@android:color/white"
5858
app:frameCornersSize="50dp"
59+
app:frameCornersRadius="0dp"
5960
app:frameAspectRatioWidth="1"
6061
app:frameAspectRatioHeight="1"
6162
app:frameSize="0.75"

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.jfrog.bintray'
2525
ext {
2626
libraryName = 'CodeScanner'
2727
libraryDescription = 'Code scanner library for Android, based on ZXing'
28-
libraryVersion = '2.0.1'
28+
libraryVersion = '2.1.0'
2929
artifact = 'code-scanner'
3030
developerId = 'yuriy-budiyev'
3131
developerName = 'Yuriy Budiyev'
@@ -46,7 +46,7 @@ android {
4646
defaultConfig {
4747
minSdkVersion 19
4848
targetSdkVersion 28
49-
versionCode 56
49+
versionCode 57
5050
versionName libraryVersion
5151
}
5252

src/main/java/com/budiyev/android/codescanner/CodeScannerView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ public int getFrameCornersSize() {
305305
}
306306

307307
/**
308-
* Set length on the frame corners
308+
* Set size of the frame corners
309309
*
310-
* @param size Length in pixels
310+
* @param size Size in pixels
311311
*/
312312
public void setFrameCornersSize(@Px final int size) {
313313
if (size < 0) {
@@ -329,7 +329,7 @@ public int getFrameCornersRadius() {
329329
/**
330330
* Set current frame corners radius
331331
*
332-
* @param radius Frame corners radius
332+
* @param radius Frame corners radius in pixels
333333
*/
334334
public void setFrameCornersRadius(@Px final int radius) {
335335
if (radius < 0) {

0 commit comments

Comments
 (0)