@regulaforensics/document-reader 9.5.832-rc → 9.5.879-rc

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.
Files changed (33) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/build.gradle +1 -1
  3. package/android/cordova.gradle +1 -1
  4. package/app.plugin.js +42 -0
  5. package/examples/capacitor/ios/App/Podfile +2 -1
  6. package/examples/capacitor/package-lock.json +224 -218
  7. package/examples/capacitor/package.json +6 -3
  8. package/examples/capacitor/scripts/android.sh +1 -1
  9. package/examples/ionic/package-lock.json +1908 -2031
  10. package/examples/ionic/package.json +17 -14
  11. package/examples/ionic/scripts/android.sh +1 -1
  12. package/examples/react_native/app.config.ts +1 -0
  13. package/examples/react_native/package-lock.json +225 -180
  14. package/examples/react_native/package.json +5 -4
  15. package/examples/react_native/scripts/android.sh +1 -1
  16. package/ios/RGLWConfig.m +3 -0
  17. package/package.json +4 -1
  18. package/plugin.xml +3 -3
  19. package/test/json.tsx +1 -0
  20. package/test/package-lock.json +5 -2
  21. package/www/capacitor/index.js +2 -2
  22. package/www/capacitor/params/customization/Customization.js +13 -0
  23. package/www/capacitor/results/visual_results/FieldType.js +1 -0
  24. package/www/capacitor/rfid/RFIDErrorCodes.js +1 -1
  25. package/www/cordova.js +43 -12
  26. package/www/react-native/index.js +2 -2
  27. package/www/react-native/params/customization/Customization.js +13 -0
  28. package/www/react-native/results/visual_results/FieldType.js +1 -0
  29. package/www/react-native/rfid/RFIDErrorCodes.js +1 -1
  30. package/www/types/index.d.ts +2 -2
  31. package/www/types/params/customization/Customization.d.ts +19 -7
  32. package/www/types/results/visual_results/FieldType.d.ts +1 -0
  33. package/www/types/rfid/RFIDErrorCodes.d.ts +1 -1
@@ -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.5.832-rc'
8
+ s.version = '9.5.879-rc'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
16
16
  s.ios.deployment_target = '13.0'
17
17
  s.source_files = 'ios/**/*.{h,m}'
18
18
  s.exclude_files = [ 'ios/CVDDocumentReader.h', 'ios/CVDDocumentReader.m' ]
19
- s.dependency 'DocumentReaderStage', '9.6.6498'
19
+ s.dependency 'DocumentReaderStage', '9.6.6622'
20
20
  s.dependency 'React'
21
21
  end
@@ -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.5.12999'){
32
+ implementation('com.regula.documentreader:api:9.5.13066'){
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.5.12999'){
9
+ implementation('com.regula.documentreader:api:9.5.13066'){
10
10
  transitive = true
11
11
  }
12
12
  }
package/app.plugin.js ADDED
@@ -0,0 +1,42 @@
1
+ const { createRequire } = require('module'); // passing vulnerability checks
2
+ const { withPodfile } = createRequire(process.cwd() + '/package.json')('@expo/config-plugins');
3
+
4
+ const SOURCES = [
5
+ 'https://github.com/CocoaPods/Specs.git',
6
+ 'https://github.com/regulaforensics/podspecs.git',
7
+ ];
8
+
9
+ module.exports = function withRegulaPodSources(config) {
10
+ return withPodfile(config, (config) => {
11
+ let podfile = config.modResults.contents;
12
+
13
+ const missingSources = SOURCES.filter(
14
+ (source) =>
15
+ !podfile.includes(`source '${source}'`) &&
16
+ !podfile.includes(`source "${source}"`)
17
+ );
18
+
19
+ if (missingSources.length === 0) {
20
+ return config;
21
+ }
22
+
23
+ const header = [
24
+ '# ============================================================================',
25
+ '# Regula Pod Sources',
26
+ '# Added automatically by @regulaforensics/document-reader',
27
+ '#',
28
+ '# Sources:',
29
+ ...SOURCES.map((s) => `# - ${s}`),
30
+ '# ============================================================================',
31
+ '',
32
+ ...missingSources.map((s) => `source '${s}'`),
33
+ '',
34
+ '',
35
+ '',
36
+ ].join('\n');
37
+
38
+ config.modResults.contents = header + podfile;
39
+
40
+ return config;
41
+ });
42
+ };
@@ -1,4 +1,5 @@
1
- source "https://github.com/CocoaPods/Specs.git"
1
+ source 'https://github.com/CocoaPods/Specs.git'
2
+ source 'https://github.com/regulaforensics/podspecs.git'
2
3
 
3
4
  require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'
4
5