@regulaforensics/document-reader 9.9.1162-rc → 9.9.1166-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/Package.swift +28 -0
- package/README.md +3 -1
- package/android/CVDDocumentReader.kt +6 -4
- package/android/build.gradle.kts +37 -0
- package/android/cordova.gradle.kts +13 -0
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/BluetoothUtil.kt +1 -1
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Config.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/JSONConstructor.kt +4 -4
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Main.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/RNDocumentReaderModule.kt +4 -3
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Utils.kt +1 -1
- package/app.plugin.js +10 -7
- package/examples/capacitor/README.md +2 -0
- package/examples/capacitor/android/app/build.gradle +1 -10
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +9 -0
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/examples/capacitor/android/build.gradle +12 -3
- 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 +4 -0
- package/examples/capacitor/android/gradlew +4 -7
- package/examples/capacitor/android/gradlew.bat +12 -24
- package/examples/capacitor/android/variables.gradle +13 -9
- package/examples/capacitor/capacitor.config.json +15 -0
- package/examples/capacitor/index.tsx +15 -23
- package/examples/capacitor/ios/App/App/AppDelegate.swift +5 -40
- package/examples/capacitor/ios/App/App/Info.plist +19 -2
- package/examples/capacitor/ios/App/App/SceneDelegate.swift +23 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +30 -86
- package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +1 -0
- package/examples/capacitor/package-lock.json +1082 -1942
- package/examples/capacitor/package.json +13 -18
- package/examples/capacitor/scripts/android.sh +5 -8
- package/examples/capacitor/scripts/ios.sh +5 -7
- package/examples/capacitor/scripts/setup.sh +2 -7
- package/examples/capacitor/src/main.css +5 -0
- package/examples/capacitor/vite.config.ts +0 -12
- package/examples/ionic/README.md +2 -0
- package/examples/ionic/config.xml +1 -1
- package/examples/ionic/index.tsx +8 -3
- package/examples/ionic/package-lock.json +8982 -11455
- package/examples/ionic/package.json +24 -33
- package/examples/ionic/scripts/android.sh +0 -2
- package/examples/ionic/scripts/ios.sh +0 -2
- package/examples/ionic/scripts/setup.sh +0 -2
- package/examples/ionic/tsconfig.json +0 -1
- package/examples/react_native/README.md +2 -0
- package/examples/react_native/app.config.ts +1 -2
- package/examples/react_native/package-lock.json +1994 -3893
- package/examples/react_native/package.json +19 -21
- package/examples/react_native/scripts/android.sh +8 -6
- package/examples/react_native/scripts/ios.sh +7 -5
- package/examples/react_native/scripts/setup.sh +7 -3
- package/ios/spm/module.modulemap +7 -0
- package/package.json +1 -1
- package/plugin.xml +12 -12
- package/react-native-document-reader.podspec +14 -0
- package/test/package-lock.json +1 -1
- package/www/capacitor/internal/cordova.js +2 -2
- package/www/cordova.js +2 -2
- package/RNDocumentReader.podspec +0 -21
- package/android/build.gradle +0 -36
- package/android/cordova.gradle +0 -12
- package/examples/capacitor/android/app/capacitor.build.gradle +0 -20
- package/examples/capacitor/android/capacitor.settings.gradle +0 -9
- package/examples/capacitor/ionic.config.json +0 -7
- package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +0 -19
- package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +0 -10
- package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/examples/capacitor/ios/App/Podfile +0 -30
- package/examples/capacitor/ios/App/Podfile.lock +0 -52
- package/examples/react_native/vendor/image-size-metro-compat/index.cjs +0 -16
- package/examples/react_native/vendor/image-size-metro-compat/package.json +0 -8
|
@@ -1,30 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-reader",
|
|
3
|
+
"type": "module",
|
|
3
4
|
"scripts": {
|
|
4
5
|
"setup": "scripts/setup.sh",
|
|
5
6
|
"ios": "scripts/ios.sh",
|
|
6
7
|
"android": "scripts/android.sh"
|
|
7
8
|
},
|
|
8
9
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "9.9.
|
|
10
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "9.
|
|
11
|
-
"@regulaforensics/document-reader-btdevice": "9.
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"@capacitor/
|
|
17
|
-
"
|
|
18
|
-
"@capacitor/app": "^8.0.0",
|
|
19
|
-
"@capacitor/ios": "^8.0.2",
|
|
20
|
-
"@capacitor/android": "^8.0.2",
|
|
21
|
-
"@capacitor/status-bar": "^8.0.0",
|
|
22
|
-
"@ionic/react": "^8.7.17",
|
|
23
|
-
"@vitejs/plugin-react": "^5.1.2",
|
|
24
|
-
"vite-plugin-static-copy": "^3.2.0",
|
|
25
|
-
"@types/react-router-dom": "^5.3.3"
|
|
10
|
+
"@regulaforensics/document-reader": "9.9.1166-beta",
|
|
11
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "9.9.3183-beta",
|
|
12
|
+
"@regulaforensics/document-reader-btdevice": "9.9.112-beta",
|
|
13
|
+
"@capacitor/cli": "^8.5.2",
|
|
14
|
+
"@capacitor/core": "^8.5.2",
|
|
15
|
+
"@capacitor/ios": "^8.5.2",
|
|
16
|
+
"@capacitor/android": "^8.5.2",
|
|
17
|
+
"@capacitor/camera": "^8.2.4",
|
|
18
|
+
"vite": "^8.3.0"
|
|
26
19
|
},
|
|
27
20
|
"overrides": {
|
|
28
|
-
"
|
|
21
|
+
"xcode": {
|
|
22
|
+
"uuid": "^11.1.1"
|
|
23
|
+
}
|
|
29
24
|
}
|
|
30
25
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
fi
|
|
10
|
-
|
|
11
|
-
exit 0
|
|
4
|
+
vite build
|
|
5
|
+
npx cap sync android
|
|
6
|
+
[[ " $* " == *" --open "* || " $* " == *" -o "* ]] &&
|
|
7
|
+
npx cap open android ||
|
|
8
|
+
npx cap run android --no-sync
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exit 0
|
|
4
|
+
vite build
|
|
5
|
+
npx cap sync ios
|
|
6
|
+
[[ " $* " == *" --open "* || " $* " == *" -o "* ]] &&
|
|
7
|
+
npx cap open ios ||
|
|
8
|
+
npx cap run ios --no-sync
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
html,
|
|
2
2
|
body {
|
|
3
3
|
margin: 0;
|
|
4
|
+
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, sans-serif;
|
|
4
5
|
width: 100%;
|
|
5
6
|
height: 99vh;
|
|
6
7
|
display: flex;
|
|
@@ -8,6 +9,10 @@ body {
|
|
|
8
9
|
flex-direction: column;
|
|
9
10
|
}
|
|
10
11
|
|
|
12
|
+
* {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
/* Prevent text selection */
|
|
12
17
|
* {
|
|
13
18
|
user-select: none !important;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import react from '@vitejs/plugin-react'
|
|
2
1
|
import { defineConfig } from 'vite'
|
|
3
|
-
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
4
2
|
|
|
5
3
|
export default defineConfig({
|
|
6
|
-
plugins: [
|
|
7
|
-
react(),
|
|
8
|
-
viteStaticCopy({
|
|
9
|
-
targets: [
|
|
10
|
-
{
|
|
11
|
-
src: 'src/main.html',
|
|
12
|
-
dest: '.'
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
})],
|
|
16
4
|
build: { outDir: 'www' }
|
|
17
5
|
})
|
package/examples/ionic/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Regula Document Reader Ionic demo application
|
|
2
2
|
|
|
3
|
+
Requires Node.js 22+, Xcode 26+, Android Studio with JDK 17 and Android SDK 36.
|
|
4
|
+
|
|
3
5
|
## How to build demo application
|
|
4
6
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
7
|
2. Put `regula.license` file at `assets/` (you can get a trial license [here](https://client.regulaforensics.com)).
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</platform>
|
|
19
19
|
<platform name="ios">
|
|
20
20
|
<resource-file src="assets/db.dat" />
|
|
21
|
-
<preference name="deployment-target" value="
|
|
21
|
+
<preference name="deployment-target" value="15.0" />
|
|
22
22
|
<preference name="orientation" value="portrait" />
|
|
23
23
|
<allow-intent href="itms:*" />
|
|
24
24
|
<allow-intent href="itms-apps:*" />
|
package/examples/ionic/index.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import 'zone.js';
|
|
2
2
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
|
|
3
3
|
import { BrowserModule } from '@angular/platform-browser'
|
|
4
|
-
import { IonicModule
|
|
5
|
-
import {
|
|
4
|
+
import { IonicModule } from '@ionic/angular/lazy'
|
|
5
|
+
import { Platform } from '@ionic/angular'
|
|
6
|
+
import { NgModule, provideZoneChangeDetection } from '@angular/core'
|
|
6
7
|
|
|
7
8
|
import { Component } from '@angular/core'
|
|
8
9
|
import { File } from '@awesome-cordova-plugins/file'
|
|
@@ -34,6 +35,7 @@ export async function pickImage(): Promise<string | null> {
|
|
|
34
35
|
var cameraInstance: Camera
|
|
35
36
|
@Component({
|
|
36
37
|
selector: 'app-root',
|
|
38
|
+
standalone: false,
|
|
37
39
|
templateUrl: 'src/main.html',
|
|
38
40
|
styleUrl: 'src/main.css'
|
|
39
41
|
})
|
|
@@ -50,9 +52,12 @@ class Main {
|
|
|
50
52
|
|
|
51
53
|
@NgModule({
|
|
52
54
|
bootstrap: [Main],
|
|
55
|
+
declarations: [Main],
|
|
53
56
|
providers: [Platform, Camera],
|
|
54
57
|
imports: [BrowserModule, IonicModule.forRoot()]
|
|
55
58
|
})
|
|
56
59
|
class MainModule { }
|
|
57
60
|
|
|
58
|
-
platformBrowserDynamic().bootstrapModule(MainModule
|
|
61
|
+
platformBrowserDynamic().bootstrapModule(MainModule, {
|
|
62
|
+
applicationProviders: [provideZoneChangeDetection()]
|
|
63
|
+
})
|