@regulaforensics/react-native-document-reader-api 5.8.1 → 6.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.
- package/README.md +1 -1
- package/RNDocumentReaderApi.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/documentreader/Helpers.java +1 -3
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +110 -10
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.java +8 -12
- package/android/src/main/java/com/regula/documentreader/RegulaConfig.java +3 -0
- package/example/.editorconfig +3 -0
- package/example/.flowconfig +4 -13
- package/example/.gitattributes +3 -1
- package/example/.prettierrc.js +1 -0
- package/example/App.js +30 -18
- package/example/android/app/BUCK +55 -0
- package/example/android/app/build.gradle +35 -17
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/src/debug/AndroidManifest.xml +6 -1
- package/example/android/app/src/main/AndroidManifest.xml +21 -22
- package/example/android/app/src/main/assets/index.android.bundle +636 -0
- package/example/android/app/src/main/java/com/regula/dr/fullrfid/MainApplication.java +1 -2
- package/example/android/app/src/main/res/drawable-mdpi/images_id.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/images_portrait.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_indeterminate_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xhdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xhdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/build.gradle +12 -6
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/example/android/gradle.properties +2 -1
- package/example/android/gradlew +14 -17
- package/example/android/gradlew.bat +7 -18
- package/example/android/settings.gradle +0 -2
- package/example/ios/DocumentReader/AppDelegate.m +7 -3
- package/example/ios/DocumentReader/Info.plist +8 -10
- package/example/ios/DocumentReader/LaunchScreen.storyboard +47 -0
- package/example/ios/DocumentReader.xcodeproj/project.pbxproj +257 -96
- package/example/ios/DocumentReader.xcodeproj/xcshareddata/xcschemes/DocumentReader.xcscheme +1 -1
- package/example/ios/DocumentReaderTests/DocumentReaderTests.m +65 -0
- package/example/ios/DocumentReaderTests/Info.plist +24 -0
- package/example/ios/Podfile +13 -4
- package/example/metro.config.js +1 -1
- package/example/package.json +17 -18
- package/index.d.ts +713 -514
- package/index.js +661 -510
- package/ios/RGLWJSONConstructor.h +6 -0
- package/ios/RGLWJSONConstructor.m +92 -0
- package/ios/RNRegulaDocumentReader.m +5 -5
- package/ios/RegulaConfig.m +3 -0
- package/package.json +1 -1
- package/example/ios/DocumentReader.xcodeproj/xcshareddata/xcschemes/DocumentReader-tvOS.xcscheme +0 -88
|
@@ -3,7 +3,7 @@ apply plugin: "com.android.application"
|
|
|
3
3
|
import com.android.build.OutputFile
|
|
4
4
|
|
|
5
5
|
project.ext.react = [
|
|
6
|
-
|
|
6
|
+
enableHermes: false,
|
|
7
7
|
]
|
|
8
8
|
|
|
9
9
|
apply from: "../../node_modules/react-native/react.gradle"
|
|
@@ -11,9 +11,12 @@ apply from: "../../node_modules/react-native/react.gradle"
|
|
|
11
11
|
def enableSeparateBuildPerCPUArchitecture = false
|
|
12
12
|
def enableProguardInReleaseBuilds = false
|
|
13
13
|
def jscFlavor = 'org.webkit:android-jsc:+'
|
|
14
|
-
def enableHermes = project.ext.react.get("enableHermes", false)
|
|
14
|
+
def enableHermes = project.ext.react.get("enableHermes", false);
|
|
15
|
+
def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures")
|
|
15
16
|
|
|
16
17
|
android {
|
|
18
|
+
ndkVersion rootProject.ext.ndkVersion
|
|
19
|
+
|
|
17
20
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
18
21
|
|
|
19
22
|
compileOptions {
|
|
@@ -26,7 +29,6 @@ android {
|
|
|
26
29
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
27
30
|
versionCode 1
|
|
28
31
|
versionName "1.0"
|
|
29
|
-
multiDexEnabled true
|
|
30
32
|
}
|
|
31
33
|
splits {
|
|
32
34
|
abi {
|
|
@@ -36,27 +38,39 @@ android {
|
|
|
36
38
|
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
|
|
37
39
|
}
|
|
38
40
|
}
|
|
41
|
+
signingConfigs {
|
|
42
|
+
debug {
|
|
43
|
+
storeFile file('debug.keystore')
|
|
44
|
+
storePassword 'android'
|
|
45
|
+
keyAlias 'androiddebugkey'
|
|
46
|
+
keyPassword 'android'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
39
49
|
buildTypes {
|
|
50
|
+
debug {
|
|
51
|
+
signingConfig signingConfigs.debug
|
|
52
|
+
if (nativeArchitectures) {
|
|
53
|
+
ndk {
|
|
54
|
+
abiFilters nativeArchitectures.split(',')
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
40
58
|
release {
|
|
41
59
|
signingConfig signingConfigs.debug
|
|
42
60
|
minifyEnabled enableProguardInReleaseBuilds
|
|
43
61
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
44
62
|
}
|
|
45
63
|
}
|
|
46
|
-
|
|
47
|
-
pickFirst "lib/armeabi-v7a/libc++_shared.so"
|
|
48
|
-
pickFirst "lib/arm64-v8a/libc++_shared.so"
|
|
49
|
-
pickFirst "lib/x86/libc++_shared.so"
|
|
50
|
-
pickFirst "lib/x86_64/libc++_shared.so"
|
|
51
|
-
}
|
|
64
|
+
|
|
52
65
|
applicationVariants.all { variant ->
|
|
53
66
|
variant.outputs.each { output ->
|
|
54
67
|
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
|
|
55
68
|
def abi = output.getFilter(OutputFile.ABI)
|
|
56
69
|
if (abi != null) {
|
|
57
70
|
output.versionCodeOverride =
|
|
58
|
-
|
|
71
|
+
defaultConfig.versionCode * 1000 + versionCodes.get(abi)
|
|
59
72
|
}
|
|
73
|
+
|
|
60
74
|
}
|
|
61
75
|
}
|
|
62
76
|
}
|
|
@@ -65,20 +79,24 @@ dependencies {
|
|
|
65
79
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
66
80
|
//noinspection GradleDynamicVersion
|
|
67
81
|
implementation "com.facebook.react:react-native:+"
|
|
68
|
-
|
|
69
|
-
implementation "
|
|
82
|
+
|
|
83
|
+
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
|
70
84
|
|
|
71
85
|
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
|
|
72
|
-
exclude group:
|
|
86
|
+
exclude group:'com.facebook.fbjni'
|
|
73
87
|
}
|
|
88
|
+
|
|
74
89
|
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
|
|
75
|
-
exclude group:
|
|
90
|
+
exclude group:'com.facebook.flipper'
|
|
91
|
+
exclude group:'com.squareup.okhttp3', module:'okhttp'
|
|
76
92
|
}
|
|
93
|
+
|
|
77
94
|
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
|
|
78
|
-
exclude group:
|
|
95
|
+
exclude group:'com.facebook.flipper'
|
|
79
96
|
}
|
|
97
|
+
|
|
80
98
|
if (enableHermes) {
|
|
81
|
-
def hermesPath = "../../node_modules/hermes-engine/android/"
|
|
99
|
+
def hermesPath = "../../node_modules/hermes-engine/android/";
|
|
82
100
|
debugImplementation files(hermesPath + "hermes-debug.aar")
|
|
83
101
|
releaseImplementation files(hermesPath + "hermes-release.aar")
|
|
84
102
|
} else {
|
|
@@ -87,7 +105,7 @@ dependencies {
|
|
|
87
105
|
}
|
|
88
106
|
|
|
89
107
|
task copyDownloadableDepsToLibs(type: Copy) {
|
|
90
|
-
from configurations.
|
|
108
|
+
from configurations.implementation
|
|
91
109
|
into 'libs'
|
|
92
110
|
}
|
|
93
111
|
|
|
Binary file
|
|
@@ -4,5 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
6
6
|
|
|
7
|
-
<application
|
|
7
|
+
<application
|
|
8
|
+
android:usesCleartextTraffic="true"
|
|
9
|
+
tools:targetApi="28"
|
|
10
|
+
tools:ignore="GoogleAppIndexingWarning">
|
|
11
|
+
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
|
|
12
|
+
</application>
|
|
8
13
|
</manifest>
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
|
|
2
|
+
package="com.regula.dr.fullrfid">
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
5
|
+
<uses-permission android:name="android.permission.NFC" />
|
|
6
6
|
|
|
7
7
|
<application
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
android:name=".MainApplication"
|
|
9
|
+
android:label="@string/app_name"
|
|
10
|
+
android:icon="@mipmap/ic_launcher"
|
|
11
|
+
android:roundIcon="@mipmap/ic_launcher_round"
|
|
12
|
+
android:allowBackup="false"
|
|
13
|
+
android:requestLegacyExternalStorage="true"
|
|
14
|
+
android:theme="@style/AppTheme">
|
|
15
|
+
<activity
|
|
16
|
+
android:name=".MainActivity"
|
|
11
17
|
android:label="@string/app_name"
|
|
12
|
-
android:
|
|
13
|
-
android:
|
|
14
|
-
android:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
android:
|
|
18
|
-
android:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<intent-filter>
|
|
22
|
-
<action android:name="android.intent.action.MAIN" />
|
|
23
|
-
<category android:name="android.intent.category.LAUNCHER" />
|
|
24
|
-
</intent-filter>
|
|
25
|
-
</activity>
|
|
26
|
-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
|
|
18
|
+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
|
|
19
|
+
android:launchMode="singleTask"
|
|
20
|
+
android:windowSoftInputMode="adjustResize"
|
|
21
|
+
android:exported="true">
|
|
22
|
+
<intent-filter>
|
|
23
|
+
<action android:name="android.intent.action.MAIN" />
|
|
24
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
|
25
|
+
</intent-filter>
|
|
26
|
+
</activity>
|
|
27
27
|
</application>
|
|
28
|
-
|
|
29
28
|
</manifest>
|