@regulaforensics/ionic-native-document-reader 6.6.0 → 6.7.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 (122) hide show
  1. package/example/package.json +3 -3
  2. package/example/src/app/home/home.page.html +2 -2
  3. package/example/src/app/home/home.page.scss +8 -0
  4. package/example/src/app/home/home.page.ts +19 -10
  5. package/index.d.ts +92 -10
  6. package/index.js +181 -15
  7. package/ngx/index.d.ts +92 -10
  8. package/ngx/index.js +187 -19
  9. package/package.json +1 -1
  10. package/reactExample/README.md +24 -0
  11. package/reactExample/android/app/build/.npmkeep +0 -0
  12. package/reactExample/android/app/build.gradle +51 -0
  13. package/reactExample/android/app/proguard-rules.pro +21 -0
  14. package/reactExample/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
  15. package/reactExample/android/app/src/main/AndroidManifest.xml +45 -0
  16. package/reactExample/android/app/src/main/java/com/regula/documentreader/MainActivity.java +5 -0
  17. package/reactExample/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
  18. package/reactExample/android/app/src/main/res/drawable/splash.png +0 -0
  19. package/reactExample/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
  20. package/reactExample/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
  21. package/reactExample/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
  22. package/reactExample/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
  23. package/reactExample/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
  24. package/reactExample/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
  25. package/reactExample/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
  26. package/reactExample/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
  27. package/reactExample/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
  28. package/reactExample/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
  29. package/reactExample/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
  30. package/reactExample/android/app/src/main/res/layout/activity_main.xml +12 -0
  31. package/reactExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  32. package/reactExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  33. package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  34. package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  35. package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  36. package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  37. package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  38. package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  39. package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  40. package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  41. package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  42. package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  43. package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  44. package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  45. package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  46. package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  47. package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  48. package/reactExample/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
  49. package/reactExample/android/app/src/main/res/values/strings.xml +7 -0
  50. package/reactExample/android/app/src/main/res/values/styles.xml +22 -0
  51. package/reactExample/android/app/src/main/res/xml/file_paths.xml +5 -0
  52. package/reactExample/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
  53. package/reactExample/android/build.gradle +26 -0
  54. package/reactExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  55. package/reactExample/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  56. package/reactExample/android/gradle.properties +24 -0
  57. package/reactExample/android/gradlew +185 -0
  58. package/reactExample/android/gradlew.bat +89 -0
  59. package/reactExample/android/settings.gradle +5 -0
  60. package/reactExample/android/variables.gradle +14 -0
  61. package/reactExample/capacitor.config.ts +10 -0
  62. package/reactExample/ionic.config.json +7 -0
  63. package/reactExample/ios/App/App/App.entitlements +11 -0
  64. package/reactExample/ios/App/App/AppDelegate.swift +60 -0
  65. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png +0 -0
  66. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png +0 -0
  67. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png +0 -0
  68. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png +0 -0
  69. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png +0 -0
  70. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png +0 -0
  71. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png +0 -0
  72. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png +0 -0
  73. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png +0 -0
  74. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png +0 -0
  75. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png +0 -0
  76. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png +0 -0
  77. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
  78. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png +0 -0
  79. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png +0 -0
  80. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png +0 -0
  81. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png +0 -0
  82. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png +0 -0
  83. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +116 -0
  84. package/reactExample/ios/App/App/Assets.xcassets/Contents.json +6 -0
  85. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
  86. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
  87. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
  88. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
  89. package/reactExample/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
  90. package/reactExample/ios/App/App/Base.lproj/Main.storyboard +19 -0
  91. package/reactExample/ios/App/App/Info.plist +70 -0
  92. package/reactExample/ios/App/App/capacitor.config.json +6 -0
  93. package/reactExample/ios/App/App/config.xml +19 -0
  94. package/reactExample/ios/App/App.xcodeproj/project.pbxproj +422 -0
  95. package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  96. package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  97. package/reactExample/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
  98. package/reactExample/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  99. package/reactExample/ios/App/Podfile +23 -0
  100. package/reactExample/package.json +84 -0
  101. package/reactExample/public/assets/icon/favicon.png +0 -0
  102. package/reactExample/public/assets/icon/icon.png +0 -0
  103. package/reactExample/public/assets/img/id.png +0 -0
  104. package/reactExample/public/assets/img/portrait.png +0 -0
  105. package/reactExample/public/assets/shapes.svg +1 -0
  106. package/reactExample/public/index.html +114 -0
  107. package/reactExample/public/manifest.json +21 -0
  108. package/reactExample/src/App.test.tsx +8 -0
  109. package/reactExample/src/App.tsx +42 -0
  110. package/reactExample/src/assets/img/id.png +0 -0
  111. package/reactExample/src/assets/img/portrait.png +0 -0
  112. package/reactExample/src/index.tsx +22 -0
  113. package/reactExample/src/pages/Home.tsx +340 -0
  114. package/reactExample/src/react-app-env.d.ts +1 -0
  115. package/reactExample/src/reportWebVitals.ts +15 -0
  116. package/reactExample/src/service-worker.ts +80 -0
  117. package/reactExample/src/serviceWorkerRegistration.ts +142 -0
  118. package/reactExample/src/setupTests.ts +14 -0
  119. package/reactExample/src/theme/variables.css +236 -0
  120. package/reactExample/tsconfig.json +27 -0
  121. package/index.ts +0 -7366
  122. package/ngx/index.metadata.json +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/ionic-native-document-reader",
3
- "version": "6.6.0",
3
+ "version": "6.7.0",
4
4
  "description": "Ionic Native wrapper for cordova documentreader",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -0,0 +1,24 @@
1
+ # How to build demo application
2
+ 1. Visit [licensing.regulaforensics.com](https://licensing.regulaforensics.com) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
3
+ 2. Download or clone this repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Ionic-Plugin.git`.
4
+ 3. Run the following commands in Terminal:
5
+ ```bash
6
+ $ cd reactExample
7
+ $ npm install
8
+ ```
9
+ 4. Copy the `regula.license` file to the `public/assets` folder.
10
+
11
+ 5. Android:
12
+ * Run `npx jetify`, then `ionic cap run android` - this is just one way to run the app. You can also run it directly from within Android Studio.
13
+
14
+ 6. iOS:
15
+ * Run `ionic cap run ios` - this is just one way to run the app. You can also run it directly from within Xcode.
16
+
17
+
18
+ # Troubleshooting license issues
19
+ If you have issues with license verification when running the application, please verify that next is true:
20
+ 1. The OS, which you use, is specified in the license (e.g., Android and/or iOS).
21
+ 3. The license is valid (not expired).
22
+ 4. The date and time on the device, where you run the application, are valid.
23
+ 5. You use the latest release version of the Document Reader SDK.
24
+ 6. You placed the `license` into the correct folder as described [here](#how-to-build-demo-application).
File without changes
@@ -0,0 +1,51 @@
1
+ apply plugin: 'com.android.application'
2
+
3
+ android {
4
+ compileSdkVersion rootProject.ext.compileSdkVersion
5
+ defaultConfig {
6
+ applicationId "com.regula.documentreader"
7
+ minSdkVersion rootProject.ext.minSdkVersion
8
+ targetSdkVersion rootProject.ext.targetSdkVersion
9
+ versionCode 1
10
+ versionName "1.0"
11
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
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 project(':capacitor-android')
36
+ testImplementation "junit:junit:$junitVersion"
37
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
38
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
39
+ implementation project(':capacitor-cordova-android-plugins')
40
+ }
41
+
42
+ apply from: 'capacitor.build.gradle'
43
+
44
+ try {
45
+ def servicesJSON = file('google-services.json')
46
+ if (servicesJSON.text) {
47
+ apply plugin: 'com.google.gms.google-services'
48
+ }
49
+ } catch(Exception e) {
50
+ logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
51
+ }
@@ -0,0 +1,21 @@
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
@@ -0,0 +1,26 @@
1
+ package com.getcapacitor.myapp;
2
+
3
+ import static org.junit.Assert.*;
4
+
5
+ import android.content.Context;
6
+ import androidx.test.ext.junit.runners.AndroidJUnit4;
7
+ import androidx.test.platform.app.InstrumentationRegistry;
8
+ import org.junit.Test;
9
+ import org.junit.runner.RunWith;
10
+
11
+ /**
12
+ * Instrumented test, which will execute on an Android device.
13
+ *
14
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
15
+ */
16
+ @RunWith(AndroidJUnit4.class)
17
+ public class ExampleInstrumentedTest {
18
+
19
+ @Test
20
+ public void useAppContext() throws Exception {
21
+ // Context of the app under test.
22
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
23
+
24
+ assertEquals("com.getcapacitor.app", appContext.getPackageName());
25
+ }
26
+ }
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.regula.documentreader">
4
+
5
+ <application
6
+ android:allowBackup="true"
7
+ android:icon="@mipmap/ic_launcher"
8
+ android:label="@string/app_name"
9
+ android:roundIcon="@mipmap/ic_launcher_round"
10
+ android:supportsRtl="true"
11
+ android:theme="@style/AppTheme">
12
+
13
+ <activity
14
+ android:exported="true"
15
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
16
+ android:name="com.regula.documentreader.MainActivity"
17
+ android:label="@string/title_activity_main"
18
+ android:theme="@style/AppTheme.NoActionBarLaunch"
19
+ android:launchMode="singleTask">
20
+
21
+ <intent-filter>
22
+ <action android:name="android.intent.action.MAIN" />
23
+ <category android:name="android.intent.category.LAUNCHER" />
24
+ </intent-filter>
25
+
26
+ </activity>
27
+
28
+ <provider
29
+ android:name="androidx.core.content.FileProvider"
30
+ android:authorities="${applicationId}.fileprovider"
31
+ android:exported="false"
32
+ android:grantUriPermissions="true">
33
+ <meta-data
34
+ android:name="android.support.FILE_PROVIDER_PATHS"
35
+ android:resource="@xml/file_paths"></meta-data>
36
+ </provider>
37
+ </application>
38
+
39
+ <!-- Permissions -->
40
+
41
+ <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
42
+ <uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
43
+ <uses-permission android:name="android.permission.INTERNET" />
44
+ <uses-permission android:name="android.permission.NFC" />
45
+ </manifest>
@@ -0,0 +1,5 @@
1
+ package com.regula.documentreader;
2
+
3
+ import com.getcapacitor.BridgeActivity;
4
+
5
+ public class MainActivity extends BridgeActivity {}
@@ -0,0 +1,170 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <vector xmlns:android="http://schemas.android.com/apk/res/android"
3
+ android:width="108dp"
4
+ android:height="108dp"
5
+ android:viewportHeight="108"
6
+ android:viewportWidth="108">
7
+ <path
8
+ android:fillColor="#26A69A"
9
+ android:pathData="M0,0h108v108h-108z" />
10
+ <path
11
+ android:fillColor="#00000000"
12
+ android:pathData="M9,0L9,108"
13
+ android:strokeColor="#33FFFFFF"
14
+ android:strokeWidth="0.8" />
15
+ <path
16
+ android:fillColor="#00000000"
17
+ android:pathData="M19,0L19,108"
18
+ android:strokeColor="#33FFFFFF"
19
+ android:strokeWidth="0.8" />
20
+ <path
21
+ android:fillColor="#00000000"
22
+ android:pathData="M29,0L29,108"
23
+ android:strokeColor="#33FFFFFF"
24
+ android:strokeWidth="0.8" />
25
+ <path
26
+ android:fillColor="#00000000"
27
+ android:pathData="M39,0L39,108"
28
+ android:strokeColor="#33FFFFFF"
29
+ android:strokeWidth="0.8" />
30
+ <path
31
+ android:fillColor="#00000000"
32
+ android:pathData="M49,0L49,108"
33
+ android:strokeColor="#33FFFFFF"
34
+ android:strokeWidth="0.8" />
35
+ <path
36
+ android:fillColor="#00000000"
37
+ android:pathData="M59,0L59,108"
38
+ android:strokeColor="#33FFFFFF"
39
+ android:strokeWidth="0.8" />
40
+ <path
41
+ android:fillColor="#00000000"
42
+ android:pathData="M69,0L69,108"
43
+ android:strokeColor="#33FFFFFF"
44
+ android:strokeWidth="0.8" />
45
+ <path
46
+ android:fillColor="#00000000"
47
+ android:pathData="M79,0L79,108"
48
+ android:strokeColor="#33FFFFFF"
49
+ android:strokeWidth="0.8" />
50
+ <path
51
+ android:fillColor="#00000000"
52
+ android:pathData="M89,0L89,108"
53
+ android:strokeColor="#33FFFFFF"
54
+ android:strokeWidth="0.8" />
55
+ <path
56
+ android:fillColor="#00000000"
57
+ android:pathData="M99,0L99,108"
58
+ android:strokeColor="#33FFFFFF"
59
+ android:strokeWidth="0.8" />
60
+ <path
61
+ android:fillColor="#00000000"
62
+ android:pathData="M0,9L108,9"
63
+ android:strokeColor="#33FFFFFF"
64
+ android:strokeWidth="0.8" />
65
+ <path
66
+ android:fillColor="#00000000"
67
+ android:pathData="M0,19L108,19"
68
+ android:strokeColor="#33FFFFFF"
69
+ android:strokeWidth="0.8" />
70
+ <path
71
+ android:fillColor="#00000000"
72
+ android:pathData="M0,29L108,29"
73
+ android:strokeColor="#33FFFFFF"
74
+ android:strokeWidth="0.8" />
75
+ <path
76
+ android:fillColor="#00000000"
77
+ android:pathData="M0,39L108,39"
78
+ android:strokeColor="#33FFFFFF"
79
+ android:strokeWidth="0.8" />
80
+ <path
81
+ android:fillColor="#00000000"
82
+ android:pathData="M0,49L108,49"
83
+ android:strokeColor="#33FFFFFF"
84
+ android:strokeWidth="0.8" />
85
+ <path
86
+ android:fillColor="#00000000"
87
+ android:pathData="M0,59L108,59"
88
+ android:strokeColor="#33FFFFFF"
89
+ android:strokeWidth="0.8" />
90
+ <path
91
+ android:fillColor="#00000000"
92
+ android:pathData="M0,69L108,69"
93
+ android:strokeColor="#33FFFFFF"
94
+ android:strokeWidth="0.8" />
95
+ <path
96
+ android:fillColor="#00000000"
97
+ android:pathData="M0,79L108,79"
98
+ android:strokeColor="#33FFFFFF"
99
+ android:strokeWidth="0.8" />
100
+ <path
101
+ android:fillColor="#00000000"
102
+ android:pathData="M0,89L108,89"
103
+ android:strokeColor="#33FFFFFF"
104
+ android:strokeWidth="0.8" />
105
+ <path
106
+ android:fillColor="#00000000"
107
+ android:pathData="M0,99L108,99"
108
+ android:strokeColor="#33FFFFFF"
109
+ android:strokeWidth="0.8" />
110
+ <path
111
+ android:fillColor="#00000000"
112
+ android:pathData="M19,29L89,29"
113
+ android:strokeColor="#33FFFFFF"
114
+ android:strokeWidth="0.8" />
115
+ <path
116
+ android:fillColor="#00000000"
117
+ android:pathData="M19,39L89,39"
118
+ android:strokeColor="#33FFFFFF"
119
+ android:strokeWidth="0.8" />
120
+ <path
121
+ android:fillColor="#00000000"
122
+ android:pathData="M19,49L89,49"
123
+ android:strokeColor="#33FFFFFF"
124
+ android:strokeWidth="0.8" />
125
+ <path
126
+ android:fillColor="#00000000"
127
+ android:pathData="M19,59L89,59"
128
+ android:strokeColor="#33FFFFFF"
129
+ android:strokeWidth="0.8" />
130
+ <path
131
+ android:fillColor="#00000000"
132
+ android:pathData="M19,69L89,69"
133
+ android:strokeColor="#33FFFFFF"
134
+ android:strokeWidth="0.8" />
135
+ <path
136
+ android:fillColor="#00000000"
137
+ android:pathData="M19,79L89,79"
138
+ android:strokeColor="#33FFFFFF"
139
+ android:strokeWidth="0.8" />
140
+ <path
141
+ android:fillColor="#00000000"
142
+ android:pathData="M29,19L29,89"
143
+ android:strokeColor="#33FFFFFF"
144
+ android:strokeWidth="0.8" />
145
+ <path
146
+ android:fillColor="#00000000"
147
+ android:pathData="M39,19L39,89"
148
+ android:strokeColor="#33FFFFFF"
149
+ android:strokeWidth="0.8" />
150
+ <path
151
+ android:fillColor="#00000000"
152
+ android:pathData="M49,19L49,89"
153
+ android:strokeColor="#33FFFFFF"
154
+ android:strokeWidth="0.8" />
155
+ <path
156
+ android:fillColor="#00000000"
157
+ android:pathData="M59,19L59,89"
158
+ android:strokeColor="#33FFFFFF"
159
+ android:strokeWidth="0.8" />
160
+ <path
161
+ android:fillColor="#00000000"
162
+ android:pathData="M69,19L69,89"
163
+ android:strokeColor="#33FFFFFF"
164
+ android:strokeWidth="0.8" />
165
+ <path
166
+ android:fillColor="#00000000"
167
+ android:pathData="M79,19L79,89"
168
+ android:strokeColor="#33FFFFFF"
169
+ android:strokeWidth="0.8" />
170
+ </vector>
@@ -0,0 +1,34 @@
1
+ <vector xmlns:android="http://schemas.android.com/apk/res/android"
2
+ xmlns:aapt="http://schemas.android.com/aapt"
3
+ android:width="108dp"
4
+ android:height="108dp"
5
+ android:viewportHeight="108"
6
+ android:viewportWidth="108">
7
+ <path
8
+ android:fillType="evenOdd"
9
+ android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
10
+ android:strokeColor="#00000000"
11
+ android:strokeWidth="1">
12
+ <aapt:attr name="android:fillColor">
13
+ <gradient
14
+ android:endX="78.5885"
15
+ android:endY="90.9159"
16
+ android:startX="48.7653"
17
+ android:startY="61.0927"
18
+ android:type="linear">
19
+ <item
20
+ android:color="#44000000"
21
+ android:offset="0.0" />
22
+ <item
23
+ android:color="#00000000"
24
+ android:offset="1.0" />
25
+ </gradient>
26
+ </aapt:attr>
27
+ </path>
28
+ <path
29
+ android:fillColor="#FFFFFF"
30
+ android:fillType="nonZero"
31
+ android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
32
+ android:strokeColor="#00000000"
33
+ android:strokeWidth="1" />
34
+ </vector>
@@ -0,0 +1,12 @@
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>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@color/ic_launcher_background"/>
4
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+ </adaptive-icon>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@color/ic_launcher_background"/>
4
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+ </adaptive-icon>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <resources>
3
+ <color name="ic_launcher_background">#FFFFFF</color>
4
+ </resources>
@@ -0,0 +1,7 @@
1
+ <?xml version='1.0' encoding='utf-8'?>
2
+ <resources>
3
+ <string name="app_name">DocumentReader</string>
4
+ <string name="title_activity_main">DocumentReader</string>
5
+ <string name="package_name">com.regula.documentreader</string>
6
+ <string name="custom_url_scheme">com.regula.documentreader</string>
7
+ </resources>
@@ -0,0 +1,22 @@
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.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="AppTheme.NoActionBar">
20
+ <item name="android:background">@drawable/splash</item>
21
+ </style>
22
+ </resources>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <paths xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <external-path name="my_images" path="." />
4
+ <cache-path name="my_cache_images" path="." />
5
+ </paths>
@@ -0,0 +1,18 @@
1
+ package com.getcapacitor.myapp;
2
+
3
+ import static org.junit.Assert.*;
4
+
5
+ import org.junit.Test;
6
+
7
+ /**
8
+ * Example local unit test, which will execute on the development machine (host).
9
+ *
10
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
11
+ */
12
+ public class ExampleUnitTest {
13
+
14
+ @Test
15
+ public void addition_isCorrect() throws Exception {
16
+ assertEquals(4, 2 + 2);
17
+ }
18
+ }
@@ -0,0 +1,26 @@
1
+ buildscript {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ jcenter()
6
+ }
7
+ dependencies {
8
+ classpath 'com.android.tools.build:gradle:4.2.1'
9
+ classpath 'com.google.gms:google-services:4.3.5'
10
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10"
11
+ }
12
+ }
13
+
14
+ apply from: "variables.gradle"
15
+
16
+ allprojects {
17
+ repositories {
18
+ google()
19
+ mavenCentral()
20
+ jcenter()
21
+ }
22
+ }
23
+
24
+ task clean(type: Delete) {
25
+ delete rootProject.buildDir
26
+ }
@@ -0,0 +1,5 @@
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip
4
+ zipStoreBase=GRADLE_USER_HOME
5
+ zipStorePath=wrapper/dists
@@ -0,0 +1,24 @@
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
23
+ # Automatically convert third-party libraries to use AndroidX
24
+ android.enableJetifier=true