@regulaforensics/react-native-document-reader-api 6.9.0 → 7.1.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 (50) 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 +690 -0
  6. package/android/src/main/java/com/regula/documentreader/JSONConstructor.kt +2188 -0
  7. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +537 -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 +256 -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 +1 -1
  18. package/example/index.js +1 -2
  19. package/example/ios/DocumentReader.xcodeproj/project.pbxproj +8 -4
  20. package/example/ios/Podfile +0 -1
  21. package/example/package-lock.json +3062 -2198
  22. package/example/package.json +24 -23
  23. package/index.d.ts +296 -135
  24. package/index.js +234 -115
  25. package/ios/RGLWConfig.h +48 -0
  26. package/ios/RGLWConfig.m +1325 -0
  27. package/ios/RGLWJSONConstructor.h +173 -69
  28. package/ios/RGLWJSONConstructor.m +1817 -762
  29. package/ios/RNRegulaDocumentReader.h +6 -5
  30. package/ios/RNRegulaDocumentReader.m +392 -584
  31. package/package.json +1 -1
  32. package/android/src/main/java/com/regula/documentreader/Helpers.java +0 -259
  33. package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +0 -1119
  34. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.java +0 -1153
  35. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderPackage.java +0 -26
  36. package/android/src/main/java/com/regula/documentreader/RegulaConfig.java +0 -830
  37. package/example/.bundle/config +0 -2
  38. package/example/.eslintrc.js +0 -4
  39. package/example/.prettierrc.js +0 -7
  40. package/example/Gemfile +0 -6
  41. package/example/Gemfile.lock +0 -98
  42. package/example/__tests__/App.test.tsx +0 -17
  43. package/example/app.json +0 -4
  44. package/example/babel.config.js +0 -3
  45. package/example/jest.config.js +0 -3
  46. package/example/tsconfig.json +0 -3
  47. package/ios/RGLWRegulaConfig.h +0 -26
  48. package/ios/RGLWRegulaConfig.m +0 -1152
  49. package/ios/RNRegulaDocumentReader.xcodeproj/project.pbxproj +0 -304
  50. package/ios/RNRegulaDocumentReader.xcworkspace/contents.xcworkspacedata +0 -9
@@ -1,304 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
- 3402D62F2277318900233F24 /* JsonConstructor.m in Sources */ = {isa = PBXBuildFile; fileRef = 3402D62E2277318900233F24 /* JsonConstructor.m */; };
11
- 340CC374227C1DB0008C4772 /* RegulaConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = 340CC373227C1DB0008C4772 /* RegulaConfig.m */; };
12
- 340FAD592271FC3200608B6F /* DocumentReader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 340FAD572271FC3200608B6F /* DocumentReader.framework */; };
13
- 340FAD5A2271FC3200608B6F /* DocumentReaderCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 340FAD582271FC3200608B6F /* DocumentReaderCore.framework */; };
14
- B3E7B58A1CC2AC0600A0062D /* RNRegulaDocumentReader.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNRegulaDocumentReader.m */; };
15
- /* End PBXBuildFile section */
16
-
17
- /* Begin PBXCopyFilesBuildPhase section */
18
- 58B511D91A9E6C8500147676 /* CopyFiles */ = {
19
- isa = PBXCopyFilesBuildPhase;
20
- buildActionMask = 2147483647;
21
- dstPath = "include/$(PRODUCT_NAME)";
22
- dstSubfolderSpec = 16;
23
- files = (
24
- );
25
- runOnlyForDeploymentPostprocessing = 0;
26
- };
27
- /* End PBXCopyFilesBuildPhase section */
28
-
29
- /* Begin PBXFileReference section */
30
- 134814201AA4EA6300B7C361 /* libRNRegulaDocumentReader.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNRegulaDocumentReader.a; sourceTree = BUILT_PRODUCTS_DIR; };
31
- 3402D62D2277318900233F24 /* JsonConstructor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JsonConstructor.h; sourceTree = "<group>"; };
32
- 3402D62E2277318900233F24 /* JsonConstructor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JsonConstructor.m; sourceTree = "<group>"; };
33
- 340CC372227C1D9B008C4772 /* RegulaConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RegulaConfig.h; sourceTree = "<group>"; };
34
- 340CC373227C1DB0008C4772 /* RegulaConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RegulaConfig.m; sourceTree = "<group>"; };
35
- 340FAD572271FC3200608B6F /* DocumentReader.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = DocumentReader.framework; sourceTree = "<group>"; };
36
- 340FAD582271FC3200608B6F /* DocumentReaderCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = DocumentReaderCore.framework; sourceTree = "<group>"; };
37
- B3E7B5881CC2AC0600A0062D /* RNRegulaDocumentReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNRegulaDocumentReader.h; sourceTree = "<group>"; };
38
- B3E7B5891CC2AC0600A0062D /* RNRegulaDocumentReader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNRegulaDocumentReader.m; sourceTree = "<group>"; };
39
- /* End PBXFileReference section */
40
-
41
- /* Begin PBXFrameworksBuildPhase section */
42
- 58B511D81A9E6C8500147676 /* Frameworks */ = {
43
- isa = PBXFrameworksBuildPhase;
44
- buildActionMask = 2147483647;
45
- files = (
46
- 340FAD592271FC3200608B6F /* DocumentReader.framework in Frameworks */,
47
- 340FAD5A2271FC3200608B6F /* DocumentReaderCore.framework in Frameworks */,
48
- );
49
- runOnlyForDeploymentPostprocessing = 0;
50
- };
51
- /* End PBXFrameworksBuildPhase section */
52
-
53
- /* Begin PBXGroup section */
54
- 134814211AA4EA7D00B7C361 /* Products */ = {
55
- isa = PBXGroup;
56
- children = (
57
- 134814201AA4EA6300B7C361 /* libRNRegulaDocumentReader.a */,
58
- );
59
- name = Products;
60
- sourceTree = "<group>";
61
- };
62
- 340FAD562271FBFC00608B6F /* Frameworks */ = {
63
- isa = PBXGroup;
64
- children = (
65
- 340FAD572271FC3200608B6F /* DocumentReader.framework */,
66
- 340FAD582271FC3200608B6F /* DocumentReaderCore.framework */,
67
- );
68
- name = Frameworks;
69
- sourceTree = "<group>";
70
- };
71
- 58B511D21A9E6C8500147676 = {
72
- isa = PBXGroup;
73
- children = (
74
- 340CC373227C1DB0008C4772 /* RegulaConfig.m */,
75
- 340CC372227C1D9B008C4772 /* RegulaConfig.h */,
76
- 3402D62D2277318900233F24 /* JsonConstructor.h */,
77
- 3402D62E2277318900233F24 /* JsonConstructor.m */,
78
- 340FAD562271FBFC00608B6F /* Frameworks */,
79
- B3E7B5881CC2AC0600A0062D /* RNRegulaDocumentReader.h */,
80
- B3E7B5891CC2AC0600A0062D /* RNRegulaDocumentReader.m */,
81
- 134814211AA4EA7D00B7C361 /* Products */,
82
- );
83
- sourceTree = "<group>";
84
- };
85
- /* End PBXGroup section */
86
-
87
- /* Begin PBXNativeTarget section */
88
- 58B511DA1A9E6C8500147676 /* RNRegulaDocumentReader */ = {
89
- isa = PBXNativeTarget;
90
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNRegulaDocumentReader" */;
91
- buildPhases = (
92
- 58B511D71A9E6C8500147676 /* Sources */,
93
- 58B511D81A9E6C8500147676 /* Frameworks */,
94
- 58B511D91A9E6C8500147676 /* CopyFiles */,
95
- );
96
- buildRules = (
97
- );
98
- dependencies = (
99
- );
100
- name = RNRegulaDocumentReader;
101
- productName = RCTDataManager;
102
- productReference = 134814201AA4EA6300B7C361 /* libRNRegulaDocumentReader.a */;
103
- productType = "com.apple.product-type.library.static";
104
- };
105
- /* End PBXNativeTarget section */
106
-
107
- /* Begin PBXProject section */
108
- 58B511D31A9E6C8500147676 /* Project object */ = {
109
- isa = PBXProject;
110
- attributes = {
111
- LastUpgradeCheck = 0830;
112
- ORGANIZATIONNAME = Facebook;
113
- TargetAttributes = {
114
- 58B511DA1A9E6C8500147676 = {
115
- CreatedOnToolsVersion = 6.1.1;
116
- };
117
- };
118
- };
119
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNRegulaDocumentReader" */;
120
- compatibilityVersion = "Xcode 3.2";
121
- developmentRegion = English;
122
- hasScannedForEncodings = 0;
123
- knownRegions = (
124
- English,
125
- en,
126
- );
127
- mainGroup = 58B511D21A9E6C8500147676;
128
- productRefGroup = 58B511D21A9E6C8500147676;
129
- projectDirPath = "";
130
- projectRoot = "";
131
- targets = (
132
- 58B511DA1A9E6C8500147676 /* RNRegulaDocumentReader */,
133
- );
134
- };
135
- /* End PBXProject section */
136
-
137
- /* Begin PBXSourcesBuildPhase section */
138
- 58B511D71A9E6C8500147676 /* Sources */ = {
139
- isa = PBXSourcesBuildPhase;
140
- buildActionMask = 2147483647;
141
- files = (
142
- 3402D62F2277318900233F24 /* JsonConstructor.m in Sources */,
143
- 340CC374227C1DB0008C4772 /* RegulaConfig.m in Sources */,
144
- B3E7B58A1CC2AC0600A0062D /* RNRegulaDocumentReader.m in Sources */,
145
- );
146
- runOnlyForDeploymentPostprocessing = 0;
147
- };
148
- /* End PBXSourcesBuildPhase section */
149
-
150
- /* Begin XCBuildConfiguration section */
151
- 58B511ED1A9E6C8500147676 /* Debug */ = {
152
- isa = XCBuildConfiguration;
153
- buildSettings = {
154
- ALWAYS_SEARCH_USER_PATHS = NO;
155
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
156
- CLANG_CXX_LIBRARY = "libc++";
157
- CLANG_ENABLE_MODULES = YES;
158
- CLANG_ENABLE_OBJC_ARC = YES;
159
- CLANG_WARN_BOOL_CONVERSION = YES;
160
- CLANG_WARN_CONSTANT_CONVERSION = YES;
161
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
162
- CLANG_WARN_EMPTY_BODY = YES;
163
- CLANG_WARN_ENUM_CONVERSION = YES;
164
- CLANG_WARN_INFINITE_RECURSION = YES;
165
- CLANG_WARN_INT_CONVERSION = YES;
166
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
167
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
168
- CLANG_WARN_UNREACHABLE_CODE = YES;
169
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
170
- COPY_PHASE_STRIP = NO;
171
- ENABLE_STRICT_OBJC_MSGSEND = YES;
172
- ENABLE_TESTABILITY = YES;
173
- GCC_C_LANGUAGE_STANDARD = gnu99;
174
- GCC_DYNAMIC_NO_PIC = NO;
175
- GCC_NO_COMMON_BLOCKS = YES;
176
- GCC_OPTIMIZATION_LEVEL = 0;
177
- GCC_PREPROCESSOR_DEFINITIONS = (
178
- "DEBUG=1",
179
- "$(inherited)",
180
- );
181
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
182
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
183
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
184
- GCC_WARN_UNDECLARED_SELECTOR = YES;
185
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
186
- GCC_WARN_UNUSED_FUNCTION = YES;
187
- GCC_WARN_UNUSED_VARIABLE = YES;
188
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
189
- MTL_ENABLE_DEBUG_INFO = YES;
190
- ONLY_ACTIVE_ARCH = YES;
191
- SDKROOT = iphoneos;
192
- };
193
- name = Debug;
194
- };
195
- 58B511EE1A9E6C8500147676 /* Release */ = {
196
- isa = XCBuildConfiguration;
197
- buildSettings = {
198
- ALWAYS_SEARCH_USER_PATHS = NO;
199
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
200
- CLANG_CXX_LIBRARY = "libc++";
201
- CLANG_ENABLE_MODULES = YES;
202
- CLANG_ENABLE_OBJC_ARC = YES;
203
- CLANG_WARN_BOOL_CONVERSION = YES;
204
- CLANG_WARN_CONSTANT_CONVERSION = YES;
205
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
206
- CLANG_WARN_EMPTY_BODY = YES;
207
- CLANG_WARN_ENUM_CONVERSION = YES;
208
- CLANG_WARN_INFINITE_RECURSION = YES;
209
- CLANG_WARN_INT_CONVERSION = YES;
210
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
211
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
212
- CLANG_WARN_UNREACHABLE_CODE = YES;
213
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
214
- COPY_PHASE_STRIP = YES;
215
- ENABLE_NS_ASSERTIONS = NO;
216
- ENABLE_STRICT_OBJC_MSGSEND = YES;
217
- GCC_C_LANGUAGE_STANDARD = gnu99;
218
- GCC_NO_COMMON_BLOCKS = YES;
219
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
220
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
221
- GCC_WARN_UNDECLARED_SELECTOR = YES;
222
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
223
- GCC_WARN_UNUSED_FUNCTION = YES;
224
- GCC_WARN_UNUSED_VARIABLE = YES;
225
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
226
- MTL_ENABLE_DEBUG_INFO = NO;
227
- SDKROOT = iphoneos;
228
- VALIDATE_PRODUCT = YES;
229
- };
230
- name = Release;
231
- };
232
- 58B511F01A9E6C8500147676 /* Debug */ = {
233
- isa = XCBuildConfiguration;
234
- buildSettings = {
235
- FRAMEWORK_SEARCH_PATHS = (
236
- "$(inherited)",
237
- "$(PROJECT_DIR)",
238
- );
239
- HEADER_SEARCH_PATHS = (
240
- "$(inherited)",
241
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
242
- "$(SRCROOT)/../../../React/**",
243
- "$(SRCROOT)/../../react-native/React/**",
244
- "$(SRCROOT)/DocumentReader.framework/Headers",
245
- );
246
- LIBRARY_SEARCH_PATHS = (
247
- "$(inherited)",
248
- "$(PROJECT_DIR)/Frameworks",
249
- );
250
- OTHER_LDFLAGS = "-ObjC";
251
- PRODUCT_NAME = RNRegulaDocumentReader;
252
- SKIP_INSTALL = YES;
253
- };
254
- name = Debug;
255
- };
256
- 58B511F11A9E6C8500147676 /* Release */ = {
257
- isa = XCBuildConfiguration;
258
- buildSettings = {
259
- FRAMEWORK_SEARCH_PATHS = (
260
- "$(inherited)",
261
- "$(PROJECT_DIR)",
262
- );
263
- HEADER_SEARCH_PATHS = (
264
- "$(inherited)",
265
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
266
- "$(SRCROOT)/../../../React/**",
267
- "$(SRCROOT)/../../react-native/React/**",
268
- "$(SRCROOT)/DocumentReader.framework/Headers",
269
- );
270
- LIBRARY_SEARCH_PATHS = (
271
- "$(inherited)",
272
- "$(PROJECT_DIR)/Frameworks",
273
- );
274
- OTHER_LDFLAGS = "-ObjC";
275
- PRODUCT_NAME = RNRegulaDocumentReader;
276
- SKIP_INSTALL = YES;
277
- };
278
- name = Release;
279
- };
280
- /* End XCBuildConfiguration section */
281
-
282
- /* Begin XCConfigurationList section */
283
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNRegulaDocumentReader" */ = {
284
- isa = XCConfigurationList;
285
- buildConfigurations = (
286
- 58B511ED1A9E6C8500147676 /* Debug */,
287
- 58B511EE1A9E6C8500147676 /* Release */,
288
- );
289
- defaultConfigurationIsVisible = 0;
290
- defaultConfigurationName = Release;
291
- };
292
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNRegulaDocumentReader" */ = {
293
- isa = XCConfigurationList;
294
- buildConfigurations = (
295
- 58B511F01A9E6C8500147676 /* Debug */,
296
- 58B511F11A9E6C8500147676 /* Release */,
297
- );
298
- defaultConfigurationIsVisible = 0;
299
- defaultConfigurationName = Release;
300
- };
301
- /* End XCConfigurationList section */
302
- };
303
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
304
- }
@@ -1,9 +0,0 @@
1
- // !$*UTF8*$!
2
- <?xml version="1.0" encoding="UTF-8"?>
3
- <Workspace
4
- version = "1.0">
5
- <FileRef
6
- location = "group:RNRegulaDocumentReader.xcodeproj">
7
- </FileRef>
8
- </Workspace>
9
-