@regulaforensics/face-sdk 6.4.263-nightly → 6.4.272-nightly
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/RNFaceSDK.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/examples/capacitor/package.json +2 -2
- package/examples/cordova/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/{react-native → react_native}/README.md +2 -2
- package/examples/react_native/app.config.ts +38 -0
- package/examples/react_native/images/icon/adaptive-icon.png +0 -0
- package/examples/react_native/images/icon/icon.png +0 -0
- package/examples/react_native/index.tsx +52 -0
- package/examples/react_native/metro.config.js +7 -0
- package/examples/{react-native → react_native}/package-lock.json +3927 -2812
- package/examples/react_native/package.json +26 -0
- package/examples/{react-native → react_native}/scripts/android.sh +2 -3
- package/examples/{react-native → react_native}/scripts/ios.sh +3 -4
- package/examples/react_native/scripts/setup.sh +10 -0
- package/examples/{react-native → react_native}/src/main.tsx +2 -2
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/examples/react-native/.vscode/launch.json +0 -26
- package/examples/react-native/Gemfile +0 -16
- package/examples/react-native/Gemfile.lock +0 -144
- package/examples/react-native/android/app/build.gradle +0 -55
- package/examples/react-native/android/app/debug.keystore +0 -0
- package/examples/react-native/android/app/src/main/AndroidManifest.xml +0 -27
- package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainActivity.kt +0 -22
- package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainApplication.kt +0 -44
- package/examples/react-native/android/app/src/main/res/drawable/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
- package/examples/react-native/android/build.gradle +0 -21
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/examples/react-native/android/gradle.properties +0 -5
- package/examples/react-native/android/gradlew +0 -251
- package/examples/react-native/android/gradlew.bat +0 -92
- package/examples/react-native/android/settings.gradle +0 -6
- package/examples/react-native/index.tsx +0 -51
- package/examples/react-native/ios/.xcode.env +0 -11
- package/examples/react-native/ios/App/AppDelegate.h +0 -6
- package/examples/react-native/ios/App/AppDelegate.mm +0 -31
- package/examples/react-native/ios/App/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/examples/react-native/ios/App/Images.xcassets/Contents.json +0 -6
- package/examples/react-native/ios/App/Info.plist +0 -51
- package/examples/react-native/ios/App/LaunchScreen.storyboard +0 -47
- package/examples/react-native/ios/App/PrivacyInfo.xcprivacy +0 -38
- package/examples/react-native/ios/App/main.m +0 -10
- package/examples/react-native/ios/App.xcodeproj/project.pbxproj +0 -502
- package/examples/react-native/ios/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme +0 -70
- package/examples/react-native/ios/App.xcworkspace/contents.xcworkspacedata +0 -10
- package/examples/react-native/ios/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/examples/react-native/ios/Podfile +0 -37
- package/examples/react-native/ios/Podfile.lock +0 -1891
- package/examples/react-native/ios/license/.gitkeep +0 -0
- package/examples/react-native/metro.config.js +0 -20
- package/examples/react-native/package.json +0 -22
- package/examples/react-native/patches/react-native-webview+13.13.5.patch +0 -36
- package/examples/react-native/scripts/setup.sh +0 -8
- /package/examples/{react-native/android/app/src/main → react_native}/assets/.gitkeep +0 -0
- /package/examples/{react-native → react_native}/images/portrait.png +0 -0
- /package/examples/{react-native → react_native}/index.html +0 -0
- /package/examples/{react-native → react_native}/src/main.css +0 -0
- /package/examples/{react-native → react_native}/src/main.html +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "face-sdk",
|
|
3
|
+
"main": "./index.tsx",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"setup": "scripts/setup.sh",
|
|
6
|
+
"ios": "scripts/ios.sh",
|
|
7
|
+
"android": "scripts/android.sh",
|
|
8
|
+
"start": "expo start"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@regulaforensics/face-sdk": "6.4.272-nightly",
|
|
12
|
+
"@regulaforensics/face-core-basic": "6.4.136-nightly",
|
|
13
|
+
"react-native": "0.79.2",
|
|
14
|
+
"react-native-fs": "2.20.0",
|
|
15
|
+
"react-native-image-picker": "8.2.1",
|
|
16
|
+
"react-native-webview": "13.13.5",
|
|
17
|
+
"@react-native/metro-config": "0.79.2",
|
|
18
|
+
"react": "19.1.0",
|
|
19
|
+
"@types/react": "19.1.4",
|
|
20
|
+
"expo": "53.0.9",
|
|
21
|
+
"expo-dev-client": "5.1.8",
|
|
22
|
+
"expo-custom-assets": "1.4.1",
|
|
23
|
+
"expo-build-properties": "0.14.6",
|
|
24
|
+
"typescript": "5.8.3"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
set -e
|
|
3
2
|
|
|
4
3
|
adb reverse tcp:8081 tcp:8081 >/dev/null || :
|
|
5
4
|
if [[ $npm_config_o || $npm_config_open ]]; then
|
|
6
5
|
studio android || open -a 'Android Studio' android
|
|
7
6
|
# check if metro is already running
|
|
8
|
-
if ! pgrep -f "
|
|
7
|
+
if ! pgrep -f "expo start" >/dev/null; then
|
|
9
8
|
npm start
|
|
10
9
|
fi
|
|
11
10
|
else
|
|
12
|
-
|
|
11
|
+
expo run:android --device
|
|
13
12
|
fi
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
set -e
|
|
3
2
|
|
|
4
3
|
if [[ $npm_config_o || $npm_config_open ]]; then
|
|
5
|
-
open ios/
|
|
4
|
+
open ios/FaceSDK.xcworkspace
|
|
6
5
|
# check if metro is already running
|
|
7
|
-
if ! pgrep -f "
|
|
6
|
+
if ! pgrep -f "expo start" > /dev/null; then
|
|
8
7
|
npm start
|
|
9
8
|
fi
|
|
10
9
|
else
|
|
11
|
-
|
|
10
|
+
npx expo run:ios --device
|
|
12
11
|
fi
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
npm install
|
|
5
|
+
expo prebuild
|
|
6
|
+
|
|
7
|
+
# add aaptOptions for offline match
|
|
8
|
+
if ! grep -q faceSdkResource android/app/build.gradle && grep -q face-core-match package.json; then
|
|
9
|
+
sed -i '' "s/androidResources/aaptOptions {\n\t\tnoCompress 'Regula\/faceSdkResource.dat'\n\t}\n\tandroidResources/" android/app/build.gradle
|
|
10
|
+
fi
|
|
@@ -105,8 +105,8 @@ function pickImage(position: number) {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
async function loadAssetIfExists(path: string): Promise<string | null> {
|
|
108
|
-
if (Platform.OS === 'ios') path = RNFS.MainBundlePath + "/
|
|
109
|
-
var readFile = Platform.OS === 'ios' ? RNFS.readFile : RNFS.
|
|
108
|
+
if (Platform.OS === 'ios') path = RNFS.MainBundlePath + "/" + path
|
|
109
|
+
var readFile = Platform.OS === 'ios' ? RNFS.readFile : RNFS.readFileRes
|
|
110
110
|
try {
|
|
111
111
|
return await readFile(path, 'base64')
|
|
112
112
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.272-nightly",
|
|
4
4
|
"description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/face-sdk" version="6.4.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="6.4.272-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>FaceSDK</name>
|
|
4
4
|
<description>Cordova plugin for Regula Face SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Run iOS",
|
|
9
|
-
"cwd": "${workspaceFolder}",
|
|
10
|
-
"type": "reactnativedirect",
|
|
11
|
-
"request": "launch",
|
|
12
|
-
"platform": "ios",
|
|
13
|
-
"enableDebug": false,
|
|
14
|
-
"useHermesEngine": false,
|
|
15
|
-
"target": "device"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "Run Android",
|
|
19
|
-
"cwd": "${workspaceFolder}",
|
|
20
|
-
"type": "reactnative",
|
|
21
|
-
"request": "launch",
|
|
22
|
-
"platform": "android",
|
|
23
|
-
"enableDebug": false
|
|
24
|
-
},
|
|
25
|
-
]
|
|
26
|
-
}
|
|
@@ -1,16 +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
|
-
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
|
|
7
|
-
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
|
|
8
|
-
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
|
|
9
|
-
gem 'xcodeproj', '< 1.26.0'
|
|
10
|
-
gem 'concurrent-ruby', '< 1.3.4'
|
|
11
|
-
|
|
12
|
-
# Ruby 3.4.0 has removed some libraries from the standard library.
|
|
13
|
-
gem 'bigdecimal'
|
|
14
|
-
gem 'logger'
|
|
15
|
-
gem 'benchmark'
|
|
16
|
-
gem 'mutex_m'
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
GEM
|
|
2
|
-
remote: https://rubygems.org/
|
|
3
|
-
specs:
|
|
4
|
-
CFPropertyList (3.0.7)
|
|
5
|
-
base64
|
|
6
|
-
nkf
|
|
7
|
-
rexml
|
|
8
|
-
activesupport (7.2.2.1)
|
|
9
|
-
base64
|
|
10
|
-
benchmark (>= 0.3)
|
|
11
|
-
bigdecimal
|
|
12
|
-
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
13
|
-
connection_pool (>= 2.2.5)
|
|
14
|
-
drb
|
|
15
|
-
i18n (>= 1.6, < 2)
|
|
16
|
-
logger (>= 1.4.2)
|
|
17
|
-
minitest (>= 5.1)
|
|
18
|
-
securerandom (>= 0.3)
|
|
19
|
-
tzinfo (~> 2.0, >= 2.0.5)
|
|
20
|
-
addressable (2.8.7)
|
|
21
|
-
public_suffix (>= 2.0.2, < 7.0)
|
|
22
|
-
algoliasearch (1.27.5)
|
|
23
|
-
httpclient (~> 2.8, >= 2.8.3)
|
|
24
|
-
json (>= 1.5.1)
|
|
25
|
-
atomos (0.1.3)
|
|
26
|
-
base64 (0.2.0)
|
|
27
|
-
benchmark (0.4.0)
|
|
28
|
-
bigdecimal (3.1.9)
|
|
29
|
-
claide (1.1.0)
|
|
30
|
-
cocoapods (1.15.2)
|
|
31
|
-
addressable (~> 2.8)
|
|
32
|
-
claide (>= 1.0.2, < 2.0)
|
|
33
|
-
cocoapods-core (= 1.15.2)
|
|
34
|
-
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
35
|
-
cocoapods-downloader (>= 2.1, < 3.0)
|
|
36
|
-
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
37
|
-
cocoapods-search (>= 1.0.0, < 2.0)
|
|
38
|
-
cocoapods-trunk (>= 1.6.0, < 2.0)
|
|
39
|
-
cocoapods-try (>= 1.1.0, < 2.0)
|
|
40
|
-
colored2 (~> 3.1)
|
|
41
|
-
escape (~> 0.0.4)
|
|
42
|
-
fourflusher (>= 2.3.0, < 3.0)
|
|
43
|
-
gh_inspector (~> 1.0)
|
|
44
|
-
molinillo (~> 0.8.0)
|
|
45
|
-
nap (~> 1.0)
|
|
46
|
-
ruby-macho (>= 2.3.0, < 3.0)
|
|
47
|
-
xcodeproj (>= 1.23.0, < 2.0)
|
|
48
|
-
cocoapods-core (1.15.2)
|
|
49
|
-
activesupport (>= 5.0, < 8)
|
|
50
|
-
addressable (~> 2.8)
|
|
51
|
-
algoliasearch (~> 1.0)
|
|
52
|
-
concurrent-ruby (~> 1.1)
|
|
53
|
-
fuzzy_match (~> 2.0.4)
|
|
54
|
-
nap (~> 1.0)
|
|
55
|
-
netrc (~> 0.11)
|
|
56
|
-
public_suffix (~> 4.0)
|
|
57
|
-
typhoeus (~> 1.0)
|
|
58
|
-
cocoapods-deintegrate (1.0.5)
|
|
59
|
-
cocoapods-downloader (2.1)
|
|
60
|
-
cocoapods-plugins (1.0.0)
|
|
61
|
-
nap
|
|
62
|
-
cocoapods-search (1.0.1)
|
|
63
|
-
cocoapods-trunk (1.6.0)
|
|
64
|
-
nap (>= 0.8, < 2.0)
|
|
65
|
-
netrc (~> 0.11)
|
|
66
|
-
cocoapods-try (1.2.0)
|
|
67
|
-
colored2 (3.1.2)
|
|
68
|
-
concurrent-ruby (1.3.3)
|
|
69
|
-
connection_pool (2.5.3)
|
|
70
|
-
drb (2.2.1)
|
|
71
|
-
escape (0.0.4)
|
|
72
|
-
ethon (0.16.0)
|
|
73
|
-
ffi (>= 1.15.0)
|
|
74
|
-
ffi (1.17.2)
|
|
75
|
-
ffi (1.17.2-aarch64-linux-gnu)
|
|
76
|
-
ffi (1.17.2-aarch64-linux-musl)
|
|
77
|
-
ffi (1.17.2-arm-linux-gnu)
|
|
78
|
-
ffi (1.17.2-arm-linux-musl)
|
|
79
|
-
ffi (1.17.2-arm64-darwin)
|
|
80
|
-
ffi (1.17.2-x86-linux-gnu)
|
|
81
|
-
ffi (1.17.2-x86-linux-musl)
|
|
82
|
-
ffi (1.17.2-x86_64-darwin)
|
|
83
|
-
ffi (1.17.2-x86_64-linux-gnu)
|
|
84
|
-
ffi (1.17.2-x86_64-linux-musl)
|
|
85
|
-
fourflusher (2.3.1)
|
|
86
|
-
fuzzy_match (2.0.4)
|
|
87
|
-
gh_inspector (1.1.3)
|
|
88
|
-
httpclient (2.9.0)
|
|
89
|
-
mutex_m
|
|
90
|
-
i18n (1.14.7)
|
|
91
|
-
concurrent-ruby (~> 1.0)
|
|
92
|
-
json (2.11.3)
|
|
93
|
-
logger (1.7.0)
|
|
94
|
-
minitest (5.25.5)
|
|
95
|
-
molinillo (0.8.0)
|
|
96
|
-
mutex_m (0.3.0)
|
|
97
|
-
nanaimo (0.3.0)
|
|
98
|
-
nap (1.1.0)
|
|
99
|
-
netrc (0.11.0)
|
|
100
|
-
nkf (0.2.0)
|
|
101
|
-
public_suffix (4.0.7)
|
|
102
|
-
rexml (3.4.1)
|
|
103
|
-
ruby-macho (2.5.1)
|
|
104
|
-
securerandom (0.4.1)
|
|
105
|
-
typhoeus (1.4.1)
|
|
106
|
-
ethon (>= 0.9.0)
|
|
107
|
-
tzinfo (2.0.6)
|
|
108
|
-
concurrent-ruby (~> 1.0)
|
|
109
|
-
xcodeproj (1.25.1)
|
|
110
|
-
CFPropertyList (>= 2.3.3, < 4.0)
|
|
111
|
-
atomos (~> 0.1.3)
|
|
112
|
-
claide (>= 1.0.2, < 2.0)
|
|
113
|
-
colored2 (~> 3.1)
|
|
114
|
-
nanaimo (~> 0.3.0)
|
|
115
|
-
rexml (>= 3.3.6, < 4.0)
|
|
116
|
-
|
|
117
|
-
PLATFORMS
|
|
118
|
-
aarch64-linux-gnu
|
|
119
|
-
aarch64-linux-musl
|
|
120
|
-
arm-linux-gnu
|
|
121
|
-
arm-linux-musl
|
|
122
|
-
arm64-darwin
|
|
123
|
-
ruby
|
|
124
|
-
x86-linux-gnu
|
|
125
|
-
x86-linux-musl
|
|
126
|
-
x86_64-darwin
|
|
127
|
-
x86_64-linux-gnu
|
|
128
|
-
x86_64-linux-musl
|
|
129
|
-
|
|
130
|
-
DEPENDENCIES
|
|
131
|
-
activesupport (>= 6.1.7.5, != 7.1.0)
|
|
132
|
-
benchmark
|
|
133
|
-
bigdecimal
|
|
134
|
-
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
|
|
135
|
-
concurrent-ruby (< 1.3.4)
|
|
136
|
-
logger
|
|
137
|
-
mutex_m
|
|
138
|
-
xcodeproj (< 1.26.0)
|
|
139
|
-
|
|
140
|
-
RUBY VERSION
|
|
141
|
-
ruby 3.4.2p28
|
|
142
|
-
|
|
143
|
-
BUNDLED WITH
|
|
144
|
-
2.6.3
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
apply plugin: "com.android.application"
|
|
2
|
-
apply plugin: "org.jetbrains.kotlin.android"
|
|
3
|
-
apply plugin: "com.facebook.react"
|
|
4
|
-
|
|
5
|
-
react {
|
|
6
|
-
autolinkLibrariesWithApp()
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
def enableProguardInReleaseBuilds = false
|
|
10
|
-
def jscFlavor = 'org.webkit:android-jsc:+'
|
|
11
|
-
|
|
12
|
-
android {
|
|
13
|
-
ndkVersion rootProject.ext.ndkVersion
|
|
14
|
-
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
15
|
-
compileSdk rootProject.ext.compileSdkVersion
|
|
16
|
-
|
|
17
|
-
namespace "com.regula.documentreader.api.androidtest"
|
|
18
|
-
defaultConfig {
|
|
19
|
-
applicationId "com.regula.documentreader.api.androidtest"
|
|
20
|
-
minSdkVersion rootProject.ext.minSdkVersion
|
|
21
|
-
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
22
|
-
versionCode 1
|
|
23
|
-
versionName "1.0"
|
|
24
|
-
}
|
|
25
|
-
signingConfigs {
|
|
26
|
-
debug {
|
|
27
|
-
storeFile file('debug.keystore')
|
|
28
|
-
storePassword 'android'
|
|
29
|
-
keyAlias 'androiddebugkey'
|
|
30
|
-
keyPassword 'android'
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
buildTypes {
|
|
34
|
-
debug {
|
|
35
|
-
signingConfig signingConfigs.debug
|
|
36
|
-
}
|
|
37
|
-
release {
|
|
38
|
-
signingConfig signingConfigs.debug
|
|
39
|
-
minifyEnabled enableProguardInReleaseBuilds
|
|
40
|
-
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
aaptOptions {
|
|
44
|
-
noCompress "Regula/faceSdkResource.dat"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
dependencies {
|
|
49
|
-
implementation("com.facebook.react:react-android")
|
|
50
|
-
if (hermesEnabled.toBoolean()) {
|
|
51
|
-
implementation("com.facebook.react:hermes-android")
|
|
52
|
-
} else {
|
|
53
|
-
implementation jscFlavor
|
|
54
|
-
}
|
|
55
|
-
}
|
|
Binary file
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
-
|
|
3
|
-
<uses-permission android:name="android.permission.INTERNET" />
|
|
4
|
-
|
|
5
|
-
<application
|
|
6
|
-
android:name=".MainApplication"
|
|
7
|
-
android:allowBackup="false"
|
|
8
|
-
android:icon="@drawable/ic_launcher"
|
|
9
|
-
android:label="FaceSDK"
|
|
10
|
-
android:roundIcon="@drawable/ic_launcher_round"
|
|
11
|
-
android:supportsRtl="true"
|
|
12
|
-
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"
|
|
13
|
-
android:usesCleartextTraffic="true">
|
|
14
|
-
<activity
|
|
15
|
-
android:name=".MainActivity"
|
|
16
|
-
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
|
|
17
|
-
android:exported="true"
|
|
18
|
-
android:launchMode="singleTask"
|
|
19
|
-
android:screenOrientation="portrait"
|
|
20
|
-
android:windowSoftInputMode="adjustResize">
|
|
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
|
-
</application>
|
|
27
|
-
</manifest>
|
package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainActivity.kt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
package com.regula.documentreader.api.androidtest
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.ReactActivity
|
|
4
|
-
import com.facebook.react.ReactActivityDelegate
|
|
5
|
-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
|
6
|
-
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
|
7
|
-
|
|
8
|
-
class MainActivity : ReactActivity() {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
|
12
|
-
* rendering of the component.
|
|
13
|
-
*/
|
|
14
|
-
override fun getMainComponentName(): String = "App"
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
|
|
18
|
-
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
|
|
19
|
-
*/
|
|
20
|
-
override fun createReactActivityDelegate(): ReactActivityDelegate =
|
|
21
|
-
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
|
|
22
|
-
}
|
package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainApplication.kt
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
package com.regula.documentreader.api.androidtest
|
|
2
|
-
|
|
3
|
-
import android.app.Application
|
|
4
|
-
import com.facebook.react.PackageList
|
|
5
|
-
import com.facebook.react.ReactApplication
|
|
6
|
-
import com.facebook.react.ReactHost
|
|
7
|
-
import com.facebook.react.ReactNativeHost
|
|
8
|
-
import com.facebook.react.ReactPackage
|
|
9
|
-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
|
|
10
|
-
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
|
11
|
-
import com.facebook.react.defaults.DefaultReactNativeHost
|
|
12
|
-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
|
|
13
|
-
import com.facebook.soloader.SoLoader
|
|
14
|
-
|
|
15
|
-
class MainApplication : Application(), ReactApplication {
|
|
16
|
-
|
|
17
|
-
override val reactNativeHost: ReactNativeHost =
|
|
18
|
-
object : DefaultReactNativeHost(this) {
|
|
19
|
-
override fun getPackages(): List<ReactPackage> =
|
|
20
|
-
PackageList(this).packages.apply {
|
|
21
|
-
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
22
|
-
// add(MyReactNativePackage())
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
override fun getJSMainModuleName(): String = "index"
|
|
26
|
-
|
|
27
|
-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
|
|
28
|
-
|
|
29
|
-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
|
|
30
|
-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
override val reactHost: ReactHost
|
|
34
|
-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
|
|
35
|
-
|
|
36
|
-
override fun onCreate() {
|
|
37
|
-
super.onCreate()
|
|
38
|
-
SoLoader.init(this, OpenSourceMergedSoMapping)
|
|
39
|
-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
|
|
40
|
-
// If you opted-in for the New Architecture, we load the native entry point for this app.
|
|
41
|
-
load()
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
ext {
|
|
3
|
-
buildToolsVersion = "35.0.0"
|
|
4
|
-
minSdkVersion = 24
|
|
5
|
-
compileSdkVersion = 35
|
|
6
|
-
targetSdkVersion = 35
|
|
7
|
-
ndkVersion = "27.1.12297006"
|
|
8
|
-
kotlinVersion = "2.0.21"
|
|
9
|
-
}
|
|
10
|
-
repositories {
|
|
11
|
-
google()
|
|
12
|
-
mavenCentral()
|
|
13
|
-
}
|
|
14
|
-
dependencies {
|
|
15
|
-
classpath("com.android.tools.build:gradle")
|
|
16
|
-
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
17
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
apply plugin: "com.facebook.react.rootproject"
|
|
Binary file
|