@regulaforensics/document-reader 9.6.852-beta → 9.6.862-beta
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/RNDocumentReader.podspec +1 -1
- package/app.plugin.js +41 -1
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/test/package-lock.json +1 -1
- package/expoPlugin.js +0 -51
package/RNDocumentReader.podspec
CHANGED
package/app.plugin.js
CHANGED
|
@@ -1 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
const { withPodfile } = require(require.resolve('@expo/config-plugins', { paths: [__dirname, process.cwd()] }));
|
|
2
|
+
|
|
3
|
+
const SOURCES = [
|
|
4
|
+
'https://github.com/CocoaPods/Specs.git',
|
|
5
|
+
'https://github.com/regulaforensics/podspecs.git',
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
module.exports = function withRegulaPodSources(config) {
|
|
9
|
+
return withPodfile(config, (config) => {
|
|
10
|
+
let podfile = config.modResults.contents;
|
|
11
|
+
|
|
12
|
+
const missingSources = SOURCES.filter(
|
|
13
|
+
(source) =>
|
|
14
|
+
!podfile.includes(`source '${source}'`) &&
|
|
15
|
+
!podfile.includes(`source "${source}"`)
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
if (missingSources.length === 0) {
|
|
19
|
+
return config;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const header = [
|
|
23
|
+
'# ============================================================================',
|
|
24
|
+
'# Regula Pod Sources',
|
|
25
|
+
'# Added automatically by @regulaforensics/document-reader',
|
|
26
|
+
'#',
|
|
27
|
+
'# Sources:',
|
|
28
|
+
...SOURCES.map((s) => `# - ${s}`),
|
|
29
|
+
'# ============================================================================',
|
|
30
|
+
'',
|
|
31
|
+
...missingSources.map((s) => `source '${s}'`),
|
|
32
|
+
'',
|
|
33
|
+
'',
|
|
34
|
+
'',
|
|
35
|
+
].join('\n');
|
|
36
|
+
|
|
37
|
+
config.modResults.contents = header + podfile;
|
|
38
|
+
|
|
39
|
+
return config;
|
|
40
|
+
});
|
|
41
|
+
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "9.6.
|
|
9
|
+
"@regulaforensics/document-reader": "9.6.862-beta",
|
|
10
10
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
|
|
11
11
|
"@regulaforensics/document-reader-btdevice": "9.4.46",
|
|
12
12
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@ionic/cordova-builders": "^12.3.0",
|
|
19
19
|
"@awesome-cordova-plugins/camera": "^8.1.0",
|
|
20
20
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
21
|
-
"@regulaforensics/document-reader": "9.6.
|
|
21
|
+
"@regulaforensics/document-reader": "9.6.862-beta",
|
|
22
22
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
|
|
23
23
|
"@regulaforensics/document-reader-btdevice": "9.4.46",
|
|
24
24
|
"cordova-android": "^14.0.1",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "9.6.
|
|
11
|
+
"@regulaforensics/document-reader": "9.6.862-beta",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "9.4.46",
|
|
14
14
|
"react-native": "^0.81.4",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.862-beta",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="9.6.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.6.862-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
package/test/package-lock.json
CHANGED
package/expoPlugin.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const { withPodfile } = getConfigPlugins();
|
|
2
|
-
|
|
3
|
-
const SOURCES = [
|
|
4
|
-
'https://github.com/CocoaPods/Specs.git',
|
|
5
|
-
'https://github.com/regulaforensics/podspecs.git',
|
|
6
|
-
];
|
|
7
|
-
|
|
8
|
-
module.exports = function withRegulaPodSources(config) {
|
|
9
|
-
return withPodfile(config, (config) => {
|
|
10
|
-
let podfile = config.modResults.contents;
|
|
11
|
-
|
|
12
|
-
const missingSources = SOURCES.filter(
|
|
13
|
-
(source) =>
|
|
14
|
-
!podfile.includes(`source '${source}'`) &&
|
|
15
|
-
!podfile.includes(`source "${source}"`)
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
if (missingSources.length === 0) {
|
|
19
|
-
return config;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const header = [
|
|
23
|
-
'# ============================================================================',
|
|
24
|
-
'# Regula Pod Sources',
|
|
25
|
-
'# Added automatically by @regulaforensics/document-reader',
|
|
26
|
-
'#',
|
|
27
|
-
'# Sources:',
|
|
28
|
-
...SOURCES.map((s) => `# - ${s}`),
|
|
29
|
-
'# ============================================================================',
|
|
30
|
-
'',
|
|
31
|
-
...missingSources.map((s) => `source '${s}'`),
|
|
32
|
-
'',
|
|
33
|
-
].join('\n');
|
|
34
|
-
|
|
35
|
-
config.modResults.contents = header + podfile;
|
|
36
|
-
|
|
37
|
-
return config;
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
function getConfigPlugins() {
|
|
42
|
-
try {
|
|
43
|
-
return require('@expo/config-plugins');
|
|
44
|
-
} catch {
|
|
45
|
-
return require(
|
|
46
|
-
require.resolve('@expo/config-plugins', {
|
|
47
|
-
paths: [process.cwd()]
|
|
48
|
-
})
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
}
|