@regulaforensics/ionic-native-document-reader 6.9.1 → 7.2.0

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 (83) hide show
  1. package/README.md +10 -9
  2. package/example/README.md +8 -6
  3. package/example/config.xml +5 -8
  4. package/example/package.json +14 -23
  5. package/example/src/app/home/home.module.ts +2 -4
  6. package/example/src/app/home/home.page.ts +81 -158
  7. package/index.d.ts +785 -491
  8. package/index.js +933 -277
  9. package/ngx/index.d.ts +785 -491
  10. package/ngx/index.js +937 -281
  11. package/package.json +1 -1
  12. package/reactExample/.browserslistrc +6 -0
  13. package/reactExample/.eslintrc.js +17 -0
  14. package/reactExample/README.md +9 -6
  15. package/reactExample/android/app/build.gradle +3 -0
  16. package/reactExample/android/app/capacitor.build.gradle +22 -0
  17. package/reactExample/android/app/src/main/AndroidManifest.xml +4 -7
  18. package/reactExample/android/app/src/main/assets/Regula/.gitkeep +0 -0
  19. package/reactExample/android/app/src/main/res/values/styles.xml +2 -2
  20. package/reactExample/android/build.gradle +9 -5
  21. package/reactExample/android/capacitor.settings.gradle +15 -0
  22. package/reactExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  23. package/reactExample/android/gradle/wrapper/gradle-wrapper.properties +2 -1
  24. package/reactExample/android/gradle.properties +0 -2
  25. package/reactExample/android/gradlew +164 -105
  26. package/reactExample/android/gradlew.bat +92 -89
  27. package/reactExample/android/variables.gradle +14 -12
  28. package/reactExample/capacitor.config.ts +4 -2
  29. package/reactExample/cypress/e2e/test.cy.ts +6 -0
  30. package/reactExample/cypress/fixtures/example.json +5 -0
  31. package/reactExample/cypress/support/commands.ts +37 -0
  32. package/reactExample/cypress/support/e2e.ts +20 -0
  33. package/reactExample/cypress.config.ts +10 -0
  34. package/reactExample/index.html +116 -0
  35. package/reactExample/ionic.config.json +6 -6
  36. package/reactExample/ios/App/App/App.entitlements +0 -1
  37. package/reactExample/ios/App/App/AppDelegate.swift +0 -11
  38. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +6 -108
  39. package/reactExample/ios/App/App/Info.plist +4 -4
  40. package/reactExample/ios/App/App.xcodeproj/project.pbxproj +14 -22
  41. package/reactExample/ios/App/Podfile +7 -3
  42. package/reactExample/package.json +58 -82
  43. package/reactExample/public/assets/.gitkeep +0 -0
  44. package/reactExample/src/components/ExploreContainer.css +24 -0
  45. package/reactExample/src/components/ExploreContainer.tsx +14 -0
  46. package/reactExample/src/main.tsx +11 -0
  47. package/reactExample/src/pages/Home.tsx +90 -161
  48. package/reactExample/src/theme/variables.css +6 -0
  49. package/reactExample/src/vite-env.d.ts +1 -0
  50. package/reactExample/tsconfig.json +10 -16
  51. package/reactExample/tsconfig.node.json +9 -0
  52. package/reactExample/vite.config.ts +16 -0
  53. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png +0 -0
  54. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png +0 -0
  55. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png +0 -0
  56. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png +0 -0
  57. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png +0 -0
  58. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png +0 -0
  59. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png +0 -0
  60. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png +0 -0
  61. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png +0 -0
  62. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png +0 -0
  63. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png +0 -0
  64. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png +0 -0
  65. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png +0 -0
  66. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png +0 -0
  67. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png +0 -0
  68. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png +0 -0
  69. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png +0 -0
  70. package/reactExample/ios/App/App/capacitor.config.json +0 -6
  71. package/reactExample/ios/App/App/config.xml +0 -19
  72. package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  73. package/reactExample/public/assets/icon/icon.png +0 -0
  74. package/reactExample/public/assets/shapes.svg +0 -1
  75. package/reactExample/public/index.html +0 -114
  76. package/reactExample/src/assets/img/id.png +0 -0
  77. package/reactExample/src/assets/img/portrait.png +0 -0
  78. package/reactExample/src/index.tsx +0 -22
  79. package/reactExample/src/react-app-env.d.ts +0 -1
  80. package/reactExample/src/reportWebVitals.ts +0 -15
  81. package/reactExample/src/service-worker.ts +0 -80
  82. package/reactExample/src/serviceWorkerRegistration.ts +0 -142
  83. /package/reactExample/public/{assets/icon/favicon.png → favicon.png} +0 -0
@@ -1,89 +1,92 @@
1
- @rem
2
- @rem Copyright 2015 the original author or authors.
3
- @rem
4
- @rem Licensed under the Apache License, Version 2.0 (the "License");
5
- @rem you may not use this file except in compliance with the License.
6
- @rem You may obtain a copy of the License at
7
- @rem
8
- @rem https://www.apache.org/licenses/LICENSE-2.0
9
- @rem
10
- @rem Unless required by applicable law or agreed to in writing, software
11
- @rem distributed under the License is distributed on an "AS IS" BASIS,
12
- @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- @rem See the License for the specific language governing permissions and
14
- @rem limitations under the License.
15
- @rem
16
-
17
- @if "%DEBUG%" == "" @echo off
18
- @rem ##########################################################################
19
- @rem
20
- @rem Gradle startup script for Windows
21
- @rem
22
- @rem ##########################################################################
23
-
24
- @rem Set local scope for the variables with windows NT shell
25
- if "%OS%"=="Windows_NT" setlocal
26
-
27
- set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
29
- set APP_BASE_NAME=%~n0
30
- set APP_HOME=%DIRNAME%
31
-
32
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
-
35
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37
-
38
- @rem Find java.exe
39
- if defined JAVA_HOME goto findJavaFromJavaHome
40
-
41
- set JAVA_EXE=java.exe
42
- %JAVA_EXE% -version >NUL 2>&1
43
- if "%ERRORLEVEL%" == "0" goto execute
44
-
45
- echo.
46
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
- echo.
48
- echo Please set the JAVA_HOME variable in your environment to match the
49
- echo location of your Java installation.
50
-
51
- goto fail
52
-
53
- :findJavaFromJavaHome
54
- set JAVA_HOME=%JAVA_HOME:"=%
55
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
-
57
- if exist "%JAVA_EXE%" goto execute
58
-
59
- echo.
60
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
- echo.
62
- echo Please set the JAVA_HOME variable in your environment to match the
63
- echo location of your Java installation.
64
-
65
- goto fail
66
-
67
- :execute
68
- @rem Setup the command line
69
-
70
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71
-
72
-
73
- @rem Execute Gradle
74
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75
-
76
- :end
77
- @rem End local scope for the variables with windows NT shell
78
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
-
80
- :fail
81
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
- rem the _cmd.exe /c_ return code!
83
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
- exit /b 1
85
-
86
- :mainEnd
87
- if "%OS%"=="Windows_NT" endlocal
88
-
89
- :omega
1
+ @rem
2
+ @rem Copyright 2015 the original author or authors.
3
+ @rem
4
+ @rem Licensed under the Apache License, Version 2.0 (the "License");
5
+ @rem you may not use this file except in compliance with the License.
6
+ @rem You may obtain a copy of the License at
7
+ @rem
8
+ @rem https://www.apache.org/licenses/LICENSE-2.0
9
+ @rem
10
+ @rem Unless required by applicable law or agreed to in writing, software
11
+ @rem distributed under the License is distributed on an "AS IS" BASIS,
12
+ @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ @rem See the License for the specific language governing permissions and
14
+ @rem limitations under the License.
15
+ @rem
16
+
17
+ @if "%DEBUG%"=="" @echo off
18
+ @rem ##########################################################################
19
+ @rem
20
+ @rem Gradle startup script for Windows
21
+ @rem
22
+ @rem ##########################################################################
23
+
24
+ @rem Set local scope for the variables with windows NT shell
25
+ if "%OS%"=="Windows_NT" setlocal
26
+
27
+ set DIRNAME=%~dp0
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
30
+ set APP_BASE_NAME=%~n0
31
+ set APP_HOME=%DIRNAME%
32
+
33
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
+
36
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
+
39
+ @rem Find java.exe
40
+ if defined JAVA_HOME goto findJavaFromJavaHome
41
+
42
+ set JAVA_EXE=java.exe
43
+ %JAVA_EXE% -version >NUL 2>&1
44
+ if %ERRORLEVEL% equ 0 goto execute
45
+
46
+ echo.
47
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
+ echo.
49
+ echo Please set the JAVA_HOME variable in your environment to match the
50
+ echo location of your Java installation.
51
+
52
+ goto fail
53
+
54
+ :findJavaFromJavaHome
55
+ set JAVA_HOME=%JAVA_HOME:"=%
56
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
+
58
+ if exist "%JAVA_EXE%" goto execute
59
+
60
+ echo.
61
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
+ echo.
63
+ echo Please set the JAVA_HOME variable in your environment to match the
64
+ echo location of your Java installation.
65
+
66
+ goto fail
67
+
68
+ :execute
69
+ @rem Setup the command line
70
+
71
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
+
73
+
74
+ @rem Execute Gradle
75
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
+
77
+ :end
78
+ @rem End local scope for the variables with windows NT shell
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
80
+
81
+ :fail
82
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
+ rem the _cmd.exe /c_ return code!
84
+ set EXIT_CODE=%ERRORLEVEL%
85
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
+ exit /b %EXIT_CODE%
88
+
89
+ :mainEnd
90
+ if "%OS%"=="Windows_NT" endlocal
91
+
92
+ :omega
@@ -1,14 +1,16 @@
1
1
  ext {
2
- minSdkVersion = 22
3
- compileSdkVersion = 32
4
- targetSdkVersion = 32
5
- androidxActivityVersion = '1.2.0'
6
- androidxAppCompatVersion = '1.2.0'
7
- androidxCoordinatorLayoutVersion = '1.1.0'
8
- androidxCoreVersion = '1.3.2'
9
- androidxFragmentVersion = '1.3.0'
10
- junitVersion = '4.13.1'
11
- androidxJunitVersion = '1.1.2'
12
- androidxEspressoCoreVersion = '3.3.0'
13
- cordovaAndroidVersion = '11.0.0'
2
+ minSdkVersion = 24
3
+ compileSdkVersion = 34
4
+ targetSdkVersion = 34
5
+ androidxActivityVersion = '1.8.2'
6
+ androidxAppCompatVersion = '1.6.1'
7
+ androidxCoordinatorLayoutVersion = '1.2.0'
8
+ androidxCoreVersion = '1.12.0'
9
+ androidxFragmentVersion = '1.5.6'
10
+ coreSplashScreenVersion = '1.0.0'
11
+ androidxWebkitVersion = '1.6.1'
12
+ junitVersion = '4.13.2'
13
+ androidxJunitVersion = '1.1.5'
14
+ androidxEspressoCoreVersion = '3.5.1'
15
+ cordovaAndroidVersion = '12.0.1'
14
16
  }
@@ -3,8 +3,10 @@ import { CapacitorConfig } from '@capacitor/cli';
3
3
  const config: CapacitorConfig = {
4
4
  appId: 'com.regula.documentreader',
5
5
  appName: 'DocumentReader',
6
- webDir: 'build',
7
- bundledWebRuntime: false
6
+ webDir: 'dist',
7
+ server: {
8
+ androidScheme: 'https'
9
+ }
8
10
  };
9
11
 
10
12
  export default config;
@@ -0,0 +1,6 @@
1
+ describe('My First Test', () => {
2
+ it('Visits the app root url', () => {
3
+ cy.visit('/')
4
+ cy.contains('#container', 'Ready to create an app?')
5
+ })
6
+ })
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "Using fixtures to represent data",
3
+ "email": "hello@cypress.io",
4
+ "body": "Fixtures are a great way to mock data for responses to routes"
5
+ }
@@ -0,0 +1,37 @@
1
+ /// <reference types="cypress" />
2
+ // ***********************************************
3
+ // This example commands.ts shows you how to
4
+ // create various custom commands and overwrite
5
+ // existing commands.
6
+ //
7
+ // For more comprehensive examples of custom
8
+ // commands please read more here:
9
+ // https://on.cypress.io/custom-commands
10
+ // ***********************************************
11
+ //
12
+ //
13
+ // -- This is a parent command --
14
+ // Cypress.Commands.add('login', (email, password) => { ... })
15
+ //
16
+ //
17
+ // -- This is a child command --
18
+ // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
19
+ //
20
+ //
21
+ // -- This is a dual command --
22
+ // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
23
+ //
24
+ //
25
+ // -- This will overwrite an existing command --
26
+ // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
27
+ //
28
+ // declare global {
29
+ // namespace Cypress {
30
+ // interface Chainable {
31
+ // login(email: string, password: string): Chainable<void>
32
+ // drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
33
+ // dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
34
+ // visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
35
+ // }
36
+ // }
37
+ // }
@@ -0,0 +1,20 @@
1
+ // ***********************************************************
2
+ // This example support/e2e.ts is processed and
3
+ // loaded automatically before your test files.
4
+ //
5
+ // This is a great place to put global configuration and
6
+ // behavior that modifies Cypress.
7
+ //
8
+ // You can change the location of this file or turn off
9
+ // automatically serving support files with the
10
+ // 'supportFile' configuration option.
11
+ //
12
+ // You can read more here:
13
+ // https://on.cypress.io/configuration
14
+ // ***********************************************************
15
+
16
+ // Import commands.js using ES2015 syntax:
17
+ import './commands'
18
+
19
+ // Alternatively you can use CommonJS syntax:
20
+ // require('./commands')
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from "cypress";
2
+
3
+ export default defineConfig({
4
+ e2e: {
5
+ baseUrl: "http://localhost:5173",
6
+ setupNodeEvents(on, config) {
7
+ // implement node event listeners here
8
+ },
9
+ },
10
+ });
@@ -0,0 +1,116 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Ionic App</title>
6
+
7
+ <base href="/" />
8
+
9
+ <meta name="color-scheme" content="light" />
10
+ <meta
11
+ name="viewport"
12
+ content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
13
+ />
14
+ <meta name="format-detection" content="telephone=no" />
15
+ <meta name="msapplication-tap-highlight" content="no" />
16
+
17
+ <link rel="manifest" href="/manifest.json" />
18
+
19
+ <link rel="shortcut icon" type="image/png" href="/favicon.png" />
20
+
21
+ <!-- add to homescreen for ios -->
22
+ <meta name="apple-mobile-web-app-capable" content="yes" />
23
+ <meta name="apple-mobile-web-app-title" content="Ionic App" />
24
+ <meta name="apple-mobile-web-app-status-bar-style" content="black" />
25
+ </head>
26
+ <body>
27
+ <div class="rfidUI" style="text-align: center; background-color: #F5FCFF; height: 100%; width:100%; display: none;">
28
+ <div style="position: absolute; top: 50%; left: 50%; width:100%; -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); ">
29
+ <p class="rfidUIHeader">Reading RFID</p>
30
+ <p class="rfidDescription">Place your phone on top of the NFC tag</p>
31
+ <progress class="rfidProgress" value="0" max="100"></progress>
32
+ <br><br><br>
33
+ <button class="cancelButton">X</button>
34
+ </div>
35
+ </div>
36
+ <div class="mainUI" style="text-align: center;background-color: #F5FCFF;height: 100%;">
37
+ <div style="align-items: center; text-align: center; width: 100%">
38
+ <br><br>
39
+ <p class="status">Ready</p>
40
+ </div>
41
+ <div style=" align-items:center; text-align: center;display: inline-block;">
42
+ <p style="margin-bottom: 5px">Portrait</p>
43
+ <img style="height: 133px; width: 100px" src="public/assets/img/portrait.png" resizeMode="contain" class="portraitImage" />
44
+ </div>
45
+ <div style="align-items: center; text-align: center; display: inline-block;">
46
+ <p style="margin-bottom: 5px">Document</p>
47
+ <img style="height: 133px;" src="public/assets/img/id.png" resizeMode="contain" class="documentImage" />
48
+ </div>
49
+ <br><br>
50
+ <div class="scenariosRadioGroup" style="position: absolute; bottom: 100px; top: 280px; left: 75px; padding: 5px; text-align:left; overflow: auto">
51
+ </div>
52
+
53
+ <div style="position: absolute; bottom: 10px; width: 100%; text-align: center; align-items: center">
54
+ <div id="rfidDiv" style="flex-direction: row; padding: 5px">
55
+ <input type="checkbox" class="rfidCheckbox" name="rfid" disabled=true></input><span class="rfidCheckboxText" style="color: lightgrey"> Process rfid reading(unavailable)</span><br>
56
+ </div>
57
+ <div style="flex-direction: row; padding: 10px">
58
+ <button class="showScannerButton" style="margin-right: 20px">scan doc</button>
59
+ <button class="showImagePicker" style="margin-left: 20px">scan image</button>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ <div id="root" style="display: none">
64
+ </div>
65
+ <script type="module" src="/src/main.tsx"></script>
66
+
67
+ <style type="text/css">
68
+ button {
69
+ width: 40%;
70
+ -moz-box-shadow: inset 0px -3px 7px 0px #29bbff;
71
+ -webkit-box-shadow: inset 0px -3px 7px 0px #29bbff;
72
+ box-shadow: inset 0px -3px 7px 0px #29bbff;
73
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #2dabf9), color-stop(1, #0688fa));
74
+ background: -moz-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
75
+ background: -webkit-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
76
+ background: -o-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
77
+ background: -ms-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
78
+ background: linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
79
+ filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#2dabf9', endColorstr='#0688fa', GradientType=0);
80
+ background-color: #2dabf9;
81
+ -moz-border-radius: 3px;
82
+ -webkit-border-radius: 3px;
83
+ border-radius: 3px;
84
+ border: 1px solid #0b0e07;
85
+ display: inline-block;
86
+ cursor: pointer;
87
+ color: #ffffff;
88
+ font-family: Arial;
89
+ font-size: 15px;
90
+ padding: 9px 23px;
91
+ text-decoration: none;
92
+ text-shadow: 0px 1px 0px #263666;
93
+ }
94
+
95
+ button:hover {
96
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0688fa), color-stop(1, #2dabf9));
97
+ background: -moz-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
98
+ background: -webkit-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
99
+ background: -o-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
100
+ background: -ms-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
101
+ background: linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
102
+ filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#0688fa', endColorstr='#2dabf9', GradientType=0);
103
+ background-color: #0688fa;
104
+ }
105
+
106
+ button:active {
107
+ position: relative;
108
+ top: 1px;
109
+ }
110
+
111
+ div {
112
+ color: black;
113
+ }
114
+ </style>
115
+ </body>
116
+ </html>
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "DocumentReader",
3
- "integrations": {
4
- "capacitor": {}
5
- },
6
- "type": "react"
7
- }
2
+ "name": "DocumentReader",
3
+ "integrations": {
4
+ "capacitor": {}
5
+ },
6
+ "type": "react-vite"
7
+ }
@@ -4,7 +4,6 @@
4
4
  <dict>
5
5
  <key>com.apple.developer.nfc.readersession.formats</key>
6
6
  <array>
7
- <string>NDEF</string>
8
7
  <string>TAG</string>
9
8
  </array>
10
9
  </dict>
@@ -46,15 +46,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
46
46
  return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler)
47
47
  }
48
48
 
49
- override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
50
- super.touchesBegan(touches, with: event)
51
-
52
- let statusBarRect = UIApplication.shared.statusBarFrame
53
- guard let touchPoint = event?.allTouches?.first?.location(in: self.window) else { return }
54
-
55
- if statusBarRect.contains(touchPoint) {
56
- NotificationCenter.default.post(name: .capacitorStatusBarTapped, object: nil)
57
- }
58
- }
59
-
60
49
  }
@@ -1,116 +1,14 @@
1
1
  {
2
2
  "images" : [
3
3
  {
4
- "size" : "20x20",
5
- "idiom" : "iphone",
6
- "filename" : "AppIcon-20x20@2x.png",
7
- "scale" : "2x"
8
- },
9
- {
10
- "size" : "20x20",
11
- "idiom" : "iphone",
12
- "filename" : "AppIcon-20x20@3x.png",
13
- "scale" : "3x"
14
- },
15
- {
16
- "size" : "29x29",
17
- "idiom" : "iphone",
18
- "filename" : "AppIcon-29x29@2x-1.png",
19
- "scale" : "2x"
20
- },
21
- {
22
- "size" : "29x29",
23
- "idiom" : "iphone",
24
- "filename" : "AppIcon-29x29@3x.png",
25
- "scale" : "3x"
26
- },
27
- {
28
- "size" : "40x40",
29
- "idiom" : "iphone",
30
- "filename" : "AppIcon-40x40@2x.png",
31
- "scale" : "2x"
32
- },
33
- {
34
- "size" : "40x40",
35
- "idiom" : "iphone",
36
- "filename" : "AppIcon-40x40@3x.png",
37
- "scale" : "3x"
38
- },
39
- {
40
- "size" : "60x60",
41
- "idiom" : "iphone",
42
- "filename" : "AppIcon-60x60@2x.png",
43
- "scale" : "2x"
44
- },
45
- {
46
- "size" : "60x60",
47
- "idiom" : "iphone",
48
- "filename" : "AppIcon-60x60@3x.png",
49
- "scale" : "3x"
50
- },
51
- {
52
- "size" : "20x20",
53
- "idiom" : "ipad",
54
- "filename" : "AppIcon-20x20@1x.png",
55
- "scale" : "1x"
56
- },
57
- {
58
- "size" : "20x20",
59
- "idiom" : "ipad",
60
- "filename" : "AppIcon-20x20@2x-1.png",
61
- "scale" : "2x"
62
- },
63
- {
64
- "size" : "29x29",
65
- "idiom" : "ipad",
66
- "filename" : "AppIcon-29x29@1x.png",
67
- "scale" : "1x"
68
- },
69
- {
70
- "size" : "29x29",
71
- "idiom" : "ipad",
72
- "filename" : "AppIcon-29x29@2x.png",
73
- "scale" : "2x"
74
- },
75
- {
76
- "size" : "40x40",
77
- "idiom" : "ipad",
78
- "filename" : "AppIcon-40x40@1x.png",
79
- "scale" : "1x"
80
- },
81
- {
82
- "size" : "40x40",
83
- "idiom" : "ipad",
84
- "filename" : "AppIcon-40x40@2x-1.png",
85
- "scale" : "2x"
86
- },
87
- {
88
- "size" : "76x76",
89
- "idiom" : "ipad",
90
- "filename" : "AppIcon-76x76@1x.png",
91
- "scale" : "1x"
92
- },
93
- {
94
- "size" : "76x76",
95
- "idiom" : "ipad",
96
- "filename" : "AppIcon-76x76@2x.png",
97
- "scale" : "2x"
98
- },
99
- {
100
- "size" : "83.5x83.5",
101
- "idiom" : "ipad",
102
- "filename" : "AppIcon-83.5x83.5@2x.png",
103
- "scale" : "2x"
104
- },
105
- {
106
- "size" : "1024x1024",
107
- "idiom" : "ios-marketing",
108
4
  "filename" : "AppIcon-512@2x.png",
109
- "scale" : "1x"
5
+ "idiom" : "universal",
6
+ "platform" : "ios",
7
+ "size" : "1024x1024"
110
8
  }
111
9
  ],
112
10
  "info" : {
113
- "version" : 1,
114
- "author" : "xcode"
11
+ "author" : "xcode",
12
+ "version" : 1
115
13
  }
116
- }
14
+ }
@@ -17,9 +17,9 @@
17
17
  <key>CFBundlePackageType</key>
18
18
  <string>APPL</string>
19
19
  <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
20
+ <string>$(MARKETING_VERSION)</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>1</string>
22
+ <string>$(CURRENT_PROJECT_VERSION)</string>
23
23
  <key>LSRequiresIPhoneOS</key>
24
24
  <true/>
25
25
  <key>NFCReaderUsageDescription</key>
@@ -30,9 +30,9 @@
30
30
  <true/>
31
31
  </dict>
32
32
  <key>NSCameraUsageDescription</key>
33
- <string>To use camera</string>
33
+ <string></string>
34
34
  <key>NSPhotoLibraryUsageDescription</key>
35
- <string>To use gallery</string>
35
+ <string></string>
36
36
  <key>UILaunchStoryboardName</key>
37
37
  <string>LaunchScreen</string>
38
38
  <key>UIMainStoryboardFile</key>