@regulaforensics/react-native-document-reader-api 6.9.1 → 7.2.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.
Files changed (51) hide show
  1. package/README.md +10 -42
  2. package/RNDocumentReaderApi.podspec +1 -1
  3. package/android/build.gradle +10 -10
  4. package/android/src/main/java/com/regula/documentreader/BluetoothUtil.kt +78 -74
  5. package/android/src/main/java/com/regula/documentreader/Config.kt +692 -0
  6. package/android/src/main/java/com/regula/documentreader/JSONConstructor.kt +2198 -0
  7. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +535 -0
  8. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderPackage.kt +11 -0
  9. package/android/src/main/java/com/regula/documentreader/Utils.kt +261 -0
  10. package/example/App.tsx +97 -145
  11. package/example/README.md +37 -0
  12. package/example/android/app/build.gradle +1 -1
  13. package/example/android/app/src/main/java/com/regula/dr/fullrfid/MainApplication.java +0 -1
  14. package/example/android/app/src/main/res/values/styles.xml +1 -2
  15. package/example/android/build.gradle +2 -4
  16. package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  17. package/example/android/gradle.properties +2 -2
  18. package/example/index.js +1 -2
  19. package/example/ios/DocumentReader.xcodeproj/project.pbxproj +8 -4
  20. package/example/ios/Podfile +2 -21
  21. package/example/package-lock.json +3444 -2439
  22. package/example/package.json +28 -28
  23. package/example/react-native.config.js +5 -0
  24. package/index.d.ts +1375 -446
  25. package/index.js +843 -272
  26. package/ios/RGLWConfig.h +48 -0
  27. package/ios/RGLWConfig.m +1312 -0
  28. package/ios/RGLWJSONConstructor.h +173 -69
  29. package/ios/RGLWJSONConstructor.m +1832 -786
  30. package/ios/RNRegulaDocumentReader.h +10 -9
  31. package/ios/RNRegulaDocumentReader.m +388 -587
  32. package/package.json +1 -1
  33. package/android/src/main/java/com/regula/documentreader/Helpers.java +0 -259
  34. package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +0 -1119
  35. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.java +0 -1153
  36. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderPackage.java +0 -26
  37. package/android/src/main/java/com/regula/documentreader/RegulaConfig.java +0 -830
  38. package/example/.bundle/config +0 -2
  39. package/example/.eslintrc.js +0 -4
  40. package/example/.prettierrc.js +0 -7
  41. package/example/Gemfile +0 -6
  42. package/example/Gemfile.lock +0 -98
  43. package/example/__tests__/App.test.tsx +0 -17
  44. package/example/app.json +0 -4
  45. package/example/babel.config.js +0 -3
  46. package/example/jest.config.js +0 -3
  47. package/example/tsconfig.json +0 -3
  48. package/ios/RGLWRegulaConfig.h +0 -26
  49. package/ios/RGLWRegulaConfig.m +0 -1152
  50. package/ios/RNRegulaDocumentReader.xcodeproj/project.pbxproj +0 -304
  51. package/ios/RNRegulaDocumentReader.xcworkspace/contents.xcworkspacedata +0 -9
@@ -1,2 +0,0 @@
1
- BUNDLE_PATH: "vendor/bundle"
2
- BUNDLE_FORCE_RUBY_PLATFORM: 1
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: '@react-native',
4
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- arrowParens: 'avoid',
3
- bracketSameLine: true,
4
- bracketSpacing: false,
5
- singleQuote: true,
6
- trailingComma: 'all',
7
- };
package/example/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
- ruby ">= 2.6.10"
5
-
6
- gem 'cocoapods', '~> 1.12'
@@ -1,98 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- CFPropertyList (3.0.6)
5
- rexml
6
- activesupport (7.0.5.1)
7
- concurrent-ruby (~> 1.0, >= 1.0.2)
8
- i18n (>= 1.6, < 2)
9
- minitest (>= 5.1)
10
- tzinfo (~> 2.0)
11
- addressable (2.8.4)
12
- public_suffix (>= 2.0.2, < 6.0)
13
- algoliasearch (1.27.5)
14
- httpclient (~> 2.8, >= 2.8.3)
15
- json (>= 1.5.1)
16
- atomos (0.1.3)
17
- claide (1.1.0)
18
- cocoapods (1.12.1)
19
- addressable (~> 2.8)
20
- claide (>= 1.0.2, < 2.0)
21
- cocoapods-core (= 1.12.1)
22
- cocoapods-deintegrate (>= 1.0.3, < 2.0)
23
- cocoapods-downloader (>= 1.6.0, < 2.0)
24
- cocoapods-plugins (>= 1.0.0, < 2.0)
25
- cocoapods-search (>= 1.0.0, < 2.0)
26
- cocoapods-trunk (>= 1.6.0, < 2.0)
27
- cocoapods-try (>= 1.1.0, < 2.0)
28
- colored2 (~> 3.1)
29
- escape (~> 0.0.4)
30
- fourflusher (>= 2.3.0, < 3.0)
31
- gh_inspector (~> 1.0)
32
- molinillo (~> 0.8.0)
33
- nap (~> 1.0)
34
- ruby-macho (>= 2.3.0, < 3.0)
35
- xcodeproj (>= 1.21.0, < 2.0)
36
- cocoapods-core (1.12.1)
37
- activesupport (>= 5.0, < 8)
38
- addressable (~> 2.8)
39
- algoliasearch (~> 1.0)
40
- concurrent-ruby (~> 1.1)
41
- fuzzy_match (~> 2.0.4)
42
- nap (~> 1.0)
43
- netrc (~> 0.11)
44
- public_suffix (~> 4.0)
45
- typhoeus (~> 1.0)
46
- cocoapods-deintegrate (1.0.5)
47
- cocoapods-downloader (1.6.3)
48
- cocoapods-plugins (1.0.0)
49
- nap
50
- cocoapods-search (1.0.1)
51
- cocoapods-trunk (1.6.0)
52
- nap (>= 0.8, < 2.0)
53
- netrc (~> 0.11)
54
- cocoapods-try (1.2.0)
55
- colored2 (3.1.2)
56
- concurrent-ruby (1.2.2)
57
- escape (0.0.4)
58
- ethon (0.16.0)
59
- ffi (>= 1.15.0)
60
- ffi (1.15.5)
61
- fourflusher (2.3.1)
62
- fuzzy_match (2.0.4)
63
- gh_inspector (1.1.3)
64
- httpclient (2.8.3)
65
- i18n (1.14.1)
66
- concurrent-ruby (~> 1.0)
67
- json (2.6.3)
68
- minitest (5.18.1)
69
- molinillo (0.8.0)
70
- nanaimo (0.3.0)
71
- nap (1.1.0)
72
- netrc (0.11.0)
73
- public_suffix (4.0.7)
74
- rexml (3.2.5)
75
- ruby-macho (2.5.1)
76
- typhoeus (1.4.0)
77
- ethon (>= 0.9.0)
78
- tzinfo (2.0.6)
79
- concurrent-ruby (~> 1.0)
80
- xcodeproj (1.22.0)
81
- CFPropertyList (>= 2.3.3, < 4.0)
82
- atomos (~> 0.1.3)
83
- claide (>= 1.0.2, < 2.0)
84
- colored2 (~> 3.1)
85
- nanaimo (~> 0.3.0)
86
- rexml (~> 3.2.4)
87
-
88
- PLATFORMS
89
- ruby
90
-
91
- DEPENDENCIES
92
- cocoapods (~> 1.12)
93
-
94
- RUBY VERSION
95
- ruby 2.7.6p219
96
-
97
- BUNDLED WITH
98
- 2.1.4
@@ -1,17 +0,0 @@
1
- /**
2
- * @format
3
- */
4
-
5
- import 'react-native';
6
- import React from 'react';
7
- import App from '../App';
8
-
9
- // Note: import explicitly to use the types shiped with jest.
10
- import {it} from '@jest/globals';
11
-
12
- // Note: test renderer must be required after react-native.
13
- import renderer from 'react-test-renderer';
14
-
15
- it('renders correctly', () => {
16
- renderer.create(<App />);
17
- });
package/example/app.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "name": "DocumentReader",
3
- "displayName": "DocumentReader"
4
- }
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['module:metro-react-native-babel-preset'],
3
- };
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- preset: 'react-native',
3
- };
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "@tsconfig/react-native/tsconfig.json"
3
- }
@@ -1,26 +0,0 @@
1
- #ifndef RGLWRegulaConfig_h
2
- #define RGLWRegulaConfig_h
3
- #import <DocumentReader/DocumentReader.h>
4
- #import "RGLWJSONConstructor.h"
5
- @import CoreGraphics;
6
- @import UIKit;
7
- @import AVFoundation;
8
-
9
- @interface RGLWRegulaConfig : NSObject
10
-
11
- +(void)setConfig:(NSDictionary*) options : (RGLDocReader*) reader;
12
- +(NSMutableDictionary *)getConfig:(RGLDocReader*) reader;
13
- +(void)setRfidScenario:(NSDictionary*) options : (RGLRFIDScenario*) rfidScenario;
14
- +(void)setCustomization:(NSDictionary*) options : (RGLCustomization*) customization;
15
- +(void)setFunctionality:(NSDictionary*) options : (RGLFunctionality*) functionality;
16
- +(void)setProcessParams:(NSDictionary*) options : (RGLProcessParams*) processParams;
17
- +(UIColor *)getUIColorObjectFromHexString:(NSString *)hexStr alpha:(CGFloat)alpha;
18
- +(unsigned int)intFromHexString:(NSString *)hexStr;
19
- +(RGLePassportDataGroup*)RGLePassportDataGroupFromJson:(NSDictionary *) dict;
20
- +(RGLeIDDataGroup*)RGLeIDDataGroupFromJson:(NSDictionary*) dict;
21
- +(RGLeDLDataGroup*)RGLeDLDataGroupFromJson:(NSDictionary*) dict;
22
- +(RGLImageQA*)ImageQAFromJson:(NSDictionary*) dict;
23
- +(NSDictionary*)ImageQAToJson:(RGLImageQA*) input;
24
- +(RGLOnlineProcessingConfig*)RGLOnlineProcessingConfigFromJSON:(NSDictionary*) dict;
25
- @end
26
- #endif