@regulaforensics/document-reader 9.9.1155-beta → 9.9.1162-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/README.md +1 -3
- package/RNDocumentReader.podspec +21 -0
- package/android/CVDDocumentReader.kt +3 -4
- package/android/build.gradle +36 -0
- package/android/cordova.gradle +12 -0
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/BluetoothUtil.kt +1 -1
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/Config.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/JSONConstructor.kt +4 -4
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/Main.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/RNDocumentReaderModule.kt +3 -4
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/Utils.kt +1 -1
- package/app.plugin.js +7 -10
- package/examples/capacitor/README.md +0 -2
- package/examples/capacitor/android/app/build.gradle +10 -1
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +0 -9
- package/examples/capacitor/android/build.gradle +3 -12
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/examples/capacitor/android/gradle.properties +0 -4
- package/examples/capacitor/android/gradlew +7 -4
- package/examples/capacitor/android/gradlew.bat +24 -12
- package/examples/capacitor/android/variables.gradle +9 -13
- package/examples/capacitor/index.tsx +23 -15
- package/examples/capacitor/ios/App/App/AppDelegate.swift +40 -5
- package/examples/capacitor/ios/App/App/Info.plist +2 -19
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +86 -30
- package/examples/capacitor/package.json +18 -13
- package/examples/capacitor/scripts/android.sh +8 -5
- package/examples/capacitor/scripts/ios.sh +7 -5
- package/examples/capacitor/scripts/setup.sh +7 -2
- package/examples/capacitor/src/main.css +0 -5
- package/examples/capacitor/vite.config.ts +12 -0
- package/examples/ionic/README.md +0 -2
- package/examples/ionic/config.xml +1 -1
- package/examples/ionic/index.tsx +3 -8
- package/examples/ionic/package-lock.json +7536 -6029
- package/examples/ionic/package.json +33 -24
- package/examples/ionic/scripts/android.sh +2 -0
- package/examples/ionic/scripts/ios.sh +2 -0
- package/examples/ionic/scripts/setup.sh +2 -0
- package/examples/ionic/tsconfig.json +1 -0
- package/examples/react_native/README.md +0 -2
- package/examples/react_native/app.config.ts +2 -1
- package/examples/react_native/package-lock.json +4015 -2002
- package/examples/react_native/package.json +19 -14
- package/examples/react_native/scripts/android.sh +3 -3
- package/examples/react_native/scripts/ios.sh +3 -3
- package/examples/react_native/scripts/setup.sh +3 -4
- package/examples/react_native/vendor/image-size-metro-compat/index.cjs +16 -0
- package/examples/react_native/vendor/image-size-metro-compat/package.json +8 -0
- package/package.json +1 -1
- package/plugin.xml +12 -12
- package/test/package-lock.json +1 -1
- package/Package.swift +0 -28
- package/android/build.gradle.kts +0 -37
- package/android/cordova.gradle.kts +0 -13
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +0 -5
- package/examples/capacitor/capacitor.config.json +0 -15
- package/examples/capacitor/ios/App/App/SceneDelegate.swift +0 -23
- package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +0 -1
- package/examples/capacitor-cocoapods/README.md +0 -22
- package/examples/capacitor-cocoapods/android/app/build.gradle +0 -50
- package/examples/capacitor-cocoapods/android/app/proguard-rules.pro +0 -21
- package/examples/capacitor-cocoapods/android/app/src/main/AndroidManifest.xml +0 -27
- package/examples/capacitor-cocoapods/android/app/src/main/assets/Regula/.gitkeep +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/java/com/regula/example/dr/capacitor/MainActivity.java +0 -5
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher_foreground.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/launcher.xml +0 -4
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/launcher_round.xml +0 -4
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/splash.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/layout/activity_main.xml +0 -12
- package/examples/capacitor-cocoapods/android/app/src/main/res/values/styles.xml +0 -22
- package/examples/capacitor-cocoapods/android/build.gradle +0 -30
- package/examples/capacitor-cocoapods/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor-cocoapods/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/examples/capacitor-cocoapods/android/gradle.properties +0 -22
- package/examples/capacitor-cocoapods/android/gradlew +0 -251
- package/examples/capacitor-cocoapods/android/gradlew.bat +0 -94
- package/examples/capacitor-cocoapods/android/settings.gradle +0 -5
- package/examples/capacitor-cocoapods/android/variables.gradle +0 -16
- package/examples/capacitor-cocoapods/index.html +0 -5
- package/examples/capacitor-cocoapods/index.tsx +0 -39
- package/examples/capacitor-cocoapods/ios/App/App/App.entitlements +0 -10
- package/examples/capacitor-cocoapods/ios/App/App/AppDelegate.swift +0 -49
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -14
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Contents.json +0 -6
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +0 -23
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Base.lproj/LaunchScreen.storyboard +0 -32
- package/examples/capacitor-cocoapods/ios/App/App/Info.plist +0 -69
- package/examples/capacitor-cocoapods/ios/App/App.xcodeproj/project.pbxproj +0 -430
- package/examples/capacitor-cocoapods/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/examples/capacitor-cocoapods/package.json +0 -30
- package/examples/capacitor-cocoapods/public/assets/.gitkeep +0 -0
- package/examples/capacitor-cocoapods/public/images/document.png +0 -0
- package/examples/capacitor-cocoapods/public/images/portrait.png +0 -0
- package/examples/capacitor-cocoapods/scripts/android.sh +0 -11
- package/examples/capacitor-cocoapods/scripts/ios.sh +0 -10
- package/examples/capacitor-cocoapods/scripts/setup.sh +0 -14
- package/examples/capacitor-cocoapods/src/extra/bt_device.tsx +0 -33
- package/examples/capacitor-cocoapods/src/extra/custom_rfid.tsx +0 -61
- package/examples/capacitor-cocoapods/src/main.css +0 -148
- package/examples/capacitor-cocoapods/src/main.html +0 -38
- package/examples/capacitor-cocoapods/src/main.tsx +0 -172
- package/examples/capacitor-cocoapods/tsconfig.json +0 -5
- package/examples/capacitor-cocoapods/vite.config.ts +0 -17
- package/examples/ionic-cocoapods/README.md +0 -22
- package/examples/ionic-cocoapods/angular.json +0 -39
- package/examples/ionic-cocoapods/assets/.gitkeep +0 -0
- package/examples/ionic-cocoapods/config.xml +0 -63
- package/examples/ionic-cocoapods/images/document.png +0 -0
- package/examples/ionic-cocoapods/images/icon.png +0 -0
- package/examples/ionic-cocoapods/images/portrait.png +0 -0
- package/examples/ionic-cocoapods/index.html +0 -19
- package/examples/ionic-cocoapods/index.tsx +0 -58
- package/examples/ionic-cocoapods/ionic.config.json +0 -7
- package/examples/ionic-cocoapods/package-lock.json +0 -16579
- package/examples/ionic-cocoapods/package.json +0 -58
- package/examples/ionic-cocoapods/scripts/android.sh +0 -8
- package/examples/ionic-cocoapods/scripts/ios.sh +0 -8
- package/examples/ionic-cocoapods/scripts/setup.sh +0 -8
- package/examples/ionic-cocoapods/src/extra/bt_device.tsx +0 -33
- package/examples/ionic-cocoapods/src/extra/custom_rfid.tsx +0 -61
- package/examples/ionic-cocoapods/src/main.css +0 -148
- package/examples/ionic-cocoapods/src/main.html +0 -38
- package/examples/ionic-cocoapods/src/main.tsx +0 -172
- package/examples/ionic-cocoapods/tsconfig.json +0 -14
- package/ios/module.modulemap +0 -7
- package/react-native-document-reader.podspec +0 -14
- /package/examples/{capacitor-cocoapods → capacitor}/android/app/capacitor.build.gradle +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/android/capacitor.settings.gradle +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ionic.config.json +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/App/Base.lproj/Main.storyboard +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/App.xcworkspace/contents.xcworkspacedata +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/Podfile +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/Podfile.lock +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/package-lock.json +0 -0
|
@@ -8,26 +8,31 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "9.9.
|
|
12
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "9.8.
|
|
13
|
-
"@regulaforensics/document-reader-btdevice": "9.
|
|
11
|
+
"@regulaforensics/document-reader": "9.9.1162-rc",
|
|
12
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "9.8.2974",
|
|
13
|
+
"@regulaforensics/document-reader-btdevice": "9.8.68",
|
|
14
|
+
"react-native": "^0.81.4",
|
|
14
15
|
"react-native-fs": "^2.20.0",
|
|
15
16
|
"react-native-image-picker": "^8.2.1",
|
|
16
|
-
"react-native-webview": "^
|
|
17
|
-
"react-native": "0.
|
|
18
|
-
"react": "19.
|
|
19
|
-
"@types/react": "19.
|
|
20
|
-
"expo": "
|
|
21
|
-
"expo-dev-client": "
|
|
22
|
-
"@expo/config-plugins": "58.0.0",
|
|
23
|
-
"expo-build-properties": "58.0.3",
|
|
17
|
+
"react-native-webview": "^13.16.0",
|
|
18
|
+
"@react-native/metro-config": "^0.81.1",
|
|
19
|
+
"react": "^19.1.1",
|
|
20
|
+
"@types/react": "^19.1.13",
|
|
21
|
+
"expo": "^54.0.7",
|
|
22
|
+
"expo-dev-client": "^6.0.12",
|
|
24
23
|
"expo-custom-assets": "^1.5.0",
|
|
25
|
-
"
|
|
24
|
+
"expo-build-properties": "^1.0.8",
|
|
25
|
+
"typescript": "5.9.2",
|
|
26
|
+
"image-size": "file:vendor/image-size-metro-compat"
|
|
26
27
|
},
|
|
27
28
|
"overrides": {
|
|
29
|
+
"postcss": "^8.5.10",
|
|
28
30
|
"uuid": "^14.0.0",
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
+
"js-yaml": "^4.1.1",
|
|
32
|
+
"brace-expansion": "5.0.9",
|
|
33
|
+
"image-size": "$image-size",
|
|
34
|
+
"glob@7.2.3": {
|
|
35
|
+
"minimatch": "10.2.6"
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
}
|
|
@@ -5,9 +5,9 @@ adb reverse tcp:8081 tcp:8081 >/dev/null || :
|
|
|
5
5
|
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
6
6
|
open -a 'Android Studio' android
|
|
7
7
|
# check if metro is already running
|
|
8
|
-
|
|
9
|
-
npm start
|
|
10
|
-
fi
|
|
8
|
+
[[ -z $(pgrep -f 'expo start') ]] && npm start
|
|
11
9
|
else
|
|
12
10
|
expo run:android --device
|
|
13
11
|
fi
|
|
12
|
+
|
|
13
|
+
exit 0
|
|
@@ -4,9 +4,9 @@ set -e
|
|
|
4
4
|
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
5
5
|
open ios/Document.xcworkspace
|
|
6
6
|
# check if metro is already running
|
|
7
|
-
|
|
8
|
-
npm start
|
|
9
|
-
fi
|
|
7
|
+
[[ -z $(pgrep -f 'expo start') ]] && npm start
|
|
10
8
|
else
|
|
11
9
|
npx expo run:ios --device
|
|
12
10
|
fi
|
|
11
|
+
|
|
12
|
+
exit 0
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
4
|
npm install
|
|
5
|
-
|
|
6
|
-
# Run CocoaPods separately because Expo prebuild can return success even when pod installation fails.
|
|
7
|
-
npx expo prebuild --no-install
|
|
8
|
-
(cd ios && (pod install || pod update))
|
|
5
|
+
expo prebuild
|
|
9
6
|
|
|
10
7
|
mkdir -p android/app/src/main/assets/Regula
|
|
11
8
|
mv android/app/src/main/res/raw/db.dat android/app/src/main/assets/Regula/
|
|
9
|
+
|
|
10
|
+
exit 0
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const fs = require('node:fs')
|
|
2
|
+
const next = require('image-size-next')
|
|
3
|
+
|
|
4
|
+
function imageSize(input) {
|
|
5
|
+
const data = typeof input === 'string'
|
|
6
|
+
? fs.readFileSync(input)
|
|
7
|
+
: input
|
|
8
|
+
|
|
9
|
+
return next.imageSize(data)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
module.exports = imageSize
|
|
13
|
+
module.exports.default = imageSize
|
|
14
|
+
module.exports.imageSize = imageSize
|
|
15
|
+
module.exports.disableTypes = next.disableTypes
|
|
16
|
+
module.exports.types = next.types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.1162-rc",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents 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/document-reader" version="9.9.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.9.1162-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
<clobbers target="DocumentReaderPlugin" />
|
|
10
10
|
</js-module>
|
|
11
11
|
|
|
12
|
-
<platform name="ios"
|
|
12
|
+
<platform name="ios">
|
|
13
13
|
<config-file target="config.xml" parent="/widget">
|
|
14
14
|
<feature name="DocumentReader">
|
|
15
15
|
<param name="ios-package" value="CVDDocumentReader" />
|
|
16
16
|
</feature>
|
|
17
|
-
<preference name="deployment-target" value="
|
|
17
|
+
<preference name="deployment-target" value="13.0" />
|
|
18
18
|
</config-file>
|
|
19
19
|
<header-file src="ios/CVDDocumentReader.h" />
|
|
20
20
|
<source-file src="ios/CVDDocumentReader.m" />
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/regulaforensics/podspecs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReaderStage" spec="9.9.7050" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
<platform name="android">
|
|
38
38
|
<config-file parent="/*" target="res/xml/config.xml">
|
|
39
39
|
<feature name="DocumentReader">
|
|
40
|
-
<param name="android-package" value="com.regula.plugin.
|
|
40
|
+
<param name="android-package" value="com.regula.plugin.documentreader.CVDDocumentReader" />
|
|
41
41
|
</feature>
|
|
42
42
|
</config-file>
|
|
43
|
-
<framework src="android/cordova.gradle
|
|
44
|
-
<source-file src="android/CVDDocumentReader.kt" target-dir="kotlin/com.regula.plugin.
|
|
45
|
-
<source-file src="android/src/main/kotlin/com/regula/plugin/
|
|
46
|
-
<source-file src="android/src/main/kotlin/com/regula/plugin/
|
|
47
|
-
<source-file src="android/src/main/kotlin/com/regula/plugin/
|
|
48
|
-
<source-file src="android/src/main/kotlin/com/regula/plugin/
|
|
49
|
-
<source-file src="android/src/main/kotlin/com/regula/plugin/
|
|
43
|
+
<framework src="android/cordova.gradle" custom="true" type="gradleReference" />
|
|
44
|
+
<source-file src="android/CVDDocumentReader.kt" target-dir="kotlin/com.regula.plugin.documentreader" />
|
|
45
|
+
<source-file src="android/src/main/kotlin/com/regula/plugin/documentreader/Main.kt" target-dir="kotlin/com.regula.plugin.documentreader" />
|
|
46
|
+
<source-file src="android/src/main/kotlin/com/regula/plugin/documentreader/JSONConstructor.kt" target-dir="kotlin/com.regula.plugin.documentreader" />
|
|
47
|
+
<source-file src="android/src/main/kotlin/com/regula/plugin/documentreader/Config.kt" target-dir="kotlin/com.regula.plugin.documentreader" />
|
|
48
|
+
<source-file src="android/src/main/kotlin/com/regula/plugin/documentreader/Utils.kt" target-dir="kotlin/com.regula.plugin.documentreader" />
|
|
49
|
+
<source-file src="android/src/main/kotlin/com/regula/plugin/documentreader/BluetoothUtil.kt" target-dir="kotlin/com.regula.plugin.documentreader" />
|
|
50
50
|
</platform>
|
|
51
51
|
</plugin>
|
package/test/package-lock.json
CHANGED
package/Package.swift
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// swift-tools-version: 5.9
|
|
2
|
-
|
|
3
|
-
import PackageDescription
|
|
4
|
-
|
|
5
|
-
let package = Package(
|
|
6
|
-
name: "@regulaforensics/document-reader",
|
|
7
|
-
platforms: [.iOS(.v15)],
|
|
8
|
-
products: [.library(name: "@regulaforensics/document-reader", targets: ["@regulaforensics/document-reader"])],
|
|
9
|
-
dependencies: [
|
|
10
|
-
.package(url: "https://github.com/apache/cordova-ios.git", branch: "master"),
|
|
11
|
-
.package(
|
|
12
|
-
url: "https://github.com/regulaforensics/DocumentReader-Swift-Package",
|
|
13
|
-
exact: "9.8.6944"
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
targets: [
|
|
17
|
-
.target(
|
|
18
|
-
name: "@regulaforensics/document-reader",
|
|
19
|
-
dependencies: [
|
|
20
|
-
.product(name: "Cordova", package: "cordova-ios"),
|
|
21
|
-
.product(name: "DocumentReader", package: "DocumentReader-Swift-Package")
|
|
22
|
-
],
|
|
23
|
-
path: "ios",
|
|
24
|
-
exclude: ["RNDocumentReader.h", "RNDocumentReader.m"],
|
|
25
|
-
publicHeadersPath: "."
|
|
26
|
-
)
|
|
27
|
-
]
|
|
28
|
-
)
|
package/android/build.gradle.kts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import com.android.build.api.dsl.LibraryExtension
|
|
2
|
-
|
|
3
|
-
plugins {
|
|
4
|
-
id("com.android.library")
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// AGP 9+ may already provide built-in Kotlin.
|
|
8
|
-
if (extensions.findByName("kotlin") == null) {
|
|
9
|
-
apply(plugin = "kotlin-android")
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
extensions.configure<LibraryExtension> {
|
|
13
|
-
namespace = "com.regula.plugin.document.reader"
|
|
14
|
-
compileSdk = 36
|
|
15
|
-
|
|
16
|
-
defaultConfig {
|
|
17
|
-
minSdk = 24
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
rootProject.allprojects {
|
|
22
|
-
repositories {
|
|
23
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader") }
|
|
24
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader/Beta") }
|
|
25
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader/Nightly") }
|
|
26
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader/Stage") }
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
dependencies {
|
|
31
|
-
//noinspection GradleDynamicVersion
|
|
32
|
-
implementation("com.facebook.react:react-native:+")
|
|
33
|
-
//noinspection GradleDependency
|
|
34
|
-
implementation("com.regula.documentreader:api:9.8.13324") {
|
|
35
|
-
isTransitive = true
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
repositories {
|
|
2
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader") }
|
|
3
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader/Beta") }
|
|
4
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader/Nightly") }
|
|
5
|
-
maven { url = uri("https://maven.regulaforensics.com/RegulaDocumentReader/Stage") }
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
dependencies {
|
|
9
|
-
//noinspection GradleDependency
|
|
10
|
-
add("implementation", "com.regula.documentreader:api:9.8.13324") {
|
|
11
|
-
isTransitive = true
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"appId": "com.regula.example.dr.capacitor",
|
|
3
|
-
"appName": "Document",
|
|
4
|
-
"webDir": "www",
|
|
5
|
-
"cordova": {
|
|
6
|
-
"preferences": {
|
|
7
|
-
"GradlePluginKotlinVersion": "2.4.20"
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"plugins": {
|
|
11
|
-
"SystemBars": {
|
|
12
|
-
"insetsHandling": "disable"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import UIKit
|
|
2
|
-
import Capacitor
|
|
3
|
-
|
|
4
|
-
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
5
|
-
var window: UIWindow?
|
|
6
|
-
|
|
7
|
-
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
|
8
|
-
guard let windowScene = scene as? UIWindowScene else { return }
|
|
9
|
-
window = UIWindow(windowScene: windowScene)
|
|
10
|
-
window?.rootViewController = CAPBridgeViewController()
|
|
11
|
-
window?.makeKeyAndVisible()
|
|
12
|
-
|
|
13
|
-
SceneDelegateProxy.shared.scene(scene, willConnectTo: session, options: connectionOptions)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
|
|
17
|
-
SceneDelegateProxy.shared.scene(scene, openURLContexts: URLContexts)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
|
|
21
|
-
SceneDelegateProxy.shared.scene(scene, continue: userActivity)
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
public let isCapacitorApp = true
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Regula Document Reader Capacitor demo application
|
|
2
|
-
|
|
3
|
-
## How to build demo application
|
|
4
|
-
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
|
-
2. Put `regula.license` file at `public/assets/` (you can get a trial license [here](https://client.regulaforensics.com)).
|
|
6
|
-
3. Put `db.dat` file at `public/assets/` (you can get a trial database [here](https://client.regulaforensics.com/customer/databases))
|
|
7
|
-
4. Execute `npm run setup` within this directory.
|
|
8
|
-
5. Run the app:
|
|
9
|
-
* IOS: `npm run ios`.
|
|
10
|
-
* Android: `npm run android`.
|
|
11
|
-
|
|
12
|
-
**Note**: this is just one way of running the app. You can also pass `-- -o` or `-- --open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
|
-
|
|
14
|
-
## Additional examples
|
|
15
|
-
|
|
16
|
-
### Bluetooth device
|
|
17
|
-
|
|
18
|
-
In order to connect to an external scanning device, change the `useBtDevice` constant to true in `src/extra/bt_device`, and set `btDeviceName` to the name of your device. After running the app, click `Connect`.
|
|
19
|
-
|
|
20
|
-
### RFID self hosted UI
|
|
21
|
-
|
|
22
|
-
This app also demonstraits how you can implement your own UI for the RFID reading process. To enable it, change the `useRfidSelfHostedUI` constant to true in `src/extra/custom_rfid`. Run the app and initiate RFID reading.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
apply plugin: 'com.android.application'
|
|
2
|
-
|
|
3
|
-
android {
|
|
4
|
-
namespace = "com.regula.example.dr.capacitor"
|
|
5
|
-
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
6
|
-
defaultConfig {
|
|
7
|
-
applicationId "com.regula.example.dr.capacitor"
|
|
8
|
-
minSdkVersion rootProject.ext.minSdkVersion
|
|
9
|
-
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
10
|
-
versionCode 1
|
|
11
|
-
versionName "1.0"
|
|
12
|
-
aaptOptions {
|
|
13
|
-
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
|
14
|
-
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
|
|
15
|
-
ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
buildTypes {
|
|
19
|
-
release {
|
|
20
|
-
minifyEnabled false
|
|
21
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
repositories {
|
|
27
|
-
flatDir{
|
|
28
|
-
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
dependencies {
|
|
33
|
-
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
34
|
-
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
35
|
-
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
|
36
|
-
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
|
|
37
|
-
implementation project(':capacitor-android')
|
|
38
|
-
implementation project(':capacitor-cordova-android-plugins')
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
apply from: 'capacitor.build.gradle'
|
|
42
|
-
|
|
43
|
-
try {
|
|
44
|
-
def servicesJSON = file('google-services.json')
|
|
45
|
-
if (servicesJSON.text) {
|
|
46
|
-
apply plugin: 'com.google.gms.google-services'
|
|
47
|
-
}
|
|
48
|
-
} catch(Exception e) {
|
|
49
|
-
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
|
|
50
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Add project specific ProGuard rules here.
|
|
2
|
-
# You can control the set of applied configuration files using the
|
|
3
|
-
# proguardFiles setting in build.gradle.
|
|
4
|
-
#
|
|
5
|
-
# For more details, see
|
|
6
|
-
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
7
|
-
|
|
8
|
-
# If your project uses WebView with JS, uncomment the following
|
|
9
|
-
# and specify the fully qualified class name to the JavaScript interface
|
|
10
|
-
# class:
|
|
11
|
-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
12
|
-
# public *;
|
|
13
|
-
#}
|
|
14
|
-
|
|
15
|
-
# Uncomment this to preserve the line number information for
|
|
16
|
-
# debugging stack traces.
|
|
17
|
-
#-keepattributes SourceFile,LineNumberTable
|
|
18
|
-
|
|
19
|
-
# If you keep the line number information, uncomment this to
|
|
20
|
-
# hide the original source file name.
|
|
21
|
-
#-renamesourcefileattribute SourceFile
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
-
|
|
3
|
-
<application
|
|
4
|
-
android:allowBackup="true"
|
|
5
|
-
android:icon="@drawable/launcher"
|
|
6
|
-
android:label="Document"
|
|
7
|
-
android:supportsRtl="true"
|
|
8
|
-
android:theme="@style/AppTheme"
|
|
9
|
-
android:usesCleartextTraffic="true">
|
|
10
|
-
<activity
|
|
11
|
-
android:name=".MainActivity"
|
|
12
|
-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation|density"
|
|
13
|
-
android:exported="true"
|
|
14
|
-
android:launchMode="singleTask"
|
|
15
|
-
android:screenOrientation="portrait"
|
|
16
|
-
android:theme="@style/AppTheme.NoActionBarLaunch">
|
|
17
|
-
<intent-filter>
|
|
18
|
-
<action android:name="android.intent.action.MAIN" />
|
|
19
|
-
<category android:name="android.intent.category.LAUNCHER" />
|
|
20
|
-
</intent-filter>
|
|
21
|
-
</activity>
|
|
22
|
-
</application>
|
|
23
|
-
|
|
24
|
-
<uses-permission android:name="android.permission.NFC" />
|
|
25
|
-
<uses-permission android:name="android.permission.INTERNET" />
|
|
26
|
-
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
27
|
-
</manifest>
|
|
File without changes
|
|
Binary file
|
package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher_foreground.png
DELETED
|
Binary file
|
package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher_round.png
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
-
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
-
android:layout_width="match_parent"
|
|
6
|
-
android:layout_height="match_parent"
|
|
7
|
-
tools:context=".MainActivity">
|
|
8
|
-
|
|
9
|
-
<WebView
|
|
10
|
-
android:layout_width="match_parent"
|
|
11
|
-
android:layout_height="match_parent" />
|
|
12
|
-
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<resources>
|
|
3
|
-
|
|
4
|
-
<!-- Base application theme. -->
|
|
5
|
-
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
|
6
|
-
<!-- Customize your theme here. -->
|
|
7
|
-
<item name="colorPrimary">@color/colorPrimary</item>
|
|
8
|
-
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
|
9
|
-
<item name="colorAccent">@color/colorAccent</item>
|
|
10
|
-
</style>
|
|
11
|
-
|
|
12
|
-
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
13
|
-
<item name="windowActionBar">false</item>
|
|
14
|
-
<item name="windowNoTitle">true</item>
|
|
15
|
-
<item name="android:background">@null</item>
|
|
16
|
-
</style>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
|
|
20
|
-
<item name="android:background">@drawable/splash</item>
|
|
21
|
-
</style>
|
|
22
|
-
</resources>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
2
|
-
|
|
3
|
-
buildscript {
|
|
4
|
-
|
|
5
|
-
repositories {
|
|
6
|
-
google()
|
|
7
|
-
mavenCentral()
|
|
8
|
-
}
|
|
9
|
-
dependencies {
|
|
10
|
-
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
11
|
-
classpath 'com.google.gms:google-services:4.4.4'
|
|
12
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.20"
|
|
13
|
-
|
|
14
|
-
// NOTE: Do not place your application dependencies here; they belong
|
|
15
|
-
// in the individual module build.gradle files
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
apply from: "variables.gradle"
|
|
20
|
-
|
|
21
|
-
allprojects {
|
|
22
|
-
repositories {
|
|
23
|
-
google()
|
|
24
|
-
mavenCentral()
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
task clean(type: Delete) {
|
|
29
|
-
delete rootProject.buildDir
|
|
30
|
-
}
|
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Project-wide Gradle settings.
|
|
2
|
-
|
|
3
|
-
# IDE (e.g. Android Studio) users:
|
|
4
|
-
# Gradle settings configured through the IDE *will override*
|
|
5
|
-
# any settings specified in this file.
|
|
6
|
-
|
|
7
|
-
# For more details on how to configure your build environment visit
|
|
8
|
-
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
-
|
|
10
|
-
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
-
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
-
org.gradle.jvmargs=-Xmx1536m
|
|
13
|
-
|
|
14
|
-
# When configured, Gradle will run in incubating parallel mode.
|
|
15
|
-
# This option should only be used with decoupled projects. More details, visit
|
|
16
|
-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
17
|
-
# org.gradle.parallel=true
|
|
18
|
-
|
|
19
|
-
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
20
|
-
# Android operating system, and which are packaged with your app's APK
|
|
21
|
-
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
22
|
-
android.useAndroidX=true
|