@regulaforensics/react-native-document-reader-api 9.10.917-rc → 9.10.918-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.
package/example/App.tsx CHANGED
@@ -4,7 +4,6 @@ import DocumentReader, { Enum, DocumentReaderCompletion, DocumentReaderScenario,
4
4
  import * as RNFS from 'react-native-fs'
5
5
  import RadioGroup, { RadioButtonProps } from 'react-native-radio-buttons-group'
6
6
  import { launchImageLibrary } from 'react-native-image-picker'
7
- import * as Progress from 'react-native-progress'
8
7
 
9
8
  var isReadingRfid = false
10
9
 
@@ -237,6 +236,7 @@ export default class App extends React.Component<IProps, IState> {
237
236
  }
238
237
 
239
238
  render() {
239
+ const progress = Math.max(0, Math.min(1, this.state.rfidProgress))
240
240
  return (
241
241
  <View style={styles.container}>
242
242
  {!this.state.isReadingRfidCustomUi && <View style={styles.container}>
@@ -285,8 +285,11 @@ export default class App extends React.Component<IProps, IState> {
285
285
  {(this.state.isReadingRfidCustomUi) && <View style={styles.container}>
286
286
  <Text style={{ paddingBottom: 30, fontSize: 23, color: this.state.rfidUIHeaderColor }}>{this.state.rfidUIHeader}</Text>
287
287
  <Text style={{ paddingBottom: 50, fontSize: 20 }}>{this.state.rfidDescription}</Text>
288
- <View style={{ marginBottom: 30 }}>
289
- <Progress.Bar width={200} useNativeDriver={true} color="#4285F4" progress={Math.max(0, Math.min(1, this.state.rfidProgress))} />
288
+ <View
289
+ accessibilityRole="progressbar"
290
+ accessibilityValue={{ min: 0, max: 100, now: Math.round(progress * 100) }}
291
+ style={{ marginBottom: 30, width: 200, height: 8, borderWidth: 1, borderColor: '#4285F4', borderRadius: 4, overflow: 'hidden' }}>
292
+ <View style={{ width: `${progress * 100}%`, height: '100%', backgroundColor: '#4285F4' }} />
290
293
  </View>
291
294
  <TouchableOpacity style={styles.cancelButton} onPress={() => { this.hideRfidUI() }}>
292
295
  <Text style={{ fontSize: 20 }}>X</Text>
@@ -7,33 +7,18 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 00E356F31AD99517003FC87E /* DocumentReaderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* DocumentReaderTests.m */; };
11
10
  0C80B921A6F3F58F76C31292 /* libPods-DocumentReader.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-DocumentReader.a */; };
12
11
  13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
13
12
  13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
14
13
  13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15
14
  34A6AF2E2B862E4E00266440 /* db.dat in Resources */ = {isa = PBXBuildFile; fileRef = 34A6AF2D2B862E4E00266440 /* db.dat */; };
16
15
  34B2241A2B61327D009FDA33 /* regula.license in Resources */ = {isa = PBXBuildFile; fileRef = 34B224192B61327D009FDA33 /* regula.license */; };
17
- 7699B88040F8A987B510C191 /* libPods-DocumentReader-DocumentReaderTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-DocumentReader-DocumentReaderTests.a */; };
18
16
  81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
19
17
  970CEEFE26CC4F5086D8C455 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 0B138461659C02ED353D3184 /* PrivacyInfo.xcprivacy */; };
20
18
  A12700000000000000000001 /* SceneDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = A12700000000000000000002 /* SceneDelegate.mm */; };
21
19
  /* End PBXBuildFile section */
22
20
 
23
- /* Begin PBXContainerItemProxy section */
24
- 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
25
- isa = PBXContainerItemProxy;
26
- containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
27
- proxyType = 1;
28
- remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
29
- remoteInfo = DocumentReader;
30
- };
31
- /* End PBXContainerItemProxy section */
32
-
33
21
  /* Begin PBXFileReference section */
34
- 00E356EE1AD99517003FC87E /* DocumentReaderTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DocumentReaderTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
35
- 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
36
- 00E356F21AD99517003FC87E /* DocumentReaderTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DocumentReaderTests.m; sourceTree = "<group>"; };
37
22
  0B138461659C02ED353D3184 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = DocumentReader/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
38
23
  13B07F961A680F5B00A75B9A /* DocumentReader.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DocumentReader.app; sourceTree = BUILT_PRODUCTS_DIR; };
39
24
  13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = DocumentReader/AppDelegate.h; sourceTree = "<group>"; };
@@ -41,30 +26,18 @@
41
26
  13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = DocumentReader/Images.xcassets; sourceTree = "<group>"; };
42
27
  13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = DocumentReader/Info.plist; sourceTree = "<group>"; };
43
28
  13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = DocumentReader/main.m; sourceTree = "<group>"; };
44
- 19F6CBCC0A4E27FBF8BF4A61 /* libPods-DocumentReader-DocumentReaderTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-DocumentReader-DocumentReaderTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
45
29
  3471549F2A4D9A1500361434 /* DocumentReader.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = DocumentReader.entitlements; path = DocumentReader/DocumentReader.entitlements; sourceTree = "<group>"; };
46
30
  34A6AF2D2B862E4E00266440 /* db.dat */ = {isa = PBXFileReference; lastKnownFileType = file; path = db.dat; sourceTree = "<group>"; };
47
31
  34B224192B61327D009FDA33 /* regula.license */ = {isa = PBXFileReference; lastKnownFileType = file; path = regula.license; sourceTree = "<group>"; };
48
32
  3B4392A12AC88292D35C810B /* Pods-DocumentReader.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DocumentReader.debug.xcconfig"; path = "Target Support Files/Pods-DocumentReader/Pods-DocumentReader.debug.xcconfig"; sourceTree = "<group>"; };
49
33
  5709B34CF0A7D63546082F79 /* Pods-DocumentReader.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DocumentReader.release.xcconfig"; path = "Target Support Files/Pods-DocumentReader/Pods-DocumentReader.release.xcconfig"; sourceTree = "<group>"; };
50
- 5B7EB9410499542E8C5724F5 /* Pods-DocumentReader-DocumentReaderTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DocumentReader-DocumentReaderTests.debug.xcconfig"; path = "Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests.debug.xcconfig"; sourceTree = "<group>"; };
51
34
  5DCACB8F33CDC322A6C60F78 /* libPods-DocumentReader.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-DocumentReader.a"; sourceTree = BUILT_PRODUCTS_DIR; };
52
35
  81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = DocumentReader/LaunchScreen.storyboard; sourceTree = "<group>"; };
53
- 89C6BE57DB24E9ADA2F236DE /* Pods-DocumentReader-DocumentReaderTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DocumentReader-DocumentReaderTests.release.xcconfig"; path = "Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests.release.xcconfig"; sourceTree = "<group>"; };
54
36
  A12700000000000000000002 /* SceneDelegate.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = SceneDelegate.mm; path = DocumentReader/SceneDelegate.mm; sourceTree = "<group>"; };
55
37
  A12700000000000000000003 /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SceneDelegate.h; path = DocumentReader/SceneDelegate.h; sourceTree = "<group>"; };
56
- ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
57
38
  /* End PBXFileReference section */
58
39
 
59
40
  /* Begin PBXFrameworksBuildPhase section */
60
- 00E356EB1AD99517003FC87E /* Frameworks */ = {
61
- isa = PBXFrameworksBuildPhase;
62
- buildActionMask = 2147483647;
63
- files = (
64
- 7699B88040F8A987B510C191 /* libPods-DocumentReader-DocumentReaderTests.a in Frameworks */,
65
- );
66
- runOnlyForDeploymentPostprocessing = 0;
67
- };
68
41
  13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
69
42
  isa = PBXFrameworksBuildPhase;
70
43
  buildActionMask = 2147483647;
@@ -76,23 +49,6 @@
76
49
  /* End PBXFrameworksBuildPhase section */
77
50
 
78
51
  /* Begin PBXGroup section */
79
- 00E356EF1AD99517003FC87E /* DocumentReaderTests */ = {
80
- isa = PBXGroup;
81
- children = (
82
- 00E356F21AD99517003FC87E /* DocumentReaderTests.m */,
83
- 00E356F01AD99517003FC87E /* Supporting Files */,
84
- );
85
- path = DocumentReaderTests;
86
- sourceTree = "<group>";
87
- };
88
- 00E356F01AD99517003FC87E /* Supporting Files */ = {
89
- isa = PBXGroup;
90
- children = (
91
- 00E356F11AD99517003FC87E /* Info.plist */,
92
- );
93
- name = "Supporting Files";
94
- sourceTree = "<group>";
95
- };
96
52
  13B07FAE1A68108700A75B9A /* DocumentReader */ = {
97
53
  isa = PBXGroup;
98
54
  children = (
@@ -115,9 +71,7 @@
115
71
  2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
116
72
  isa = PBXGroup;
117
73
  children = (
118
- ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
119
74
  5DCACB8F33CDC322A6C60F78 /* libPods-DocumentReader.a */,
120
- 19F6CBCC0A4E27FBF8BF4A61 /* libPods-DocumentReader-DocumentReaderTests.a */,
121
75
  );
122
76
  name = Frameworks;
123
77
  sourceTree = "<group>";
@@ -134,7 +88,6 @@
134
88
  children = (
135
89
  13B07FAE1A68108700A75B9A /* DocumentReader */,
136
90
  832341AE1AAA6A7D00B99B32 /* Libraries */,
137
- 00E356EF1AD99517003FC87E /* DocumentReaderTests */,
138
91
  83CBBA001A601CBA00E9B192 /* Products */,
139
92
  2D16E6871FA4F8E400B85C8A /* Frameworks */,
140
93
  BBD78D7AC51CEA395F1C20DB /* Pods */,
@@ -148,7 +101,6 @@
148
101
  isa = PBXGroup;
149
102
  children = (
150
103
  13B07F961A680F5B00A75B9A /* DocumentReader.app */,
151
- 00E356EE1AD99517003FC87E /* DocumentReaderTests.xctest */,
152
104
  );
153
105
  name = Products;
154
106
  sourceTree = "<group>";
@@ -158,8 +110,6 @@
158
110
  children = (
159
111
  3B4392A12AC88292D35C810B /* Pods-DocumentReader.debug.xcconfig */,
160
112
  5709B34CF0A7D63546082F79 /* Pods-DocumentReader.release.xcconfig */,
161
- 5B7EB9410499542E8C5724F5 /* Pods-DocumentReader-DocumentReaderTests.debug.xcconfig */,
162
- 89C6BE57DB24E9ADA2F236DE /* Pods-DocumentReader-DocumentReaderTests.release.xcconfig */,
163
113
  );
164
114
  path = Pods;
165
115
  sourceTree = "<group>";
@@ -167,27 +117,6 @@
167
117
  /* End PBXGroup section */
168
118
 
169
119
  /* Begin PBXNativeTarget section */
170
- 00E356ED1AD99517003FC87E /* DocumentReaderTests */ = {
171
- isa = PBXNativeTarget;
172
- buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DocumentReaderTests" */;
173
- buildPhases = (
174
- A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */,
175
- 00E356EA1AD99517003FC87E /* Sources */,
176
- 00E356EB1AD99517003FC87E /* Frameworks */,
177
- 00E356EC1AD99517003FC87E /* Resources */,
178
- C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */,
179
- F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */,
180
- );
181
- buildRules = (
182
- );
183
- dependencies = (
184
- 00E356F51AD99517003FC87E /* PBXTargetDependency */,
185
- );
186
- name = DocumentReaderTests;
187
- productName = DocumentReaderTests;
188
- productReference = 00E356EE1AD99517003FC87E /* DocumentReaderTests.xctest */;
189
- productType = "com.apple.product-type.bundle.unit-test";
190
- };
191
120
  13B07F861A680F5B00A75B9A /* DocumentReader */ = {
192
121
  isa = PBXNativeTarget;
193
122
  buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DocumentReader" */;
@@ -217,10 +146,6 @@
217
146
  attributes = {
218
147
  LastUpgradeCheck = 1210;
219
148
  TargetAttributes = {
220
- 00E356ED1AD99517003FC87E = {
221
- CreatedOnToolsVersion = 6.2;
222
- TestTargetID = 13B07F861A680F5B00A75B9A;
223
- };
224
149
  13B07F861A680F5B00A75B9A = {
225
150
  LastSwiftMigration = 1120;
226
151
  };
@@ -240,19 +165,11 @@
240
165
  projectRoot = "";
241
166
  targets = (
242
167
  13B07F861A680F5B00A75B9A /* DocumentReader */,
243
- 00E356ED1AD99517003FC87E /* DocumentReaderTests */,
244
168
  );
245
169
  };
246
170
  /* End PBXProject section */
247
171
 
248
172
  /* Begin PBXResourcesBuildPhase section */
249
- 00E356EC1AD99517003FC87E /* Resources */ = {
250
- isa = PBXResourcesBuildPhase;
251
- buildActionMask = 2147483647;
252
- files = (
253
- );
254
- runOnlyForDeploymentPostprocessing = 0;
255
- };
256
173
  13B07F8E1A680F5B00A75B9A /* Resources */ = {
257
174
  isa = PBXResourcesBuildPhase;
258
175
  buildActionMask = 2147483647;
@@ -301,28 +218,6 @@
301
218
  shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DocumentReader/Pods-DocumentReader-frameworks.sh\"\n";
302
219
  showEnvVarsInLog = 0;
303
220
  };
304
- A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = {
305
- isa = PBXShellScriptBuildPhase;
306
- buildActionMask = 2147483647;
307
- files = (
308
- );
309
- inputFileListPaths = (
310
- );
311
- inputPaths = (
312
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
313
- "${PODS_ROOT}/Manifest.lock",
314
- );
315
- name = "[CP] Check Pods Manifest.lock";
316
- outputFileListPaths = (
317
- );
318
- outputPaths = (
319
- "$(DERIVED_FILE_DIR)/Pods-DocumentReader-DocumentReaderTests-checkManifestLockResult.txt",
320
- );
321
- runOnlyForDeploymentPostprocessing = 0;
322
- shellPath = /bin/sh;
323
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
324
- showEnvVarsInLog = 0;
325
- };
326
221
  C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = {
327
222
  isa = PBXShellScriptBuildPhase;
328
223
  buildActionMask = 2147483647;
@@ -345,23 +240,6 @@
345
240
  shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
346
241
  showEnvVarsInLog = 0;
347
242
  };
348
- C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */ = {
349
- isa = PBXShellScriptBuildPhase;
350
- buildActionMask = 2147483647;
351
- files = (
352
- );
353
- inputFileListPaths = (
354
- "${PODS_ROOT}/Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
355
- );
356
- name = "[CP] Embed Pods Frameworks";
357
- outputFileListPaths = (
358
- "${PODS_ROOT}/Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
359
- );
360
- runOnlyForDeploymentPostprocessing = 0;
361
- shellPath = /bin/sh;
362
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests-frameworks.sh\"\n";
363
- showEnvVarsInLog = 0;
364
- };
365
243
  E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = {
366
244
  isa = PBXShellScriptBuildPhase;
367
245
  buildActionMask = 2147483647;
@@ -379,34 +257,9 @@
379
257
  shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DocumentReader/Pods-DocumentReader-resources.sh\"\n";
380
258
  showEnvVarsInLog = 0;
381
259
  };
382
- F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */ = {
383
- isa = PBXShellScriptBuildPhase;
384
- buildActionMask = 2147483647;
385
- files = (
386
- );
387
- inputFileListPaths = (
388
- "${PODS_ROOT}/Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests-resources-${CONFIGURATION}-input-files.xcfilelist",
389
- );
390
- name = "[CP] Copy Pods Resources";
391
- outputFileListPaths = (
392
- "${PODS_ROOT}/Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests-resources-${CONFIGURATION}-output-files.xcfilelist",
393
- );
394
- runOnlyForDeploymentPostprocessing = 0;
395
- shellPath = /bin/sh;
396
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DocumentReader-DocumentReaderTests/Pods-DocumentReader-DocumentReaderTests-resources.sh\"\n";
397
- showEnvVarsInLog = 0;
398
- };
399
260
  /* End PBXShellScriptBuildPhase section */
400
261
 
401
262
  /* Begin PBXSourcesBuildPhase section */
402
- 00E356EA1AD99517003FC87E /* Sources */ = {
403
- isa = PBXSourcesBuildPhase;
404
- buildActionMask = 2147483647;
405
- files = (
406
- 00E356F31AD99517003FC87E /* DocumentReaderTests.m in Sources */,
407
- );
408
- runOnlyForDeploymentPostprocessing = 0;
409
- };
410
263
  13B07F871A680F5B00A75B9A /* Sources */ = {
411
264
  isa = PBXSourcesBuildPhase;
412
265
  buildActionMask = 2147483647;
@@ -419,66 +272,7 @@
419
272
  };
420
273
  /* End PBXSourcesBuildPhase section */
421
274
 
422
- /* Begin PBXTargetDependency section */
423
- 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
424
- isa = PBXTargetDependency;
425
- target = 13B07F861A680F5B00A75B9A /* DocumentReader */;
426
- targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
427
- };
428
- /* End PBXTargetDependency section */
429
-
430
275
  /* Begin XCBuildConfiguration section */
431
- 00E356F61AD99517003FC87E /* Debug */ = {
432
- isa = XCBuildConfiguration;
433
- baseConfigurationReference = 5B7EB9410499542E8C5724F5 /* Pods-DocumentReader-DocumentReaderTests.debug.xcconfig */;
434
- buildSettings = {
435
- BUNDLE_LOADER = "$(TEST_HOST)";
436
- GCC_PREPROCESSOR_DEFINITIONS = (
437
- "DEBUG=1",
438
- "$(inherited)",
439
- );
440
- INFOPLIST_FILE = DocumentReaderTests/Info.plist;
441
- IPHONEOS_DEPLOYMENT_TARGET = 17.6;
442
- LD_RUNPATH_SEARCH_PATHS = (
443
- "$(inherited)",
444
- "@executable_path/Frameworks",
445
- "@loader_path/Frameworks",
446
- );
447
- OTHER_LDFLAGS = (
448
- "-ObjC",
449
- "-lc++",
450
- "$(inherited)",
451
- );
452
- PRODUCT_BUNDLE_IDENTIFIER = com.regula.dr.fullrfid;
453
- PRODUCT_NAME = "$(TARGET_NAME)";
454
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DocumentReader.app/DocumentReader";
455
- };
456
- name = Debug;
457
- };
458
- 00E356F71AD99517003FC87E /* Release */ = {
459
- isa = XCBuildConfiguration;
460
- baseConfigurationReference = 89C6BE57DB24E9ADA2F236DE /* Pods-DocumentReader-DocumentReaderTests.release.xcconfig */;
461
- buildSettings = {
462
- BUNDLE_LOADER = "$(TEST_HOST)";
463
- COPY_PHASE_STRIP = NO;
464
- INFOPLIST_FILE = DocumentReaderTests/Info.plist;
465
- IPHONEOS_DEPLOYMENT_TARGET = 17.6;
466
- LD_RUNPATH_SEARCH_PATHS = (
467
- "$(inherited)",
468
- "@executable_path/Frameworks",
469
- "@loader_path/Frameworks",
470
- );
471
- OTHER_LDFLAGS = (
472
- "-ObjC",
473
- "-lc++",
474
- "$(inherited)",
475
- );
476
- PRODUCT_BUNDLE_IDENTIFIER = com.regula.dr.fullrfid;
477
- PRODUCT_NAME = "$(TARGET_NAME)";
478
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DocumentReader.app/DocumentReader";
479
- };
480
- name = Release;
481
- };
482
276
  13B07F941A680F5B00A75B9A /* Debug */ = {
483
277
  isa = XCBuildConfiguration;
484
278
  baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-DocumentReader.debug.xcconfig */;
@@ -704,15 +498,6 @@
704
498
  /* End XCBuildConfiguration section */
705
499
 
706
500
  /* Begin XCConfigurationList section */
707
- 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DocumentReaderTests" */ = {
708
- isa = XCConfigurationList;
709
- buildConfigurations = (
710
- 00E356F61AD99517003FC87E /* Debug */,
711
- 00E356F71AD99517003FC87E /* Release */,
712
- );
713
- defaultConfigurationIsVisible = 0;
714
- defaultConfigurationName = Release;
715
- };
716
501
  13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DocumentReader" */ = {
717
502
  isa = XCConfigurationList;
718
503
  buildConfigurations = (
@@ -22,24 +22,6 @@
22
22
  </BuildActionEntry>
23
23
  </BuildActionEntries>
24
24
  </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
- BuildableName = "DocumentReaderTests.xctest"
37
- BlueprintName = "DocumentReaderTests"
38
- ReferencedContainer = "container:DocumentReader.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
- </Testables>
42
- </TestAction>
43
25
  <LaunchAction
44
26
  buildConfiguration = "Debug"
45
27
  selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
@@ -26,10 +26,6 @@ target 'DocumentReader' do
26
26
  :app_path => "#{Pod::Config.instance.installation_root}/.."
27
27
  )
28
28
 
29
- target 'DocumentReaderTests' do
30
- inherit! :complete
31
- end
32
-
33
29
  post_install do |installer|
34
30
  # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
35
31
  react_native_post_install(
@@ -1,21 +1,3 @@
1
- const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
1
+ const { getDefaultConfig } = require('@react-native/metro-config');
2
2
 
3
- const path = require('path');
4
- const folders = [
5
- path.resolve(path.join(__dirname, './node_modules'))
6
- ];
7
-
8
- /**
9
- * Metro configuration
10
- * https://facebook.github.io/metro/docs/configuration
11
- *
12
- * @type {import('metro-config').MetroConfig}
13
- */
14
- const config = {
15
- resolver: {
16
- nodeModulesPaths: folders
17
- },
18
- watchFolders: folders,
19
- };
20
-
21
- module.exports = mergeConfig(getDefaultConfig(__dirname), config);
3
+ module.exports = getDefaultConfig(__dirname);
@@ -14,9 +14,7 @@
14
14
  "react-native": "0.88.1",
15
15
  "react-native-fs": "2.20.0",
16
16
  "react-native-image-picker": "8.3.0",
17
- "react-native-progress": "5.0.1",
18
- "react-native-radio-buttons-group": "3.1.0",
19
- "react-native-svg": "15.16.0"
17
+ "react-native-radio-buttons-group": "3.1.0"
20
18
  },
21
19
  "devDependencies": {
22
20
  "@babel/core": "^7.29.0",
@@ -26,9 +24,9 @@
26
24
  "@react-native-community/cli-platform-ios": "20.2.0",
27
25
  "@react-native/babel-preset": "0.88.1",
28
26
  "@react-native/metro-config": "0.88.1",
27
+ "@react-native/typescript-config": "0.88.1",
29
28
  "@types/react": "^19.3.0",
30
- "typescript": "6.0.3",
31
- "@react-native/typescript-config": "0.88.1"
29
+ "typescript": "6.0.3"
32
30
  },
33
31
  "engines": {
34
32
  "node": "^22.13.0 || ^24.3.0 || >=26.0.0"
@@ -2060,12 +2058,6 @@
2060
2058
  "url": "https://opencollective.com/express"
2061
2059
  }
2062
2060
  },
2063
- "node_modules/boolbase": {
2064
- "version": "1.0.0",
2065
- "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
2066
- "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
2067
- "license": "ISC"
2068
- },
2069
2061
  "node_modules/braces": {
2070
2062
  "version": "3.0.3",
2071
2063
  "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
@@ -2514,56 +2506,6 @@
2514
2506
  "node": ">= 8"
2515
2507
  }
2516
2508
  },
2517
- "node_modules/css-select": {
2518
- "version": "5.2.2",
2519
- "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz",
2520
- "integrity": "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==",
2521
- "license": "BSD-2-Clause",
2522
- "dependencies": {
2523
- "boolbase": "^1.0.0",
2524
- "css-what": "^6.1.0",
2525
- "domhandler": "^5.0.2",
2526
- "domutils": "^3.0.1",
2527
- "nth-check": "^2.0.1"
2528
- },
2529
- "funding": {
2530
- "url": "https://github.com/sponsors/fb55"
2531
- }
2532
- },
2533
- "node_modules/css-tree": {
2534
- "version": "1.1.3",
2535
- "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
2536
- "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==",
2537
- "license": "MIT",
2538
- "dependencies": {
2539
- "mdn-data": "2.0.14",
2540
- "source-map": "^0.6.1"
2541
- },
2542
- "engines": {
2543
- "node": ">=8.0.0"
2544
- }
2545
- },
2546
- "node_modules/css-tree/node_modules/source-map": {
2547
- "version": "0.6.1",
2548
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
2549
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
2550
- "license": "BSD-3-Clause",
2551
- "engines": {
2552
- "node": ">=0.10.0"
2553
- }
2554
- },
2555
- "node_modules/css-what": {
2556
- "version": "6.2.2",
2557
- "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz",
2558
- "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==",
2559
- "license": "BSD-2-Clause",
2560
- "engines": {
2561
- "node": ">= 6"
2562
- },
2563
- "funding": {
2564
- "url": "https://github.com/sponsors/fb55"
2565
- }
2566
- },
2567
2509
  "node_modules/csstype": {
2568
2510
  "version": "3.2.3",
2569
2511
  "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
@@ -2656,61 +2598,6 @@
2656
2598
  "npm": "1.2.8000 || >= 1.4.16"
2657
2599
  }
2658
2600
  },
2659
- "node_modules/dom-serializer": {
2660
- "version": "2.0.0",
2661
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
2662
- "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==",
2663
- "license": "MIT",
2664
- "dependencies": {
2665
- "domelementtype": "^2.3.0",
2666
- "domhandler": "^5.0.2",
2667
- "entities": "^4.2.0"
2668
- },
2669
- "funding": {
2670
- "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
2671
- }
2672
- },
2673
- "node_modules/domelementtype": {
2674
- "version": "2.3.0",
2675
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",
2676
- "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
2677
- "funding": [
2678
- {
2679
- "type": "github",
2680
- "url": "https://github.com/sponsors/fb55"
2681
- }
2682
- ],
2683
- "license": "BSD-2-Clause"
2684
- },
2685
- "node_modules/domhandler": {
2686
- "version": "5.0.3",
2687
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz",
2688
- "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==",
2689
- "license": "BSD-2-Clause",
2690
- "dependencies": {
2691
- "domelementtype": "^2.3.0"
2692
- },
2693
- "engines": {
2694
- "node": ">= 4"
2695
- },
2696
- "funding": {
2697
- "url": "https://github.com/fb55/domhandler?sponsor=1"
2698
- }
2699
- },
2700
- "node_modules/domutils": {
2701
- "version": "3.2.2",
2702
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",
2703
- "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",
2704
- "license": "BSD-2-Clause",
2705
- "dependencies": {
2706
- "dom-serializer": "^2.0.0",
2707
- "domelementtype": "^2.3.0",
2708
- "domhandler": "^5.0.3"
2709
- },
2710
- "funding": {
2711
- "url": "https://github.com/fb55/domutils?sponsor=1"
2712
- }
2713
- },
2714
2601
  "node_modules/dunder-proto": {
2715
2602
  "version": "1.0.1",
2716
2603
  "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
@@ -2753,18 +2640,6 @@
2753
2640
  "node": ">= 0.8"
2754
2641
  }
2755
2642
  },
2756
- "node_modules/entities": {
2757
- "version": "4.5.0",
2758
- "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
2759
- "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
2760
- "license": "BSD-2-Clause",
2761
- "engines": {
2762
- "node": ">=0.12"
2763
- },
2764
- "funding": {
2765
- "url": "https://github.com/fb55/entities?sponsor=1"
2766
- }
2767
- },
2768
2643
  "node_modules/env-paths": {
2769
2644
  "version": "2.2.1",
2770
2645
  "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
@@ -3943,12 +3818,6 @@
3943
3818
  "node": ">= 0.4"
3944
3819
  }
3945
3820
  },
3946
- "node_modules/mdn-data": {
3947
- "version": "2.0.14",
3948
- "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz",
3949
- "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==",
3950
- "license": "CC0-1.0"
3951
- },
3952
3821
  "node_modules/media-typer": {
3953
3822
  "version": "1.1.1",
3954
3823
  "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz",
@@ -4680,18 +4549,6 @@
4680
4549
  "node": ">=8"
4681
4550
  }
4682
4551
  },
4683
- "node_modules/nth-check": {
4684
- "version": "2.1.1",
4685
- "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
4686
- "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
4687
- "license": "BSD-2-Clause",
4688
- "dependencies": {
4689
- "boolbase": "^1.0.0"
4690
- },
4691
- "funding": {
4692
- "url": "https://github.com/fb55/nth-check?sponsor=1"
4693
- }
4694
- },
4695
4552
  "node_modules/nullthrows": {
4696
4553
  "version": "1.1.1",
4697
4554
  "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz",
@@ -4710,15 +4567,6 @@
4710
4567
  "node": "^22.13.0 || ^24.3.0 || >= 26.0.0"
4711
4568
  }
4712
4569
  },
4713
- "node_modules/object-assign": {
4714
- "version": "4.1.1",
4715
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
4716
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
4717
- "license": "MIT",
4718
- "engines": {
4719
- "node": ">=0.10.0"
4720
- }
4721
- },
4722
4570
  "node_modules/object-inspect": {
4723
4571
  "version": "1.13.4",
4724
4572
  "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
@@ -5016,23 +4864,6 @@
5016
4864
  "node": ">= 6"
5017
4865
  }
5018
4866
  },
5019
- "node_modules/prop-types": {
5020
- "version": "15.8.1",
5021
- "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
5022
- "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
5023
- "license": "MIT",
5024
- "dependencies": {
5025
- "loose-envify": "^1.4.0",
5026
- "object-assign": "^4.1.1",
5027
- "react-is": "^16.13.1"
5028
- }
5029
- },
5030
- "node_modules/prop-types/node_modules/react-is": {
5031
- "version": "16.13.1",
5032
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
5033
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
5034
- "license": "MIT"
5035
- },
5036
4867
  "node_modules/qs": {
5037
4868
  "version": "6.17.1",
5038
4869
  "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz",
@@ -5223,38 +5054,12 @@
5223
5054
  "react-native": "*"
5224
5055
  }
5225
5056
  },
5226
- "node_modules/react-native-progress": {
5227
- "version": "5.0.1",
5228
- "resolved": "https://registry.npmjs.org/react-native-progress/-/react-native-progress-5.0.1.tgz",
5229
- "integrity": "sha512-TYfJ4auAe5vubDma2yfFvt7ktSI+UCfysqJnkdHEcLXqAitRFOozgF/cLgN5VNi/iLdaf3ga1ETi2RF4jVZ/+g==",
5230
- "license": "MIT",
5231
- "dependencies": {
5232
- "prop-types": "^15.7.2"
5233
- },
5234
- "peerDependencies": {
5235
- "react-native-svg": "*"
5236
- }
5237
- },
5238
5057
  "node_modules/react-native-radio-buttons-group": {
5239
5058
  "version": "3.1.0",
5240
5059
  "resolved": "https://registry.npmjs.org/react-native-radio-buttons-group/-/react-native-radio-buttons-group-3.1.0.tgz",
5241
5060
  "integrity": "sha512-DiNM1yI6WfRygUZ+Z/bsjggyLypXsxRNXPNYpPHXSEVbRD6uF5Aei+HMIwyeRbfMKPtHwLq7cGsmUDV01i+rOQ==",
5242
5061
  "license": "MIT"
5243
5062
  },
5244
- "node_modules/react-native-svg": {
5245
- "version": "15.16.0",
5246
- "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.16.0.tgz",
5247
- "integrity": "sha512-uh8yktufYeRU3W9Omi8+SPyLF9BVN4JmLflSgc9oOcKkSKk/S5JUmmTjKZq/L8GHfQUtCvcu/W6X4xhEfBBAjQ==",
5248
- "license": "MIT",
5249
- "dependencies": {
5250
- "css-select": "^5.1.0",
5251
- "css-tree": "^1.1.3"
5252
- },
5253
- "peerDependencies": {
5254
- "react": "*",
5255
- "react-native": "*"
5256
- }
5257
- },
5258
5063
  "node_modules/react-native/node_modules/semver": {
5259
5064
  "version": "7.8.6",
5260
5065
  "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",
@@ -4,25 +4,20 @@
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "android": "react-native run-android --no-packager",
7
- "ios": "react-native run-ios --no-packager",
8
- "start": "react-native start"
7
+ "ios": "react-native run-ios --no-packager"
9
8
  },
10
9
  "dependencies": {
11
- "@regulaforensics/react-native-document-reader-api": "9.10.917-rc",
10
+ "@regulaforensics/react-native-document-reader-api": "9.10.918-rc",
12
11
  "@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.10.3862-rc",
13
12
  "react": "19.3.1",
14
13
  "react-native": "0.88.1",
15
14
  "react-native-fs": "2.20.0",
16
15
  "react-native-image-picker": "8.3.0",
17
- "react-native-progress": "5.0.1",
18
- "react-native-radio-buttons-group": "3.1.0",
19
- "react-native-svg": "15.16.0"
16
+ "react-native-radio-buttons-group": "3.1.0"
20
17
  },
21
18
  "overrides": {
22
19
  "fast-xml-parser": "^5.5.8",
23
- "js-yaml": "^4.1.1",
24
- "glob": "^14.0.3",
25
- "minimatch": "^11.0.4"
20
+ "js-yaml": "^4.1.1"
26
21
  },
27
22
  "devDependencies": {
28
23
  "@babel/core": "^7.29.0",
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "extends": "@react-native/typescript-config",
3
+ "compilerOptions": { "types": ["react-native"] },
3
4
  "include": ["**/*.ts", "**/*.tsx"],
4
5
  "exclude": ["**/node_modules", "**/Pods"]
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "9.10.917-rc",
3
+ "version": "9.10.918-rc",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- xmlns:tools="http://schemas.android.com/tools">
4
-
5
- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6
-
7
- <application
8
- android:usesCleartextTraffic="true"
9
- tools:targetApi="28"
10
- tools:ignore="GoogleAppIndexingWarning">
11
- <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
12
- </application>
13
- </manifest>
@@ -1,66 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
- #import <XCTest/XCTest.h>
3
-
4
- #import <React/RCTLog.h>
5
- #import <React/RCTRootView.h>
6
-
7
- #define TIMEOUT_SECONDS 600
8
- #define TEXT_TO_LOOK_FOR @"Welcome to React"
9
-
10
- @interface DocumentReaderTests : XCTestCase
11
-
12
- @end
13
-
14
- @implementation DocumentReaderTests
15
-
16
- - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
17
- {
18
- if (test(view)) {
19
- return YES;
20
- }
21
- for (UIView *subview in [view subviews]) {
22
- if ([self findSubviewInView:subview matching:test]) {
23
- return YES;
24
- }
25
- }
26
- return NO;
27
- }
28
-
29
- - (void)testRendersWelcomeScreen
30
- {
31
- UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32
- NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33
- BOOL foundElement = NO;
34
-
35
- __block NSString *redboxError = nil;
36
- #ifdef DEBUG
37
- RCTSetLogFunction(
38
- ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
39
- if (level >= RCTLogLevelError) {
40
- redboxError = message;
41
- }
42
- });
43
- #endif
44
-
45
- while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
46
- [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47
- [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
48
-
49
- foundElement = [self findSubviewInView:vc.view
50
- matching:^BOOL(UIView *view) {
51
- if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
52
- return YES;
53
- }
54
- return NO;
55
- }];
56
- }
57
-
58
- #ifdef DEBUG
59
- RCTSetLogFunction(RCTDefaultLogFunction);
60
- #endif
61
-
62
- XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
63
- XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
64
- }
65
-
66
- @end
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>BNDL</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>1</string>
23
- </dict>
24
- </plist>