@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.
Files changed (73) hide show
  1. package/Package.swift +28 -0
  2. package/README.md +3 -1
  3. package/android/CVDDocumentReader.kt +6 -4
  4. package/android/build.gradle.kts +37 -0
  5. package/android/cordova.gradle.kts +13 -0
  6. package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/BluetoothUtil.kt +1 -1
  7. package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Config.kt +3 -3
  8. package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/JSONConstructor.kt +4 -4
  9. package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Main.kt +3 -3
  10. package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/RNDocumentReaderModule.kt +4 -3
  11. package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Utils.kt +1 -1
  12. package/app.plugin.js +10 -7
  13. package/examples/capacitor/README.md +2 -0
  14. package/examples/capacitor/android/app/build.gradle +1 -10
  15. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +9 -0
  16. package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
  17. package/examples/capacitor/android/build.gradle +12 -3
  18. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  19. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  20. package/examples/capacitor/android/gradle.properties +4 -0
  21. package/examples/capacitor/android/gradlew +4 -7
  22. package/examples/capacitor/android/gradlew.bat +12 -24
  23. package/examples/capacitor/android/variables.gradle +13 -9
  24. package/examples/capacitor/capacitor.config.json +15 -0
  25. package/examples/capacitor/index.tsx +15 -23
  26. package/examples/capacitor/ios/App/App/AppDelegate.swift +5 -40
  27. package/examples/capacitor/ios/App/App/Info.plist +19 -2
  28. package/examples/capacitor/ios/App/App/SceneDelegate.swift +23 -0
  29. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +30 -86
  30. package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +1 -0
  31. package/examples/capacitor/package-lock.json +1082 -1942
  32. package/examples/capacitor/package.json +13 -18
  33. package/examples/capacitor/scripts/android.sh +5 -8
  34. package/examples/capacitor/scripts/ios.sh +5 -7
  35. package/examples/capacitor/scripts/setup.sh +2 -7
  36. package/examples/capacitor/src/main.css +5 -0
  37. package/examples/capacitor/vite.config.ts +0 -12
  38. package/examples/ionic/README.md +2 -0
  39. package/examples/ionic/config.xml +1 -1
  40. package/examples/ionic/index.tsx +8 -3
  41. package/examples/ionic/package-lock.json +8982 -11455
  42. package/examples/ionic/package.json +24 -33
  43. package/examples/ionic/scripts/android.sh +0 -2
  44. package/examples/ionic/scripts/ios.sh +0 -2
  45. package/examples/ionic/scripts/setup.sh +0 -2
  46. package/examples/ionic/tsconfig.json +0 -1
  47. package/examples/react_native/README.md +2 -0
  48. package/examples/react_native/app.config.ts +1 -2
  49. package/examples/react_native/package-lock.json +1994 -3893
  50. package/examples/react_native/package.json +19 -21
  51. package/examples/react_native/scripts/android.sh +8 -6
  52. package/examples/react_native/scripts/ios.sh +7 -5
  53. package/examples/react_native/scripts/setup.sh +7 -3
  54. package/ios/spm/module.modulemap +7 -0
  55. package/package.json +1 -1
  56. package/plugin.xml +12 -12
  57. package/react-native-document-reader.podspec +14 -0
  58. package/test/package-lock.json +1 -1
  59. package/www/capacitor/internal/cordova.js +2 -2
  60. package/www/cordova.js +2 -2
  61. package/RNDocumentReader.podspec +0 -21
  62. package/android/build.gradle +0 -36
  63. package/android/cordova.gradle +0 -12
  64. package/examples/capacitor/android/app/capacitor.build.gradle +0 -20
  65. package/examples/capacitor/android/capacitor.settings.gradle +0 -9
  66. package/examples/capacitor/ionic.config.json +0 -7
  67. package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +0 -19
  68. package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +0 -10
  69. package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  70. package/examples/capacitor/ios/App/Podfile +0 -30
  71. package/examples/capacitor/ios/App/Podfile.lock +0 -52
  72. package/examples/react_native/vendor/image-size-metro-compat/index.cjs +0 -16
  73. 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.1162-rc",
10
- "@regulaforensics/document-reader-core-fullauthrfid": "9.8.2974",
11
- "@regulaforensics/document-reader-btdevice": "9.8.68",
12
- "@awesome-cordova-plugins/file": "^8.1.0",
13
- "@awesome-cordova-plugins/camera": "^8.1.0",
14
- "cordova-plugin-file": "^8.1.3",
15
- "cordova-plugin-camera": "^8.0.0",
16
- "@capacitor/cli": "^8.0.2",
17
- "@capacitor/core": "^8.0.2",
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
- "esbuild": "^0.28.1"
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
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
5
- ionic cap sync android
6
- open -a 'Android Studio' android
7
- else
8
- ionic cap run android
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
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
5
- ionic cap run ios --open
6
- else
7
- ionic cap run ios
8
- fi
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
@@ -2,13 +2,8 @@
2
2
  set -e
3
3
 
4
4
  npm install
5
- ionic cap sync ios || {
6
- cd ios/App
7
- pod update
8
- cd ../../
9
- }
5
+ vite build
6
+ npx cap sync
10
7
 
11
8
  cp public/assets/db.dat ios/App/App/
12
9
  cp public/assets/db.dat android/app/src/main/assets/Regula/
13
-
14
- exit 0
@@ -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
  })
@@ -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="14.0" />
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:*" />
@@ -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, Platform } from '@ionic/angular'
5
- import { NgModule } from '@angular/core'
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
+ })