Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed Dec 6, 2018
1 parent 92930fa commit 8854a64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -46,7 +46,7 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
versionCode 56
versionCode 57
versionName libraryVersion
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 8854a64

Please sign in to comment.