File tree Expand file tree Collapse file tree 2 files changed +46
-13
lines changed Expand file tree Collapse file tree 2 files changed +46
-13
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,51 @@ The Ver-ID Credentials SDK allows your app to capture an image of the user's ID
7
7
8
8
1 . [ Request an API secret] ( https://dev.ver-id.com/admin/register ) for your app.
9
9
1 . Open your app module's ** gradle.build** file.
10
- 1 . Under ` repositories ` add
10
+ 1 . Add:
11
11
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
+ }
12
18
```
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:
18
20
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
+ ```
22
55
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:
23
56
24
57
~~~ xml
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ android {
19
19
20
20
defaultConfig {
21
21
applicationId " com.appliedrec.idcapturesample"
22
- minSdkVersion 18
22
+ minSdkVersion 21
23
23
targetSdkVersion 28
24
24
versionCode 1
25
- versionName " 6.0.2 "
25
+ versionName " 6.0.3 "
26
26
27
27
}
28
28
buildTypes {
@@ -47,8 +47,8 @@ repositories {
47
47
}
48
48
49
49
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 '
52
52
implementation ' com.android.support:appcompat-v7:28.0.0'
53
53
implementation ' com.android.support.constraint:constraint-layout:1.1.3'
54
54
}
You can’t perform that action at this time.
0 commit comments