@regulaforensics/ionic-native-document-reader 6.9.0 → 7.1.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.
- package/README.md +10 -9
- package/example/README.md +8 -6
- package/example/config.xml +5 -8
- package/example/package.json +14 -23
- package/example/src/app/home/home.module.ts +2 -4
- package/example/src/app/home/home.page.ts +82 -159
- package/index.d.ts +324 -342
- package/index.js +250 -96
- package/ngx/index.d.ts +324 -342
- package/ngx/index.js +254 -100
- package/package.json +1 -1
- package/reactExample/.browserslistrc +6 -0
- package/reactExample/.eslintrc.js +17 -0
- package/reactExample/README.md +9 -6
- package/reactExample/android/app/build.gradle +3 -0
- package/reactExample/android/app/capacitor.build.gradle +22 -0
- package/reactExample/android/app/src/main/AndroidManifest.xml +4 -7
- package/reactExample/android/app/src/main/assets/Regula/.gitkeep +0 -0
- package/reactExample/android/app/src/main/res/values/styles.xml +2 -2
- package/reactExample/android/build.gradle +9 -5
- package/reactExample/android/capacitor.settings.gradle +15 -0
- package/reactExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/reactExample/android/gradle/wrapper/gradle-wrapper.properties +2 -1
- package/reactExample/android/gradle.properties +0 -2
- package/reactExample/android/gradlew +164 -105
- package/reactExample/android/gradlew.bat +92 -89
- package/reactExample/android/variables.gradle +14 -12
- package/reactExample/capacitor.config.ts +4 -2
- package/reactExample/cypress/e2e/test.cy.ts +6 -0
- package/reactExample/cypress/fixtures/example.json +5 -0
- package/reactExample/cypress/support/commands.ts +37 -0
- package/reactExample/cypress/support/e2e.ts +20 -0
- package/reactExample/cypress.config.ts +10 -0
- package/reactExample/index.html +116 -0
- package/reactExample/ionic.config.json +6 -6
- package/reactExample/ios/App/App/App.entitlements +0 -1
- package/reactExample/ios/App/App/AppDelegate.swift +0 -11
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +6 -108
- package/reactExample/ios/App/App/Info.plist +4 -4
- package/reactExample/ios/App/App.xcodeproj/project.pbxproj +14 -22
- package/reactExample/ios/App/Podfile +7 -3
- package/reactExample/package.json +58 -82
- package/reactExample/public/assets/.gitkeep +0 -0
- package/reactExample/src/components/ExploreContainer.css +24 -0
- package/reactExample/src/components/ExploreContainer.tsx +14 -0
- package/reactExample/src/main.tsx +11 -0
- package/reactExample/src/pages/Home.tsx +91 -162
- package/reactExample/src/theme/variables.css +6 -0
- package/reactExample/src/vite-env.d.ts +1 -0
- package/reactExample/tsconfig.json +10 -16
- package/reactExample/tsconfig.node.json +9 -0
- package/reactExample/vite.config.ts +16 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png +0 -0
- package/reactExample/ios/App/App/capacitor.config.json +0 -6
- package/reactExample/ios/App/App/config.xml +0 -19
- package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/reactExample/public/assets/icon/icon.png +0 -0
- package/reactExample/public/assets/shapes.svg +0 -1
- package/reactExample/public/index.html +0 -114
- package/reactExample/src/assets/img/id.png +0 -0
- package/reactExample/src/assets/img/portrait.png +0 -0
- package/reactExample/src/index.tsx +0 -22
- package/reactExample/src/react-app-env.d.ts +0 -1
- package/reactExample/src/reportWebVitals.ts +0 -15
- package/reactExample/src/service-worker.ts +0 -80
- package/reactExample/src/serviceWorkerRegistration.ts +0 -142
- /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%"
|
|
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%"
|
|
29
|
-
|
|
30
|
-
set
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
echo
|
|
47
|
-
echo.
|
|
48
|
-
echo
|
|
49
|
-
echo
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
set
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
echo
|
|
61
|
-
echo
|
|
62
|
-
echo
|
|
63
|
-
echo
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
rem the
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
:
|
|
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 =
|
|
3
|
-
compileSdkVersion =
|
|
4
|
-
targetSdkVersion =
|
|
5
|
-
androidxActivityVersion = '1.2
|
|
6
|
-
androidxAppCompatVersion = '1.
|
|
7
|
-
androidxCoordinatorLayoutVersion = '1.
|
|
8
|
-
androidxCoreVersion = '1.
|
|
9
|
-
androidxFragmentVersion = '1.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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: '
|
|
7
|
-
|
|
6
|
+
webDir: 'dist',
|
|
7
|
+
server: {
|
|
8
|
+
androidScheme: 'https'
|
|
9
|
+
}
|
|
8
10
|
};
|
|
9
11
|
|
|
10
12
|
export default config;
|
|
@@ -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,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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
2
|
+
"name": "DocumentReader",
|
|
3
|
+
"integrations": {
|
|
4
|
+
"capacitor": {}
|
|
5
|
+
},
|
|
6
|
+
"type": "react-vite"
|
|
7
|
+
}
|
|
@@ -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
|
-
"
|
|
5
|
+
"idiom" : "universal",
|
|
6
|
+
"platform" : "ios",
|
|
7
|
+
"size" : "1024x1024"
|
|
110
8
|
}
|
|
111
9
|
],
|
|
112
10
|
"info" : {
|
|
113
|
-
"
|
|
114
|
-
"
|
|
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
|
|
20
|
+
<string>$(MARKETING_VERSION)</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<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
|
|
33
|
+
<string></string>
|
|
34
34
|
<key>NSPhotoLibraryUsageDescription</key>
|
|
35
|
-
<string
|
|
35
|
+
<string></string>
|
|
36
36
|
<key>UILaunchStoryboardName</key>
|
|
37
37
|
<string>LaunchScreen</string>
|
|
38
38
|
<key>UIMainStoryboardFile</key>
|