@idpass/smartscanner-capacitor 0.7.3-beta.3 → 0.7.3-beta.4
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/README.md +69 -0
- package/android/.gradle/9.0.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.0.0/checksums/sha1-checksums.bin +0 -0
- package/android/build.gradle +150 -147
- package/android/libs/smartscannerlib-debug.aar +0 -0
- package/android/libs/smartscannerlib-release.aar +0 -0
- package/android/src/main/AndroidManifest.xml +2 -2
- package/android/src/main/res/values/styles.xml +5 -1
- package/dist/plugin.cjs.js +0 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +0 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +71 -71
package/README.md
CHANGED
|
@@ -65,6 +65,75 @@ const result = await SmartScannerPlugin.executeScanner({
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
```
|
|
68
|
+
Table OCR scanning example:
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
const result = await SmartScannerPlugin.executeScanner({
|
|
72
|
+
action: 'START_SCANNER',
|
|
73
|
+
options: {
|
|
74
|
+
mode: 'table-ocr',
|
|
75
|
+
ocrOptions: {
|
|
76
|
+
analyzeStart: 1000,
|
|
77
|
+
tableConfig: {
|
|
78
|
+
// Column headers to search for in OCR text (left-to-right order)
|
|
79
|
+
columnHeaders: ['Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'Jan', 'Feb', 'Mar', 'Apr', 'Total'],
|
|
80
|
+
// Auto-detect which month columns are actually present in the scanned image
|
|
81
|
+
autoDetectMonths: true,
|
|
82
|
+
// Number of data rows below the headers
|
|
83
|
+
dataRows: 3,
|
|
84
|
+
// Row labels found on the left side of each data row
|
|
85
|
+
rowLabels: ['School', 'Present', 'Absent'],
|
|
86
|
+
// Regex filter applied to every extracted cell value
|
|
87
|
+
regex: '[0-9]{1,2}',
|
|
88
|
+
// Minimum and maximum valid cell values (for days 1-31)
|
|
89
|
+
validMin: 1,
|
|
90
|
+
validMax: 31,
|
|
91
|
+
// Column index (0-based) exempt from min/max validation (e.g., the Total column)
|
|
92
|
+
totalColumnIndex: 11,
|
|
93
|
+
// Cell-level value transforms (map common letter-to-digit OCR confusions)
|
|
94
|
+
transforms: ['LETTER_TO_DIGIT'],
|
|
95
|
+
// Table-level post-processing (fills missing months, infers rows, formats as "row.col" keys)
|
|
96
|
+
tableTransforms: ['ATTENDANCE'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
config: {
|
|
100
|
+
background: '#89837c',
|
|
101
|
+
branding: true,
|
|
102
|
+
label: 'Table OCR',
|
|
103
|
+
isManualCapture: true, // user taps the capture button
|
|
104
|
+
showOcrGuide: true, // show the scan region overlay
|
|
105
|
+
showOcrRegions: true, // highlight detected table cells
|
|
106
|
+
orientation: 'landscape',
|
|
107
|
+
widthGuide: 900, // guide overlay width in pixels
|
|
108
|
+
heightGuide: 500, // guide overlay height in pixels
|
|
109
|
+
xGuide: 0.5, // horizontal center offset (0.0-1.0)
|
|
110
|
+
yGuide: 0.5, // vertical center offset (0.0-1.0)
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// The result is returned as flat "row.col" keys when using the ATTENDANCE transform.
|
|
116
|
+
// For example:
|
|
117
|
+
// {
|
|
118
|
+
// "school.jun": "22", "school.jul": "20", ..., "school.total": "198",
|
|
119
|
+
// "present.jun": "20", "present.jul": "18", ..., "present.total": "178",
|
|
120
|
+
// "absent.jun": "2", "absent.jul": "2", ..., "absent.total": "20"
|
|
121
|
+
// }
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
A runnable Vue 3 + Vite example is available in the [`example/`](./example) folder.
|
|
125
|
+
See [`example/src/App.vue`](./example/src/App.vue) for the full Table OCR implementation.
|
|
126
|
+
|
|
127
|
+
To build and run:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
cd example
|
|
131
|
+
nvm use # switches to Node 22 via .nvmrc (requires Node >= 18)
|
|
132
|
+
npm install
|
|
133
|
+
npm run sync # builds Vue app into www/ and syncs to Android
|
|
134
|
+
# then open example/android in Android Studio and run on device
|
|
135
|
+
```
|
|
136
|
+
|
|
68
137
|
NFC scanning example:
|
|
69
138
|
|
|
70
139
|
```js
|
|
Binary file
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -1,148 +1,151 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
ext.kotlin_version = '2.
|
|
3
|
-
repositories {
|
|
4
|
-
google()
|
|
5
|
-
mavenCentral()
|
|
6
|
-
maven { url 'https://maven.fabric.io/public' }
|
|
7
|
-
}
|
|
8
|
-
dependencies {
|
|
9
|
-
classpath 'com.google.gms:google-services:4.3.15'
|
|
10
|
-
classpath 'com.android.tools.build:gradle:8.7.2'
|
|
11
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
ext {
|
|
16
|
-
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.12'
|
|
17
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.1'
|
|
18
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.2.0'
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
allprojects {
|
|
22
|
-
repositories {
|
|
23
|
-
google()
|
|
24
|
-
mavenCentral()
|
|
25
|
-
maven { url "https://maven.google.com" }
|
|
26
|
-
maven { url 'https://jitpack.io' }
|
|
27
|
-
flatDir {
|
|
28
|
-
dirs 'libs'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
apply plugin: 'com.android.library'
|
|
34
|
-
apply plugin: 'kotlin-android'
|
|
35
|
-
|
|
36
|
-
android {
|
|
37
|
-
namespace 'org.idpass.smartscanner.capacitor.smartscannercapacitorplugin'
|
|
38
|
-
compileSdkVersion
|
|
39
|
-
defaultConfig {
|
|
40
|
-
minSdkVersion 24
|
|
41
|
-
targetSdkVersion 34
|
|
42
|
-
versionCode 1
|
|
43
|
-
versionName "1.0"
|
|
44
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
45
|
-
multiDexEnabled true
|
|
46
|
-
}
|
|
47
|
-
buildTypes {
|
|
48
|
-
debug {
|
|
49
|
-
minifyEnabled false
|
|
50
|
-
}
|
|
51
|
-
release {
|
|
52
|
-
minifyEnabled true
|
|
53
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
compileOptions {
|
|
57
|
-
sourceCompatibility JavaVersion.VERSION_21
|
|
58
|
-
targetCompatibility JavaVersion.VERSION_21
|
|
59
|
-
}
|
|
60
|
-
kotlinOptions {
|
|
61
|
-
jvmTarget = '21'
|
|
62
|
-
}
|
|
63
|
-
lintOptions {
|
|
64
|
-
abortOnError false
|
|
65
|
-
}
|
|
66
|
-
packagingOptions {
|
|
67
|
-
exclude 'META-INF/NOTICE'
|
|
68
|
-
exclude 'META-INF/LICENSE'
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
dependencies {
|
|
73
|
-
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
74
|
-
implementation 'androidx.multidex:multidex:2.0.1'
|
|
75
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
76
|
-
|
|
77
|
-
implementation project(':capacitor-android')
|
|
78
|
-
|
|
79
|
-
debugImplementation(name: 'smartscannerlib-debug', ext: 'aar')
|
|
80
|
-
releaseImplementation(name: 'smartscannerlib-release', ext: 'aar')
|
|
81
|
-
implementation(name: 'smartscanner-mrz-parser', ext: 'aar')
|
|
82
|
-
|
|
83
|
-
testImplementation "junit:junit:$junitVersion"
|
|
84
|
-
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
85
|
-
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
86
|
-
|
|
87
|
-
// AndroidX
|
|
88
|
-
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
89
|
-
implementation 'androidx.core:core-ktx:1.12.0'
|
|
90
|
-
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
91
|
-
implementation 'androidx.recyclerview:recyclerview:1.3.2'
|
|
92
|
-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
|
|
93
|
-
implementation 'androidx.preference:preference-ktx:1.2.1'
|
|
94
|
-
|
|
95
|
-
// ML Kit dependencies
|
|
96
|
-
implementation 'com.google.mlkit:text-recognition:16.0.0-beta6'
|
|
97
|
-
implementation 'com.google.mlkit:barcode-scanning:17.2.0'
|
|
98
|
-
|
|
99
|
-
// Glide
|
|
100
|
-
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
|
101
|
-
implementation 'com.github.bumptech.glide:annotations:4.12.0'
|
|
102
|
-
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
|
|
103
|
-
implementation 'jp.wasabeef:glide-transformations:4.3.0'
|
|
104
|
-
|
|
105
|
-
//Android Material
|
|
106
|
-
implementation 'com.google.android.material:material:1.11.0'
|
|
107
|
-
|
|
108
|
-
// Timber
|
|
109
|
-
implementation 'com.jakewharton.timber:timber:4.7.1'
|
|
110
|
-
|
|
111
|
-
// CameraX
|
|
112
|
-
def camerax_version = "1.
|
|
113
|
-
implementation "androidx.camera:camera-core:$camerax_version"
|
|
114
|
-
// CameraX core library using camera2 implementation
|
|
115
|
-
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
116
|
-
// CameraX Lifecycle Library
|
|
117
|
-
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
118
|
-
// CameraX View class
|
|
119
|
-
implementation "androidx.camera:camera-view
|
|
120
|
-
|
|
121
|
-
// MRZ
|
|
122
|
-
implementation 'org.slf4j:slf4j-android:1.7.30'
|
|
123
|
-
|
|
124
|
-
// gson
|
|
125
|
-
implementation 'com.google.code.gson:gson:2.10.1'
|
|
126
|
-
|
|
127
|
-
// NFC
|
|
128
|
-
implementation 'org.jmrtd:jmrtd:0.7.18'
|
|
129
|
-
implementation 'com.madgag.spongycastle:prov:1.58.0.0'
|
|
130
|
-
implementation 'net.sf.scuba:scuba-sc-android:0.0.23'
|
|
131
|
-
implementation group: 'org.ejbca.cvc', name: 'cert-cvc', version: '1.4.6'
|
|
132
|
-
|
|
133
|
-
//WSQ
|
|
134
|
-
implementation 'com.github.mhshams:jnbis:2.0.2'
|
|
135
|
-
|
|
136
|
-
//DatatypeConverter
|
|
137
|
-
implementation 'commons-codec:commons-codec:1.12'
|
|
138
|
-
|
|
139
|
-
//RX
|
|
140
|
-
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
141
|
-
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
|
|
142
|
-
|
|
143
|
-
//Sentry
|
|
144
|
-
implementation 'io.sentry:sentry-android:7.3.0'
|
|
145
|
-
|
|
146
|
-
//
|
|
147
|
-
implementation '
|
|
1
|
+
buildscript {
|
|
2
|
+
ext.kotlin_version = '2.2.10'
|
|
3
|
+
repositories {
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
maven { url 'https://maven.fabric.io/public' }
|
|
7
|
+
}
|
|
8
|
+
dependencies {
|
|
9
|
+
classpath 'com.google.gms:google-services:4.3.15'
|
|
10
|
+
classpath 'com.android.tools.build:gradle:8.7.2'
|
|
11
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ext {
|
|
16
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.12'
|
|
17
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.1'
|
|
18
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.2.0'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
allprojects {
|
|
22
|
+
repositories {
|
|
23
|
+
google()
|
|
24
|
+
mavenCentral()
|
|
25
|
+
maven { url "https://maven.google.com" }
|
|
26
|
+
maven { url 'https://jitpack.io' }
|
|
27
|
+
flatDir {
|
|
28
|
+
dirs 'libs'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
apply plugin: 'com.android.library'
|
|
34
|
+
apply plugin: 'kotlin-android'
|
|
35
|
+
|
|
36
|
+
android {
|
|
37
|
+
namespace 'org.idpass.smartscanner.capacitor.smartscannercapacitorplugin'
|
|
38
|
+
compileSdkVersion 35
|
|
39
|
+
defaultConfig {
|
|
40
|
+
minSdkVersion 24
|
|
41
|
+
targetSdkVersion 34
|
|
42
|
+
versionCode 1
|
|
43
|
+
versionName "1.0"
|
|
44
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
45
|
+
multiDexEnabled true
|
|
46
|
+
}
|
|
47
|
+
buildTypes {
|
|
48
|
+
debug {
|
|
49
|
+
minifyEnabled false
|
|
50
|
+
}
|
|
51
|
+
release {
|
|
52
|
+
minifyEnabled true
|
|
53
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
compileOptions {
|
|
57
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
58
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
59
|
+
}
|
|
60
|
+
kotlinOptions {
|
|
61
|
+
jvmTarget = '21'
|
|
62
|
+
}
|
|
63
|
+
lintOptions {
|
|
64
|
+
abortOnError false
|
|
65
|
+
}
|
|
66
|
+
packagingOptions {
|
|
67
|
+
exclude 'META-INF/NOTICE'
|
|
68
|
+
exclude 'META-INF/LICENSE'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
dependencies {
|
|
73
|
+
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
74
|
+
implementation 'androidx.multidex:multidex:2.0.1'
|
|
75
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
76
|
+
|
|
77
|
+
implementation project(':capacitor-android')
|
|
78
|
+
|
|
79
|
+
debugImplementation(name: 'smartscannerlib-debug', ext: 'aar')
|
|
80
|
+
releaseImplementation(name: 'smartscannerlib-release', ext: 'aar')
|
|
81
|
+
implementation(name: 'smartscanner-mrz-parser', ext: 'aar')
|
|
82
|
+
|
|
83
|
+
testImplementation "junit:junit:$junitVersion"
|
|
84
|
+
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
85
|
+
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
86
|
+
|
|
87
|
+
// AndroidX
|
|
88
|
+
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
89
|
+
implementation 'androidx.core:core-ktx:1.12.0'
|
|
90
|
+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
91
|
+
implementation 'androidx.recyclerview:recyclerview:1.3.2'
|
|
92
|
+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
|
|
93
|
+
implementation 'androidx.preference:preference-ktx:1.2.1'
|
|
94
|
+
|
|
95
|
+
// ML Kit dependencies
|
|
96
|
+
implementation 'com.google.mlkit:text-recognition:16.0.0-beta6'
|
|
97
|
+
implementation 'com.google.mlkit:barcode-scanning:17.2.0'
|
|
98
|
+
|
|
99
|
+
// Glide
|
|
100
|
+
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
|
101
|
+
implementation 'com.github.bumptech.glide:annotations:4.12.0'
|
|
102
|
+
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
|
|
103
|
+
implementation 'jp.wasabeef:glide-transformations:4.3.0'
|
|
104
|
+
|
|
105
|
+
//Android Material
|
|
106
|
+
implementation 'com.google.android.material:material:1.11.0'
|
|
107
|
+
|
|
108
|
+
// Timber
|
|
109
|
+
implementation 'com.jakewharton.timber:timber:4.7.1'
|
|
110
|
+
|
|
111
|
+
// CameraX
|
|
112
|
+
def camerax_version = "1.3.1"
|
|
113
|
+
implementation "androidx.camera:camera-core:$camerax_version"
|
|
114
|
+
// CameraX core library using camera2 implementation
|
|
115
|
+
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
116
|
+
// CameraX Lifecycle Library
|
|
117
|
+
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
118
|
+
// CameraX View class
|
|
119
|
+
implementation "androidx.camera:camera-view:$camerax_version"
|
|
120
|
+
|
|
121
|
+
// MRZ
|
|
122
|
+
implementation 'org.slf4j:slf4j-android:1.7.30'
|
|
123
|
+
|
|
124
|
+
// gson
|
|
125
|
+
implementation 'com.google.code.gson:gson:2.10.1'
|
|
126
|
+
|
|
127
|
+
// NFC
|
|
128
|
+
implementation 'org.jmrtd:jmrtd:0.7.18'
|
|
129
|
+
implementation 'com.madgag.spongycastle:prov:1.58.0.0'
|
|
130
|
+
implementation 'net.sf.scuba:scuba-sc-android:0.0.23'
|
|
131
|
+
implementation group: 'org.ejbca.cvc', name: 'cert-cvc', version: '1.4.6'
|
|
132
|
+
|
|
133
|
+
//WSQ
|
|
134
|
+
implementation 'com.github.mhshams:jnbis:2.0.2'
|
|
135
|
+
|
|
136
|
+
//DatatypeConverter
|
|
137
|
+
implementation 'commons-codec:commons-codec:1.12'
|
|
138
|
+
|
|
139
|
+
//RX
|
|
140
|
+
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
141
|
+
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
|
|
142
|
+
|
|
143
|
+
//Sentry
|
|
144
|
+
implementation 'io.sentry:sentry-android:7.3.0'
|
|
145
|
+
|
|
146
|
+
// OpenCV (table line detection for TABLE_OCR)
|
|
147
|
+
implementation 'org.opencv:opencv:4.10.0'
|
|
148
|
+
|
|
149
|
+
// Barcode
|
|
150
|
+
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
148
151
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<application>
|
|
10
10
|
<activity
|
|
11
11
|
android:name="org.idpass.smartscanner.lib.SmartScannerActivity"
|
|
12
|
-
android:theme="@style/
|
|
12
|
+
android:theme="@style/SmartScannerTheme"
|
|
13
13
|
android:screenOrientation="portrait"
|
|
14
14
|
android:exported="false"
|
|
15
|
-
tools:replace="android:exported,android:screenOrientation" />
|
|
15
|
+
tools:replace="android:exported,android:screenOrientation,android:theme" />
|
|
16
16
|
</application>
|
|
17
17
|
</manifest>
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
<resources>
|
|
2
|
-
|
|
2
|
+
<!-- Extends AppCompat NoActionBar and opts out of Android 15 forced edge-to-edge
|
|
3
|
+
so the capture button is never hidden behind the navigation bar. -->
|
|
4
|
+
<style name="SmartScannerTheme" parent="Theme.AppCompat.NoActionBar">
|
|
5
|
+
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
|
|
6
|
+
</style>
|
|
3
7
|
</resources>
|
package/dist/plugin.cjs.js
CHANGED
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,qBAAqB,EAAE;AACxE,CAAC;;ACFM,MAAM,qBAAqB,SAASC,cAAS,CAAC;AACrD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE;AACf,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;AACpC,QAAQ,OAAO,OAAO;AACtB,IAAI;AACJ,IAAI,MAAM,cAAc,CAAC,OAAO,EAAE;AAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC;AAC9C,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,qBAAqB,EAAE
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,qBAAqB,EAAE;IACxE,CAAC;;ICFM,MAAM,qBAAqB,SAASC,cAAS,CAAC;IACrD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE;IACf,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IACpC,QAAQ,OAAO,OAAO;IACtB,IAAI;IACJ,IAAI,MAAM,cAAc,CAAC,OAAO,EAAE;IAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC;IAC9C,IAAI;IACJ;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@idpass/smartscanner-capacitor",
|
|
3
|
-
"version": "0.7.3-beta.
|
|
4
|
-
"description": "Capacitor plugin for the SmartScanner Core library to scan MRZ, NFC and barcodes",
|
|
5
|
-
"main": "dist/plugin.cjs.js",
|
|
6
|
-
"module": "dist/esm/index.js",
|
|
7
|
-
"types": "dist/esm/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"lint": "npm run prettier -- --check && npm run swiftlint -- lint",
|
|
10
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
11
|
-
"swiftlint": "node-swiftlint",
|
|
12
|
-
"build": "npm run clean && tsc && rollup -c rollup.config.js",
|
|
13
|
-
"clean": "
|
|
14
|
-
"watch": "tsc --watch",
|
|
15
|
-
"prepublishOnly": "npm run build"
|
|
16
|
-
},
|
|
17
|
-
"author": "NewLogic",
|
|
18
|
-
"license": "Apache-2.0",
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@capacitor/android": "^7.4.3",
|
|
21
|
-
"@capacitor/core": "^7.4.3",
|
|
22
|
-
"@capacitor/ios": "^7.4.3"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@capacitor/cli": "^7.4.3",
|
|
26
|
-
"@ionic/eslint-config": "^0.4.0",
|
|
27
|
-
"@ionic/prettier-config": "^1.0.1",
|
|
28
|
-
"@ionic/swiftlint-config": "^1.1.2",
|
|
29
|
-
"@rollup/plugin-node-resolve": "^
|
|
30
|
-
"eslint": "^8.57.0",
|
|
31
|
-
"prettier": "~2.2.0",
|
|
32
|
-
"rollup": "^
|
|
33
|
-
"swiftlint": "^1.0.1",
|
|
34
|
-
"typescript": "^5.9.2"
|
|
35
|
-
},
|
|
36
|
-
"files": [
|
|
37
|
-
"dist/",
|
|
38
|
-
"android/",
|
|
39
|
-
"ios/",
|
|
40
|
-
"ios/Plugin",
|
|
41
|
-
"IdpassSmartscannerCapacitor.podspec"
|
|
42
|
-
],
|
|
43
|
-
"keywords": [
|
|
44
|
-
"capacitor",
|
|
45
|
-
"plugin",
|
|
46
|
-
"native"
|
|
47
|
-
],
|
|
48
|
-
"capacitor": {
|
|
49
|
-
"ios": {
|
|
50
|
-
"src": "ios"
|
|
51
|
-
},
|
|
52
|
-
"android": {
|
|
53
|
-
"src": "android"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"prettier": "@ionic/prettier-config",
|
|
57
|
-
"swiftlint": "@ionic/swiftlint-config",
|
|
58
|
-
"eslintConfig": {
|
|
59
|
-
"extends": "@ionic/eslint-config/recommended"
|
|
60
|
-
},
|
|
61
|
-
"repository": {
|
|
62
|
-
"type": "git",
|
|
63
|
-
"url": "https://github.com/idpass/smartscanner-capacitor.git"
|
|
64
|
-
},
|
|
65
|
-
"bugs": {
|
|
66
|
-
"url": "https://github.com/idpass/smartscanner-capacitor/issues"
|
|
67
|
-
},
|
|
68
|
-
"publishConfig": {
|
|
69
|
-
"access": "public"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@idpass/smartscanner-capacitor",
|
|
3
|
+
"version": "0.7.3-beta.4",
|
|
4
|
+
"description": "Capacitor plugin for the SmartScanner Core library to scan MRZ, NFC and barcodes",
|
|
5
|
+
"main": "dist/plugin.cjs.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"lint": "npm run prettier -- --check && npm run swiftlint -- lint",
|
|
10
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
11
|
+
"swiftlint": "node-swiftlint",
|
|
12
|
+
"build": "npm run clean && tsc && rollup -c rollup.config.js",
|
|
13
|
+
"clean": "node -e \"require('fs').rmSync('./dist', {recursive: true, force: true})\"",
|
|
14
|
+
"watch": "tsc --watch",
|
|
15
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"author": "NewLogic",
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@capacitor/android": "^7.4.3",
|
|
21
|
+
"@capacitor/core": "^7.4.3",
|
|
22
|
+
"@capacitor/ios": "^7.4.3"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@capacitor/cli": "^7.4.3",
|
|
26
|
+
"@ionic/eslint-config": "^0.4.0",
|
|
27
|
+
"@ionic/prettier-config": "^1.0.1",
|
|
28
|
+
"@ionic/swiftlint-config": "^1.1.2",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
30
|
+
"eslint": "^8.57.0",
|
|
31
|
+
"prettier": "~2.2.0",
|
|
32
|
+
"rollup": "^4.34.9",
|
|
33
|
+
"swiftlint": "^1.0.1",
|
|
34
|
+
"typescript": "^5.9.2"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist/",
|
|
38
|
+
"android/",
|
|
39
|
+
"ios/",
|
|
40
|
+
"ios/Plugin",
|
|
41
|
+
"IdpassSmartscannerCapacitor.podspec"
|
|
42
|
+
],
|
|
43
|
+
"keywords": [
|
|
44
|
+
"capacitor",
|
|
45
|
+
"plugin",
|
|
46
|
+
"native"
|
|
47
|
+
],
|
|
48
|
+
"capacitor": {
|
|
49
|
+
"ios": {
|
|
50
|
+
"src": "ios"
|
|
51
|
+
},
|
|
52
|
+
"android": {
|
|
53
|
+
"src": "android"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"prettier": "@ionic/prettier-config",
|
|
57
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
58
|
+
"eslintConfig": {
|
|
59
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
60
|
+
},
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/idpass/smartscanner-capacitor.git"
|
|
64
|
+
},
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/idpass/smartscanner-capacitor/issues"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
}
|
|
71
|
+
}
|