@idpass/smartscanner-capacitor 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/IdpassSmartscannerCapacitor.podspec +17 -17
- package/LICENSE +201 -201
- package/README.md +125 -125
- package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.npmignore +1 -1
- package/android/.project +28 -0
- package/android/build.gradle +151 -151
- package/android/gradle/wrapper/gradle-wrapper.properties +6 -6
- package/android/gradle.properties +22 -22
- package/android/gradlew +188 -188
- package/android/proguard-rules.pro +21 -21
- package/android/settings.gradle +1 -1
- package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +28 -28
- package/android/src/main/AndroidManifest.xml +2 -2
- package/android/src/main/java/org/idpass/smartscanner/capacitor/SmartScannerPlugin.kt +75 -75
- package/android/src/main/res/layout/bridge_layout_main.xml +13 -13
- package/android/src/main/res/values/colors.xml +3 -3
- package/android/src/main/res/values/strings.xml +3 -3
- package/android/src/main/res/values/styles.xml +3 -3
- package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +18 -18
- package/ios/.npmignore +3 -3
- package/ios/Plugin/Info.plist +24 -24
- package/ios/Plugin/Plugin.h +10 -10
- package/ios/Plugin/Plugin.m +8 -8
- package/ios/Plugin/Plugin.swift +17 -17
- package/ios/Plugin.xcodeproj/project.pbxproj +554 -554
- package/ios/PluginTests/Info.plist +22 -22
- package/ios/PluginTests/PluginTests.swift +35 -35
- package/ios/Podfile +16 -16
- package/package.json +8 -9
- package/android/.DS_Store +0 -0
package/README.md
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
# SmartScanner Capacitor
|
|
2
|
-
|
|
3
|
-
Capacitor plugin for the [SmartScanner Core](https://github.com/idpass/smartscanner-core) library to scan MRZ, NFC and barcodes.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
This plugin can be installed from NPM:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
# Using npm
|
|
11
|
-
npm install @idpass/smartscanner-capacitor
|
|
12
|
-
|
|
13
|
-
# Using yarn
|
|
14
|
-
yarn add @idpass/smartscanner-capacitor
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
The plugin can be used by accessing SmartScannerPlugin from @idpass/smartscanner-capacitor directly.
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
import { SmartScannerPlugin } from '@idpass/smartscanner-capacitor';
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
MRZ scanning example:
|
|
27
|
-
|
|
28
|
-
```js
|
|
29
|
-
const result = await SmartScannerPlugin.executeScanner({
|
|
30
|
-
action: 'START_SCANNER',
|
|
31
|
-
options: {
|
|
32
|
-
mode: 'mrz',
|
|
33
|
-
mrzFormat: 'MRTD_TD1',
|
|
34
|
-
config: {
|
|
35
|
-
background: '#89837c',
|
|
36
|
-
branding: false,
|
|
37
|
-
isManualCapture: true,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
OCR scanning example:
|
|
44
|
-
|
|
45
|
-
```js
|
|
46
|
-
const result = await SmartScannerPlugin.executeScanner({
|
|
47
|
-
action: 'START_SCANNER',
|
|
48
|
-
options: {
|
|
49
|
-
mode: 'ocr',
|
|
50
|
-
ocrOptions: {
|
|
51
|
-
type: 'documentNumber',
|
|
52
|
-
regex: '\\d{4} \\d{4} \\d{5}'
|
|
53
|
-
},
|
|
54
|
-
config: {
|
|
55
|
-
background: '#89837c',
|
|
56
|
-
branding: false,
|
|
57
|
-
isManualCapture: false, //if true user will be required to tap the capture button
|
|
58
|
-
showGuide: true, //values below will only be used when this is set to true
|
|
59
|
-
xGuide: 0.8, //accepts values from 0.0 - 1.0. Offsets the guide horizontally based on percentage.
|
|
60
|
-
yGuide: 0.5, //accepts values from 0.0 - 1.0. Offsets the guide vertically based on percentage.
|
|
61
|
-
widthGuide: 150, //sets the guide width. Default is 150
|
|
62
|
-
heightGuide: 40 //sets the guide height. Default is 40
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
NFC scanning example:
|
|
69
|
-
|
|
70
|
-
```js
|
|
71
|
-
const result = await SmartScannerPlugin.executeScanner({
|
|
72
|
-
action: 'START_SCANNER',
|
|
73
|
-
options: {
|
|
74
|
-
mode: 'nfc-scan',
|
|
75
|
-
config: {
|
|
76
|
-
background: '#89837c',
|
|
77
|
-
branding: false,
|
|
78
|
-
isManualCapture: false,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Barcode scanning example:
|
|
85
|
-
|
|
86
|
-
```js
|
|
87
|
-
const result = await SmartScannerPlugin.executeScanner({
|
|
88
|
-
action: 'START_SCANNER',
|
|
89
|
-
options: {
|
|
90
|
-
mode: 'barcode',
|
|
91
|
-
barcodeOptions: {
|
|
92
|
-
barcodeFormats: [
|
|
93
|
-
'AZTEC',
|
|
94
|
-
'CODABAR',
|
|
95
|
-
'CODE_39',
|
|
96
|
-
'CODE_93',
|
|
97
|
-
'CODE_128',
|
|
98
|
-
'DATA_MATRIX',
|
|
99
|
-
'EAN_8',
|
|
100
|
-
'EAN_13',
|
|
101
|
-
'QR_CODE',
|
|
102
|
-
'UPC_A',
|
|
103
|
-
'UPC_E',
|
|
104
|
-
'PDF_417',
|
|
105
|
-
],
|
|
106
|
-
},
|
|
107
|
-
config: {
|
|
108
|
-
background: '#ffc234',
|
|
109
|
-
label: 'Sample Label',
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
Refer to the [API Reference](https://github.com/idpass/smartscanner-capacitor/wiki/API-Reference) for more information about the available API options and the returned result.
|
|
116
|
-
|
|
117
|
-
## Related projects
|
|
118
|
-
|
|
119
|
-
- [smartscanner-core](https://github.com/idpass/smartscanner-core) - Android library for scanning MRZ, OCR, Barcode, and ID PASS Lite cards
|
|
120
|
-
- [smartscanner-android-api](https://github.com/idpass/smartscanner-android-api) - Provides convenience methods to simplify the SmartScanner intent call out process
|
|
121
|
-
- [smartscanner-cordova](https://github.com/idpass/smartscanner-cordova) - SmartScanner [Cordova](https://cordova.apache.org/) plugin
|
|
122
|
-
|
|
123
|
-
## License
|
|
124
|
-
|
|
125
|
-
[Apache-2.0 License](LICENSE)
|
|
1
|
+
# SmartScanner Capacitor
|
|
2
|
+
|
|
3
|
+
Capacitor plugin for the [SmartScanner Core](https://github.com/idpass/smartscanner-core) library to scan MRZ, NFC and barcodes.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
This plugin can be installed from NPM:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Using npm
|
|
11
|
+
npm install @idpass/smartscanner-capacitor
|
|
12
|
+
|
|
13
|
+
# Using yarn
|
|
14
|
+
yarn add @idpass/smartscanner-capacitor
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
The plugin can be used by accessing SmartScannerPlugin from @idpass/smartscanner-capacitor directly.
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import { SmartScannerPlugin } from '@idpass/smartscanner-capacitor';
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
MRZ scanning example:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
const result = await SmartScannerPlugin.executeScanner({
|
|
30
|
+
action: 'START_SCANNER',
|
|
31
|
+
options: {
|
|
32
|
+
mode: 'mrz',
|
|
33
|
+
mrzFormat: 'MRTD_TD1',
|
|
34
|
+
config: {
|
|
35
|
+
background: '#89837c',
|
|
36
|
+
branding: false,
|
|
37
|
+
isManualCapture: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
OCR scanning example:
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
const result = await SmartScannerPlugin.executeScanner({
|
|
47
|
+
action: 'START_SCANNER',
|
|
48
|
+
options: {
|
|
49
|
+
mode: 'ocr',
|
|
50
|
+
ocrOptions: {
|
|
51
|
+
type: 'documentNumber',
|
|
52
|
+
regex: '\\d{4} \\d{4} \\d{5}'
|
|
53
|
+
},
|
|
54
|
+
config: {
|
|
55
|
+
background: '#89837c',
|
|
56
|
+
branding: false,
|
|
57
|
+
isManualCapture: false, //if true user will be required to tap the capture button
|
|
58
|
+
showGuide: true, //values below will only be used when this is set to true
|
|
59
|
+
xGuide: 0.8, //accepts values from 0.0 - 1.0. Offsets the guide horizontally based on percentage.
|
|
60
|
+
yGuide: 0.5, //accepts values from 0.0 - 1.0. Offsets the guide vertically based on percentage.
|
|
61
|
+
widthGuide: 150, //sets the guide width. Default is 150
|
|
62
|
+
heightGuide: 40 //sets the guide height. Default is 40
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
NFC scanning example:
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
const result = await SmartScannerPlugin.executeScanner({
|
|
72
|
+
action: 'START_SCANNER',
|
|
73
|
+
options: {
|
|
74
|
+
mode: 'nfc-scan',
|
|
75
|
+
config: {
|
|
76
|
+
background: '#89837c',
|
|
77
|
+
branding: false,
|
|
78
|
+
isManualCapture: false,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Barcode scanning example:
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
const result = await SmartScannerPlugin.executeScanner({
|
|
88
|
+
action: 'START_SCANNER',
|
|
89
|
+
options: {
|
|
90
|
+
mode: 'barcode',
|
|
91
|
+
barcodeOptions: {
|
|
92
|
+
barcodeFormats: [
|
|
93
|
+
'AZTEC',
|
|
94
|
+
'CODABAR',
|
|
95
|
+
'CODE_39',
|
|
96
|
+
'CODE_93',
|
|
97
|
+
'CODE_128',
|
|
98
|
+
'DATA_MATRIX',
|
|
99
|
+
'EAN_8',
|
|
100
|
+
'EAN_13',
|
|
101
|
+
'QR_CODE',
|
|
102
|
+
'UPC_A',
|
|
103
|
+
'UPC_E',
|
|
104
|
+
'PDF_417',
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
config: {
|
|
108
|
+
background: '#ffc234',
|
|
109
|
+
label: 'Sample Label',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Refer to the [API Reference](https://github.com/idpass/smartscanner-capacitor/wiki/API-Reference) for more information about the available API options and the returned result.
|
|
116
|
+
|
|
117
|
+
## Related projects
|
|
118
|
+
|
|
119
|
+
- [smartscanner-core](https://github.com/idpass/smartscanner-core) - Android library for scanning MRZ, OCR, Barcode, and ID PASS Lite cards
|
|
120
|
+
- [smartscanner-android-api](https://github.com/idpass/smartscanner-android-api) - Provides convenience methods to simplify the SmartScanner intent call out process
|
|
121
|
+
- [smartscanner-cordova](https://github.com/idpass/smartscanner-cordova) - SmartScanner [Cordova](https://cordova.apache.org/) plugin
|
|
122
|
+
|
|
123
|
+
## License
|
|
124
|
+
|
|
125
|
+
[Apache-2.0 License](LICENSE)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
package/android/.npmignore
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/build
|
|
1
|
+
/build
|
package/android/.project
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<projectDescription>
|
|
3
|
+
<name>idpass-smartscanner-capacitor</name>
|
|
4
|
+
<comment>Project idpass-smartscanner-capacitor created by Buildship.</comment>
|
|
5
|
+
<projects>
|
|
6
|
+
</projects>
|
|
7
|
+
<buildSpec>
|
|
8
|
+
<buildCommand>
|
|
9
|
+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
|
10
|
+
<arguments>
|
|
11
|
+
</arguments>
|
|
12
|
+
</buildCommand>
|
|
13
|
+
</buildSpec>
|
|
14
|
+
<natures>
|
|
15
|
+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
|
16
|
+
</natures>
|
|
17
|
+
<filteredResources>
|
|
18
|
+
<filter>
|
|
19
|
+
<id>1731488409391</id>
|
|
20
|
+
<name></name>
|
|
21
|
+
<type>30</type>
|
|
22
|
+
<matcher>
|
|
23
|
+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
|
24
|
+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
|
25
|
+
</matcher>
|
|
26
|
+
</filter>
|
|
27
|
+
</filteredResources>
|
|
28
|
+
</projectDescription>
|
package/android/build.gradle
CHANGED
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
ext {
|
|
2
|
-
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.12'
|
|
3
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.1'
|
|
4
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.2.0'
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
buildscript {
|
|
8
|
-
ext.kotlin_version = '1.
|
|
9
|
-
repositories {
|
|
10
|
-
google()
|
|
11
|
-
mavenCentral()
|
|
12
|
-
jcenter()
|
|
13
|
-
maven { url 'https://maven.fabric.io/public' }
|
|
14
|
-
}
|
|
15
|
-
dependencies {
|
|
16
|
-
classpath 'com.google.gms:google-services:4.3.
|
|
17
|
-
classpath 'com.android.tools.build:gradle:
|
|
18
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
allprojects {
|
|
23
|
-
repositories {
|
|
24
|
-
google()
|
|
25
|
-
mavenCentral()
|
|
26
|
-
maven { url "https://maven.google.com" }
|
|
27
|
-
maven { url 'https://jitpack.io' }
|
|
28
|
-
jcenter()
|
|
29
|
-
flatDir {
|
|
30
|
-
dirs 'libs'
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
apply plugin: 'com.android.library'
|
|
36
|
-
apply plugin: 'kotlin-android'
|
|
37
|
-
|
|
38
|
-
android {
|
|
39
|
-
compileSdkVersion
|
|
40
|
-
defaultConfig {
|
|
41
|
-
minSdkVersion 24
|
|
42
|
-
targetSdkVersion
|
|
43
|
-
versionCode 1
|
|
44
|
-
versionName "1.0"
|
|
45
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
46
|
-
multiDexEnabled true
|
|
47
|
-
}
|
|
48
|
-
buildTypes {
|
|
49
|
-
debug {
|
|
50
|
-
minifyEnabled false
|
|
51
|
-
}
|
|
52
|
-
release {
|
|
53
|
-
minifyEnabled true
|
|
54
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
compileOptions {
|
|
58
|
-
sourceCompatibility JavaVersion.
|
|
59
|
-
targetCompatibility JavaVersion.
|
|
60
|
-
}
|
|
61
|
-
lintOptions {
|
|
62
|
-
abortOnError false
|
|
63
|
-
}
|
|
64
|
-
packagingOptions {
|
|
65
|
-
exclude 'META-INF/NOTICE'
|
|
66
|
-
exclude 'META-INF/LICENSE'
|
|
67
|
-
}
|
|
68
|
-
dexOptions {
|
|
69
|
-
preDexLibraries false
|
|
70
|
-
javaMaxHeapSize "4g"
|
|
71
|
-
jumboMode = true
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
dependencies {
|
|
76
|
-
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
77
|
-
implementation 'androidx.multidex:multidex:2.0.1'
|
|
78
|
-
implementation 'androidx.core:core-ktx:1.3.2'
|
|
79
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
80
|
-
|
|
81
|
-
implementation project(':capacitor-android')
|
|
82
|
-
|
|
83
|
-
debugImplementation(name: 'smartscannerlib-debug', ext: 'aar')
|
|
84
|
-
releaseImplementation(name: 'smartscannerlib-release', ext: 'aar')
|
|
85
|
-
implementation(name: 'smartscanner-mrz-parser', ext: 'aar')
|
|
86
|
-
|
|
87
|
-
testImplementation "junit:junit:$junitVersion"
|
|
88
|
-
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
89
|
-
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
90
|
-
|
|
91
|
-
// AndroidX
|
|
92
|
-
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
93
|
-
implementation 'androidx.core:core-ktx:1.2.0'
|
|
94
|
-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
95
|
-
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
96
|
-
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
97
|
-
implementation 'androidx.preference:preference-ktx:1.1.1'
|
|
98
|
-
|
|
99
|
-
// ML Kit dependencies
|
|
100
|
-
implementation 'com.google.mlkit:text-recognition:16.0.0-beta4'
|
|
101
|
-
implementation 'com.google.mlkit:barcode-scanning:17.0.2'
|
|
102
|
-
|
|
103
|
-
// Glide
|
|
104
|
-
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
|
105
|
-
implementation 'com.github.bumptech.glide:annotations:4.12.0'
|
|
106
|
-
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
|
|
107
|
-
implementation 'jp.wasabeef:glide-transformations:4.3.0'
|
|
108
|
-
|
|
109
|
-
//Android Material
|
|
110
|
-
implementation 'com.google.android.material:material:1.2.1'
|
|
111
|
-
|
|
112
|
-
// Timber
|
|
113
|
-
implementation 'com.jakewharton.timber:timber:4.7.1'
|
|
114
|
-
|
|
115
|
-
// CameraX
|
|
116
|
-
def camerax_version = "1.0.0-beta07"
|
|
117
|
-
implementation "androidx.camera:camera-core:$camerax_version"
|
|
118
|
-
// CameraX core library using camera2 implementation
|
|
119
|
-
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
120
|
-
// CameraX Lifecycle Library
|
|
121
|
-
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
122
|
-
// CameraX View class
|
|
123
|
-
implementation "androidx.camera:camera-view:1.0.0-alpha14"
|
|
124
|
-
|
|
125
|
-
// MRZ
|
|
126
|
-
implementation 'org.slf4j:slf4j-android:1.7.30'
|
|
127
|
-
|
|
128
|
-
// gson
|
|
129
|
-
implementation 'com.google.code.gson:gson:2.8.6'
|
|
130
|
-
|
|
131
|
-
// NFC
|
|
132
|
-
implementation 'org.jmrtd:jmrtd:0.7.18'
|
|
133
|
-
implementation 'com.madgag.spongycastle:prov:1.58.0.0'
|
|
134
|
-
implementation 'net.sf.scuba:scuba-sc-android:0.0.23'
|
|
135
|
-
implementation group: 'org.ejbca.cvc', name: 'cert-cvc', version: '1.4.6'
|
|
136
|
-
|
|
137
|
-
//WSQ
|
|
138
|
-
implementation 'com.github.mhshams:jnbis:2.0.2'
|
|
139
|
-
|
|
140
|
-
//DatatypeConverter
|
|
141
|
-
implementation 'commons-codec:commons-codec:1.12'
|
|
142
|
-
|
|
143
|
-
//RX
|
|
144
|
-
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
145
|
-
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
|
|
146
|
-
|
|
147
|
-
//Sentry
|
|
148
|
-
implementation 'io.sentry:sentry-android:5.0.1'
|
|
149
|
-
|
|
150
|
-
// Barcode
|
|
151
|
-
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
1
|
+
ext {
|
|
2
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.12'
|
|
3
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.1'
|
|
4
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.2.0'
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
buildscript {
|
|
8
|
+
ext.kotlin_version = '1.9.10'
|
|
9
|
+
repositories {
|
|
10
|
+
google()
|
|
11
|
+
mavenCentral()
|
|
12
|
+
jcenter()
|
|
13
|
+
maven { url 'https://maven.fabric.io/public' }
|
|
14
|
+
}
|
|
15
|
+
dependencies {
|
|
16
|
+
classpath 'com.google.gms:google-services:4.3.15'
|
|
17
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
18
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
allprojects {
|
|
23
|
+
repositories {
|
|
24
|
+
google()
|
|
25
|
+
mavenCentral()
|
|
26
|
+
maven { url "https://maven.google.com" }
|
|
27
|
+
maven { url 'https://jitpack.io' }
|
|
28
|
+
jcenter()
|
|
29
|
+
flatDir {
|
|
30
|
+
dirs 'libs'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
apply plugin: 'com.android.library'
|
|
36
|
+
apply plugin: 'kotlin-android'
|
|
37
|
+
|
|
38
|
+
android {
|
|
39
|
+
compileSdkVersion 34
|
|
40
|
+
defaultConfig {
|
|
41
|
+
minSdkVersion 24
|
|
42
|
+
targetSdkVersion 34
|
|
43
|
+
versionCode 1
|
|
44
|
+
versionName "1.0"
|
|
45
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
46
|
+
multiDexEnabled true
|
|
47
|
+
}
|
|
48
|
+
buildTypes {
|
|
49
|
+
debug {
|
|
50
|
+
minifyEnabled false
|
|
51
|
+
}
|
|
52
|
+
release {
|
|
53
|
+
minifyEnabled true
|
|
54
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
compileOptions {
|
|
58
|
+
sourceCompatibility JavaVersion.VERSION_17
|
|
59
|
+
targetCompatibility JavaVersion.VERSION_17
|
|
60
|
+
}
|
|
61
|
+
lintOptions {
|
|
62
|
+
abortOnError false
|
|
63
|
+
}
|
|
64
|
+
packagingOptions {
|
|
65
|
+
exclude 'META-INF/NOTICE'
|
|
66
|
+
exclude 'META-INF/LICENSE'
|
|
67
|
+
}
|
|
68
|
+
dexOptions {
|
|
69
|
+
preDexLibraries false
|
|
70
|
+
javaMaxHeapSize "4g"
|
|
71
|
+
jumboMode = true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
dependencies {
|
|
76
|
+
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
77
|
+
implementation 'androidx.multidex:multidex:2.0.1'
|
|
78
|
+
implementation 'androidx.core:core-ktx:1.3.2'
|
|
79
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
80
|
+
|
|
81
|
+
implementation project(':capacitor-android')
|
|
82
|
+
|
|
83
|
+
debugImplementation(name: 'smartscannerlib-debug', ext: 'aar')
|
|
84
|
+
releaseImplementation(name: 'smartscannerlib-release', ext: 'aar')
|
|
85
|
+
implementation(name: 'smartscanner-mrz-parser', ext: 'aar')
|
|
86
|
+
|
|
87
|
+
testImplementation "junit:junit:$junitVersion"
|
|
88
|
+
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
89
|
+
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
90
|
+
|
|
91
|
+
// AndroidX
|
|
92
|
+
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
93
|
+
implementation 'androidx.core:core-ktx:1.2.0'
|
|
94
|
+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
95
|
+
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
96
|
+
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
97
|
+
implementation 'androidx.preference:preference-ktx:1.1.1'
|
|
98
|
+
|
|
99
|
+
// ML Kit dependencies
|
|
100
|
+
implementation 'com.google.mlkit:text-recognition:16.0.0-beta4'
|
|
101
|
+
implementation 'com.google.mlkit:barcode-scanning:17.0.2'
|
|
102
|
+
|
|
103
|
+
// Glide
|
|
104
|
+
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
|
105
|
+
implementation 'com.github.bumptech.glide:annotations:4.12.0'
|
|
106
|
+
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
|
|
107
|
+
implementation 'jp.wasabeef:glide-transformations:4.3.0'
|
|
108
|
+
|
|
109
|
+
//Android Material
|
|
110
|
+
implementation 'com.google.android.material:material:1.2.1'
|
|
111
|
+
|
|
112
|
+
// Timber
|
|
113
|
+
implementation 'com.jakewharton.timber:timber:4.7.1'
|
|
114
|
+
|
|
115
|
+
// CameraX
|
|
116
|
+
def camerax_version = "1.0.0-beta07"
|
|
117
|
+
implementation "androidx.camera:camera-core:$camerax_version"
|
|
118
|
+
// CameraX core library using camera2 implementation
|
|
119
|
+
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
120
|
+
// CameraX Lifecycle Library
|
|
121
|
+
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
122
|
+
// CameraX View class
|
|
123
|
+
implementation "androidx.camera:camera-view:1.0.0-alpha14"
|
|
124
|
+
|
|
125
|
+
// MRZ
|
|
126
|
+
implementation 'org.slf4j:slf4j-android:1.7.30'
|
|
127
|
+
|
|
128
|
+
// gson
|
|
129
|
+
implementation 'com.google.code.gson:gson:2.8.6'
|
|
130
|
+
|
|
131
|
+
// NFC
|
|
132
|
+
implementation 'org.jmrtd:jmrtd:0.7.18'
|
|
133
|
+
implementation 'com.madgag.spongycastle:prov:1.58.0.0'
|
|
134
|
+
implementation 'net.sf.scuba:scuba-sc-android:0.0.23'
|
|
135
|
+
implementation group: 'org.ejbca.cvc', name: 'cert-cvc', version: '1.4.6'
|
|
136
|
+
|
|
137
|
+
//WSQ
|
|
138
|
+
implementation 'com.github.mhshams:jnbis:2.0.2'
|
|
139
|
+
|
|
140
|
+
//DatatypeConverter
|
|
141
|
+
implementation 'commons-codec:commons-codec:1.12'
|
|
142
|
+
|
|
143
|
+
//RX
|
|
144
|
+
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
145
|
+
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
|
|
146
|
+
|
|
147
|
+
//Sentry
|
|
148
|
+
implementation 'io.sentry:sentry-android:5.0.1'
|
|
149
|
+
|
|
150
|
+
// Barcode
|
|
151
|
+
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
152
152
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#Mon Jun 14 23:06:19 PST 2021
|
|
2
|
-
distributionBase=GRADLE_USER_HOME
|
|
3
|
-
distributionPath=wrapper/dists
|
|
4
|
-
zipStoreBase=GRADLE_USER_HOME
|
|
5
|
-
zipStorePath=wrapper/dists
|
|
6
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-
|
|
1
|
+
#Mon Jun 14 23:06:19 PST 2021
|
|
2
|
+
distributionBase=GRADLE_USER_HOME
|
|
3
|
+
distributionPath=wrapper/dists
|
|
4
|
+
zipStoreBase=GRADLE_USER_HOME
|
|
5
|
+
zipStorePath=wrapper/dists
|
|
6
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
|