diff --git a/README.md b/README.md index 29a8a72..3bbc1c4 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Code scanner library for [Android](https://developer.android.com), based on [ZXi Add dependency: ```gradle dependencies { - implementation 'com.budiyev.android:code-scanner:2.0.1' + implementation 'com.budiyev.android:code-scanner:2.1.0' } ``` 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: app:flashButtonVisible="true" app:frameColor="@android:color/white" app:frameCornersSize="50dp" + app:frameCornersRadius="0dp" app:frameAspectRatioWidth="1" app:frameAspectRatioHeight="1" app:frameSize="0.75" diff --git a/build.gradle b/build.gradle index 2351145..3a6af19 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ apply plugin: 'com.jfrog.bintray' ext { libraryName = 'CodeScanner' libraryDescription = 'Code scanner library for Android, based on ZXing' - libraryVersion = '2.0.1' + libraryVersion = '2.1.0' artifact = 'code-scanner' developerId = 'yuriy-budiyev' developerName = 'Yuriy Budiyev' @@ -46,7 +46,7 @@ android { defaultConfig { minSdkVersion 19 targetSdkVersion 28 - versionCode 56 + versionCode 57 versionName libraryVersion } diff --git a/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java b/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java index d8f26dc..a3bbb5d 100644 --- a/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java +++ b/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java @@ -305,9 +305,9 @@ public int getFrameCornersSize() { } /** - * Set length on the frame corners + * Set size of the frame corners * - * @param size Length in pixels + * @param size Size in pixels */ public void setFrameCornersSize(@Px final int size) { if (size < 0) { @@ -329,7 +329,7 @@ public int getFrameCornersRadius() { /** * Set current frame corners radius * - * @param radius Frame corners radius + * @param radius Frame corners radius in pixels */ public void setFrameCornersRadius(@Px final int radius) { if (radius < 0) {