@regulaforensics/face-sdk 7.1.257-beta → 7.1.266-beta
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 +1 -1
- package/examples/cordova/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/{react-native → react_native}/README.md +2 -2
- package/examples/react_native/app.json +73 -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/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/examples/react_native/tsconfig.json +4 -0
- 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-lock.json +0 -8181
- 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
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ This plugin makes possible to use it with react-native, cordova and ionic applic
|
|
|
4
4
|
|
|
5
5
|
## Demo applications
|
|
6
6
|
In the [examples](examples/) folder you can find 4 demo applications:
|
|
7
|
-
* [React-native](examples/
|
|
7
|
+
* [React-native](examples/react_native)
|
|
8
8
|
* [Cordova](examples/cordova)
|
|
9
9
|
* [Ionic(ionic app with cordova, angular)](examples/ionic)
|
|
10
10
|
* [Capacitor(ionic app with capacitor, react)](examples/capacitor)
|
package/RNFaceSDK.podspec
CHANGED
package/android/build.gradle
CHANGED
|
@@ -41,7 +41,7 @@ dependencies {
|
|
|
41
41
|
//noinspection GradleDynamicVersion
|
|
42
42
|
implementation 'com.facebook.react:react-native:+'
|
|
43
43
|
//noinspection GradleDependency
|
|
44
|
-
implementation('com.regula.face:api:7.1.
|
|
44
|
+
implementation('com.regula.face:api:7.1.3725'){
|
|
45
45
|
transitive = true
|
|
46
46
|
}
|
|
47
47
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.266-beta",
|
|
10
10
|
"@regulaforensics/face-core-basic": "7.1.99-beta",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.266-beta",
|
|
10
10
|
"@regulaforensics/face-core-basic": "7.1.99-beta",
|
|
11
11
|
"cordova-ios": "7.1.1",
|
|
12
12
|
"cordova-android": "13.0.0",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.266-beta",
|
|
10
10
|
"@regulaforensics/face-core-basic": "7.1.99-beta",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.16.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.16.0",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offline match
|
|
16
|
-
1. Place a license that supports offline match at `
|
|
16
|
+
1. Place a license that supports offline match at `assets/regula.license`.
|
|
17
17
|
|
|
18
18
|
2. Change core with the following commands:
|
|
19
19
|
```bash
|
|
20
20
|
npm uninstall @regulaforensics/face-core-basic
|
|
21
21
|
npm install @regulaforensics/face-core-match
|
|
22
|
-
|
|
22
|
+
npm run setup
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
3. Turn off the internet and run the app.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"expo": {
|
|
3
|
+
"name": "DocumentReader",
|
|
4
|
+
"orientation": "portrait",
|
|
5
|
+
"icon": "./images/icon/icon.png",
|
|
6
|
+
"ios": {
|
|
7
|
+
"bundleIdentifier": "regula.DocumentReader",
|
|
8
|
+
"infoPlist": {
|
|
9
|
+
"NSCameraUsageDescription": "To use camera",
|
|
10
|
+
"NSPhotoLibraryUsageDescription": "To use gallery",
|
|
11
|
+
"NFCReaderUsageDescription": "To use NFC",
|
|
12
|
+
"NSBluetoothAlwaysUsageDescription": "To use bluetooth",
|
|
13
|
+
"com.apple.developer.nfc.readersession.iso7816.select-identifiers": [
|
|
14
|
+
"A0000002471001",
|
|
15
|
+
"E80704007F00070302",
|
|
16
|
+
"A000000167455349474E",
|
|
17
|
+
"A0000002480100",
|
|
18
|
+
"A0000002480200",
|
|
19
|
+
"A0000002480300",
|
|
20
|
+
"A00000045645444C2D3031"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"entitlements": {
|
|
24
|
+
"com.apple.developer.nfc.readersession.formats": [
|
|
25
|
+
"TAG"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"appleTeamId": ""
|
|
29
|
+
},
|
|
30
|
+
"android": {
|
|
31
|
+
"package": "com.regula.dr.fullauthrfid",
|
|
32
|
+
"permissions": [
|
|
33
|
+
"android.permission.BLUETOOTH_CONNECT"
|
|
34
|
+
],
|
|
35
|
+
"adaptiveIcon": {
|
|
36
|
+
"foregroundImage": "./images/icon/adaptive-icon.png",
|
|
37
|
+
"backgroundColor": "#ffffff"
|
|
38
|
+
},
|
|
39
|
+
"edgeToEdgeEnabled": true
|
|
40
|
+
},
|
|
41
|
+
"plugins": [
|
|
42
|
+
[
|
|
43
|
+
"expo-custom-assets",
|
|
44
|
+
{
|
|
45
|
+
"assetsPaths": [
|
|
46
|
+
"./assets"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"expo-build-properties",
|
|
52
|
+
{
|
|
53
|
+
"android": {
|
|
54
|
+
"extraMavenRepos": [
|
|
55
|
+
{
|
|
56
|
+
"url": "https://maven.regulaforensics.com/RegulaDocumentReader"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"url": "https://maven.regulaforensics.com/RegulaDocumentReader/Beta"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"url": "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"url": "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { registerRootComponent } from 'expo'
|
|
2
|
+
import WebView from 'react-native-webview'
|
|
3
|
+
import { onload } from './src/main'
|
|
4
|
+
|
|
5
|
+
var webViewRef: any
|
|
6
|
+
const onclicks: any = {}
|
|
7
|
+
const onMessage = (json: any) => {
|
|
8
|
+
const event = JSON.parse(json.nativeEvent.data)
|
|
9
|
+
if (event.id === "ready") onload()
|
|
10
|
+
if (event.id === "onclick") {
|
|
11
|
+
onclicks[event.value]()
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const document = {
|
|
16
|
+
getElementById(id: string): any {
|
|
17
|
+
return new Proxy({}, {
|
|
18
|
+
set(_, prop: string, value) {
|
|
19
|
+
if (prop == "onclick") {
|
|
20
|
+
onclicks[id] = value
|
|
21
|
+
webViewRef.injectJavaScript(`
|
|
22
|
+
document.getElementById("${id}").onclick = () => {
|
|
23
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({ id: "onclick", value: "${id}" }));
|
|
24
|
+
}; true
|
|
25
|
+
`)
|
|
26
|
+
} else
|
|
27
|
+
webViewRef.injectJavaScript(`document.getElementById("${id}").${prop} = "${value}"; true`)
|
|
28
|
+
return true
|
|
29
|
+
},
|
|
30
|
+
get(_, prop: string) {
|
|
31
|
+
if (prop === "style") return new Proxy({}, {
|
|
32
|
+
set(_, styleProp: string, value) {
|
|
33
|
+
webViewRef.injectJavaScript(`document.getElementById("${id}").style.${styleProp} = "${value}"; true`)
|
|
34
|
+
return true
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
return undefined
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
registerRootComponent(() =>
|
|
45
|
+
<WebView
|
|
46
|
+
ref={ref => { webViewRef = ref }}
|
|
47
|
+
onMessage={onMessage}
|
|
48
|
+
source={require("./index.html")}
|
|
49
|
+
scrollEnabled={false}
|
|
50
|
+
injectedJavaScript="document.body.addEventListener('touchmove', function(e) { e.preventDefault() }, { passive: false })"
|
|
51
|
+
/>
|
|
52
|
+
)
|
|
@@ -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": "7.1.266-beta",
|
|
12
|
+
"@regulaforensics/face-core-basic": "7.1.99-beta",
|
|
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": "7.1.
|
|
3
|
+
"version": "7.1.266-beta",
|
|
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="7.1.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="7.1.266-beta" 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
|
-
}
|