@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.
- package/README.md +10 -42
- package/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +10 -10
- package/android/src/main/java/com/regula/documentreader/BluetoothUtil.kt +78 -74
- package/android/src/main/java/com/regula/documentreader/Config.kt +692 -0
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.kt +2198 -0
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +535 -0
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderPackage.kt +11 -0
- package/android/src/main/java/com/regula/documentreader/Utils.kt +261 -0
- package/example/App.tsx +97 -145
- package/example/README.md +37 -0
- package/example/android/app/build.gradle +1 -1
- package/example/android/app/src/main/java/com/regula/dr/fullrfid/MainApplication.java +0 -1
- package/example/android/app/src/main/res/values/styles.xml +1 -2
- package/example/android/build.gradle +2 -4
- package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/example/android/gradle.properties +2 -2
- package/example/index.js +1 -2
- package/example/ios/DocumentReader.xcodeproj/project.pbxproj +8 -4
- package/example/ios/Podfile +2 -21
- package/example/package-lock.json +3444 -2439
- package/example/package.json +28 -28
- package/example/react-native.config.js +5 -0
- package/index.d.ts +1375 -446
- package/index.js +843 -272
- package/ios/RGLWConfig.h +48 -0
- package/ios/RGLWConfig.m +1312 -0
- package/ios/RGLWJSONConstructor.h +173 -69
- package/ios/RGLWJSONConstructor.m +1832 -786
- package/ios/RNRegulaDocumentReader.h +10 -9
- package/ios/RNRegulaDocumentReader.m +388 -587
- package/package.json +1 -1
- package/android/src/main/java/com/regula/documentreader/Helpers.java +0 -259
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +0 -1119
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.java +0 -1153
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderPackage.java +0 -26
- package/android/src/main/java/com/regula/documentreader/RegulaConfig.java +0 -830
- package/example/.bundle/config +0 -2
- package/example/.eslintrc.js +0 -4
- package/example/.prettierrc.js +0 -7
- package/example/Gemfile +0 -6
- package/example/Gemfile.lock +0 -98
- package/example/__tests__/App.test.tsx +0 -17
- package/example/app.json +0 -4
- package/example/babel.config.js +0 -3
- package/example/jest.config.js +0 -3
- package/example/tsconfig.json +0 -3
- package/ios/RGLWRegulaConfig.h +0 -26
- package/ios/RGLWRegulaConfig.m +0 -1152
- package/ios/RNRegulaDocumentReader.xcodeproj/project.pbxproj +0 -304
- package/ios/RNRegulaDocumentReader.xcworkspace/contents.xcworkspacedata +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
|
|
4
4
|
networkTimeout=10000
|
|
5
5
|
zipStoreBase=GRADLE_USER_HOME
|
|
6
6
|
zipStorePath=wrapper/dists
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# Specifies the JVM arguments used for the daemon process.
|
|
11
11
|
# The setting is particularly useful for tweaking memory settings.
|
|
12
12
|
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
-
org.gradle.jvmargs=-
|
|
13
|
+
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m
|
|
14
14
|
|
|
15
15
|
# When configured, Gradle will run in incubating parallel mode.
|
|
16
16
|
# This option should only be used with decoupled projects. More details, visit
|
|
@@ -41,4 +41,4 @@ newArchEnabled=false
|
|
|
41
41
|
|
|
42
42
|
# Use this property to enable or disable the Hermes JS engine.
|
|
43
43
|
# If set to false, you will be using JSC instead.
|
|
44
|
-
hermesEnabled=
|
|
44
|
+
hermesEnabled=false
|
package/example/index.js
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
|
|
13
13
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
|
|
14
14
|
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
|
|
15
|
-
|
|
15
|
+
34A6AF2E2B862E4E00266440 /* db.dat in Resources */ = {isa = PBXBuildFile; fileRef = 34A6AF2D2B862E4E00266440 /* db.dat */; };
|
|
16
|
+
34B2241A2B61327D009FDA33 /* regula.license in Resources */ = {isa = PBXBuildFile; fileRef = 34B224192B61327D009FDA33 /* regula.license */; };
|
|
16
17
|
7699B88040F8A987B510C191 /* libPods-DocumentReader-DocumentReaderTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-DocumentReader-DocumentReaderTests.a */; };
|
|
17
18
|
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
|
|
18
19
|
/* End PBXBuildFile section */
|
|
@@ -39,7 +40,8 @@
|
|
|
39
40
|
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = DocumentReader/main.m; sourceTree = "<group>"; };
|
|
40
41
|
19F6CBCC0A4E27FBF8BF4A61 /* libPods-DocumentReader-DocumentReaderTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-DocumentReader-DocumentReaderTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
41
42
|
3471549F2A4D9A1500361434 /* DocumentReader.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = DocumentReader.entitlements; path = DocumentReader/DocumentReader.entitlements; sourceTree = "<group>"; };
|
|
42
|
-
|
|
43
|
+
34A6AF2D2B862E4E00266440 /* db.dat */ = {isa = PBXFileReference; lastKnownFileType = file; path = db.dat; sourceTree = "<group>"; };
|
|
44
|
+
34B224192B61327D009FDA33 /* regula.license */ = {isa = PBXFileReference; lastKnownFileType = file; path = regula.license; sourceTree = "<group>"; };
|
|
43
45
|
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>"; };
|
|
44
46
|
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>"; };
|
|
45
47
|
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>"; };
|
|
@@ -89,7 +91,8 @@
|
|
|
89
91
|
13B07FAE1A68108700A75B9A /* DocumentReader */ = {
|
|
90
92
|
isa = PBXGroup;
|
|
91
93
|
children = (
|
|
92
|
-
|
|
94
|
+
34A6AF2D2B862E4E00266440 /* db.dat */,
|
|
95
|
+
34B224192B61327D009FDA33 /* regula.license */,
|
|
93
96
|
3471549F2A4D9A1500361434 /* DocumentReader.entitlements */,
|
|
94
97
|
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
|
|
95
98
|
13B07FB01A68108700A75B9A /* AppDelegate.mm */,
|
|
@@ -249,7 +252,8 @@
|
|
|
249
252
|
files = (
|
|
250
253
|
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
|
|
251
254
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
|
|
252
|
-
|
|
255
|
+
34B2241A2B61327D009FDA33 /* regula.license in Resources */,
|
|
256
|
+
34A6AF2E2B862E4E00266440 /* db.dat in Resources */,
|
|
253
257
|
);
|
|
254
258
|
runOnlyForDeploymentPostprocessing = 0;
|
|
255
259
|
};
|
package/example/ios/Podfile
CHANGED
|
@@ -8,17 +8,6 @@ require Pod::Executable.execute_command('node', ['-p',
|
|
|
8
8
|
platform :ios, min_ios_version_supported
|
|
9
9
|
prepare_react_native_project!
|
|
10
10
|
|
|
11
|
-
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
|
|
12
|
-
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
|
|
13
|
-
#
|
|
14
|
-
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
|
|
15
|
-
# ```js
|
|
16
|
-
# module.exports = {
|
|
17
|
-
# dependencies: {
|
|
18
|
-
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
|
|
19
|
-
# ```
|
|
20
|
-
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
|
|
21
|
-
|
|
22
11
|
linkage = ENV['USE_FRAMEWORKS']
|
|
23
12
|
if linkage != nil
|
|
24
13
|
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
|
|
@@ -33,21 +22,14 @@ target 'DocumentReader' do
|
|
|
33
22
|
|
|
34
23
|
use_react_native!(
|
|
35
24
|
:path => config[:reactNativePath],
|
|
36
|
-
|
|
37
|
-
:hermes_enabled => flags[:hermes_enabled],
|
|
25
|
+
:hermes_enabled => false,
|
|
38
26
|
:fabric_enabled => flags[:fabric_enabled],
|
|
39
|
-
|
|
40
|
-
#
|
|
41
|
-
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
|
42
|
-
# you should disable the next line.
|
|
43
|
-
:flipper_configuration => flipper_config,
|
|
44
|
-
# An absolute path to your application root.
|
|
27
|
+
:flipper_configuration => FlipperConfiguration.disabled,
|
|
45
28
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
46
29
|
)
|
|
47
30
|
|
|
48
31
|
target 'DocumentReaderTests' do
|
|
49
32
|
inherit! :complete
|
|
50
|
-
# Pods for testing
|
|
51
33
|
end
|
|
52
34
|
|
|
53
35
|
post_install do |installer|
|
|
@@ -57,6 +39,5 @@ target 'DocumentReader' do
|
|
|
57
39
|
config[:reactNativePath],
|
|
58
40
|
:mac_catalyst_enabled => false
|
|
59
41
|
)
|
|
60
|
-
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
|
61
42
|
end
|
|
62
43
|
end
|