Skip to content

Commit 2a27822

Browse files
committed
Updated to version 6.0.3
1 parent d804ef6 commit 2a27822

File tree

2 files changed

+46
-13
lines changed

2 files changed

+46
-13
lines changed

README.md

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,51 @@ The Ver-ID Credentials SDK allows your app to capture an image of the user's ID
77

88
1. [Request an API secret](https://dev.ver-id.com/admin/register) for your app.
99
1. Open your app module's **gradle.build** file.
10-
1. Under `repositories` add
10+
1. Add:
1111

12+
```groovy
13+
repositories {
14+
jcenter()
15+
maven { url 'http://maven.microblink.com' }
16+
maven { url 'https://dev.ver-id.com/artifactory/gradle-release' }
17+
}
1218
```
13-
jcenter()
14-
maven { url 'http://maven.microblink.com' }
15-
maven { url 'https://dev.ver-id.com/artifactory/gradle-release' }
16-
```
17-
1. Under `dependencies` add
19+
1. If your app is targeting Android API level 21+ add:
1820
19-
```
20-
implementation 'com.appliedrec:id-capture:6.0.1'
21-
```
21+
```groovy
22+
dependencies {
23+
implementation 'com.appliedrec:id-capture:6.0.3'
24+
}
25+
```
26+
1. If your app is targeting Android API level 18–21 add:
27+
28+
```groovy
29+
dependencies {
30+
implementation 'com.appliedrec:id-capture-api18:6.0.3'
31+
}
32+
```
33+
1. If you need to support both Android API level 18–20 and 21+ you may want to create product flavours. For example:
34+
35+
```groovy
36+
android {
37+
flavorDimensions "apiLevel"
38+
productFlavors {
39+
api18 {
40+
dimension "apiLevel"
41+
minSdkVersion 18
42+
maxSdkVersion 20
43+
}
44+
api21 {
45+
dimension "apiLevel"
46+
minSdkVersion 21
47+
}
48+
}
49+
}
50+
dependencies {
51+
api21Implementation 'com.appliedrec:id-capture:6.0.3'
52+
api18Implementation 'com.appliedrec:id-capture-api18:6.0.3'
53+
}
54+
```
2255
1. Open your app's **AndroidManifest.xml** file and add the following tag in `<application>` replacing `[your API secret]` with the API secret your received in step 1:
2356

2457
~~~xml

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ android {
1919

2020
defaultConfig {
2121
applicationId "com.appliedrec.idcapturesample"
22-
minSdkVersion 18
22+
minSdkVersion 21
2323
targetSdkVersion 28
2424
versionCode 1
25-
versionName "6.0.2"
25+
versionName "6.0.3"
2626

2727
}
2828
buildTypes {
@@ -47,8 +47,8 @@ repositories {
4747
}
4848

4949
dependencies {
50-
implementation 'com.appliedrec:id-capture:6.0.2'
51-
implementation 'com.appliedrec.verid:ui:1.7.10'
50+
implementation 'com.appliedrec:id-capture:6.0.3'
51+
implementation 'com.appliedrec.verid:ui:1.7.11'
5252
implementation 'com.android.support:appcompat-v7:28.0.0'
5353
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
5454
}

0 commit comments

Comments
 (0)