Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Mar 8, 2022
1 parent c9ebd00 commit 34bec9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ dependencyResolutionManagement {
Step 2. Add dependency:
```gradle
dependencies {
implementation 'com.github.yuriy-budiyev:code-scanner:2.1.1'
implementation 'com.github.yuriy-budiyev:code-scanner:2.1.2'
}
```
Add camera permission to AndroidManifest.xml (Don't forget about dynamic permissions on API >= 23):
Add camera permission and hardware feature to AndroidManifest.xml (Don't forget about dynamic permissions on API >= 23):
```xml
<uses-permission android:name="android.permission.CAMERA"/>

<uses-feature
android:name="android.hardware.camera"
android:required="false"/>
```
Define a view in your layout file:
```xml
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {

dependencies {

classpath 'com.android.tools.build:gradle:7.1.1'
classpath 'com.android.tools.build:gradle:7.1.2'
}
}

Expand All @@ -27,7 +27,7 @@ apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

ext {
libraryVersion = '2.1.1'
libraryVersion = '2.1.2'
publishedGroupId = 'com.budiyev.android'
}

Expand All @@ -41,7 +41,7 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 31
versionCode 58
versionCode 59
versionName libraryVersion
}

Expand Down

0 comments on commit 34bec9c

Please sign in to comment.