@regulaforensics/document-reader 9.6.846-rc → 9.6.852-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.
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNDocumentReader'
8
- s.version = '9.6.846-rc'
8
+ s.version = '9.6.852-beta'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -29,7 +29,7 @@ dependencies {
29
29
  //noinspection GradleDynamicVersion
30
30
  implementation 'com.facebook.react:react-native:+'
31
31
  //noinspection GradleDependency
32
- implementation('com.regula.documentreader:api:9.6.13037'){
32
+ implementation('com.regula.documentreader:api:9.5.13040'){
33
33
  transitive = true
34
34
  }
35
35
  }
@@ -6,7 +6,7 @@ repositories {
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation('com.regula.documentreader:api:9.6.13037'){
9
+ implementation('com.regula.documentreader:api:9.5.13040'){
10
10
  transitive = true
11
11
  }
12
12
  }
package/app.plugin.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./expoPlugin');
@@ -6,9 +6,9 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/document-reader": "9.6.846-rc",
10
- "@regulaforensics/document-reader-core-fullauthrfid": "9.6.2422-rc",
11
- "@regulaforensics/document-reader-btdevice": "9.5.47-rc",
9
+ "@regulaforensics/document-reader": "9.6.852-beta",
10
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
11
+ "@regulaforensics/document-reader-btdevice": "9.4.46",
12
12
  "@awesome-cordova-plugins/file": "^8.1.0",
13
13
  "@awesome-cordova-plugins/camera": "^8.1.0",
14
14
  "cordova-plugin-file": "^8.1.3",
@@ -18,9 +18,9 @@
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.846-rc",
22
- "@regulaforensics/document-reader-core-fullauthrfid": "9.6.2422-rc",
23
- "@regulaforensics/document-reader-btdevice": "9.5.47-rc",
21
+ "@regulaforensics/document-reader": "9.6.852-beta",
22
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
23
+ "@regulaforensics/document-reader-btdevice": "9.4.46",
24
24
  "cordova-android": "^14.0.1",
25
25
  "cordova-ios": "^7.1.1",
26
26
  "cordova-plugin-camera": "^8.0.0",
@@ -36,6 +36,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
36
36
  edgeToEdgeEnabled: true
37
37
  },
38
38
  plugins: [
39
+ '@regulaforensics/document-reader',
39
40
  ['expo-custom-assets', { assetsPaths: ['./assets'] }],
40
41
  ['expo-build-properties', {
41
42
  android: {
@@ -8,9 +8,9 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "9.6.846-rc",
12
- "@regulaforensics/document-reader-core-fullauthrfid": "9.6.2422-rc",
13
- "@regulaforensics/document-reader-btdevice": "9.5.47-rc",
11
+ "@regulaforensics/document-reader": "9.6.852-beta",
12
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
13
+ "@regulaforensics/document-reader-btdevice": "9.4.46",
14
14
  "react-native": "^0.81.4",
15
15
  "react-native-fs": "^2.20.0",
16
16
  "react-native-image-picker": "^8.2.1",
package/expoPlugin.js ADDED
@@ -0,0 +1,51 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "9.6.846-rc",
3
+ "version": "9.6.852-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",
@@ -12,6 +12,9 @@
12
12
  "android"
13
13
  ]
14
14
  },
15
+ "dependencies": {
16
+ "@expo/config-plugins": "^10.0.0"
17
+ },
15
18
  "keywords": [
16
19
  "react",
17
20
  "react-native",
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.846-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.6.852-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>
@@ -13,9 +13,12 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "9.6.846-rc",
16
+ "version": "9.6.852-beta",
17
17
  "dev": true,
18
- "license": "commercial"
18
+ "license": "commercial",
19
+ "dependencies": {
20
+ "@expo/config-plugins": "^10.0.0"
21
+ }
19
22
  },
20
23
  "node_modules/@esbuild/aix-ppc64": {
21
24
  "version": "0.25.9",