@idpass/smartscanner-capacitor 0.7.2 → 0.7.3-beta.1

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 (113) hide show
  1. package/android/.gradle/8.11.1/checksums/checksums.lock +0 -0
  2. package/android/.gradle/8.11.1/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/8.11.1/checksums/sha1-checksums.bin +0 -0
  4. package/android/.gradle/{8.0.2/checksums/md5-checksums.bin → 8.11.1/executionHistory/executionHistory.bin} +0 -0
  5. package/android/.gradle/8.11.1/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/8.11.1/fileHashes/fileHashes.bin +0 -0
  7. package/android/.gradle/8.11.1/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/8.5/checksums/checksums.lock +0 -0
  9. package/android/.gradle/8.5/checksums/md5-checksums.bin +0 -0
  10. package/android/.gradle/8.5/checksums/sha1-checksums.bin +0 -0
  11. package/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  12. package/android/.gradle/8.5/fileChanges/last-build.bin +0 -0
  13. package/android/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  14. package/android/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  15. package/android/.gradle/8.5/gc.properties +0 -0
  16. package/android/.gradle/8.7/checksums/checksums.lock +0 -0
  17. package/android/.gradle/8.7/checksums/md5-checksums.bin +0 -0
  18. package/android/.gradle/8.7/checksums/sha1-checksums.bin +0 -0
  19. package/android/.gradle/8.7/dependencies-accessors/gc.properties +0 -0
  20. package/android/.gradle/8.7/executionHistory/executionHistory.bin +0 -0
  21. package/android/.gradle/8.7/executionHistory/executionHistory.lock +0 -0
  22. package/android/.gradle/8.7/fileChanges/last-build.bin +0 -0
  23. package/android/.gradle/8.7/fileHashes/fileHashes.bin +0 -0
  24. package/android/.gradle/8.7/fileHashes/fileHashes.lock +0 -0
  25. package/android/.gradle/8.7/fileHashes/resourceHashesCache.bin +0 -0
  26. package/android/.gradle/8.7/gc.properties +0 -0
  27. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  28. package/android/.gradle/{8.0.2/checksums/sha1-checksums.bin → 8.9/checksums/md5-checksums.bin} +0 -0
  29. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  30. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  31. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  32. package/android/.gradle/8.9/fileHashes/fileHashes.bin +0 -0
  33. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  34. package/android/.gradle/8.9/gc.properties +0 -0
  35. package/android/.gradle/9.0.0/checksums/checksums.lock +0 -0
  36. package/android/.gradle/9.0.0/checksums/md5-checksums.bin +0 -0
  37. package/android/.gradle/9.0.0/checksums/sha1-checksums.bin +0 -0
  38. package/android/.gradle/9.0.0/executionHistory/executionHistory.bin +0 -0
  39. package/android/.gradle/9.0.0/executionHistory/executionHistory.lock +0 -0
  40. package/android/.gradle/9.0.0/fileChanges/last-build.bin +0 -0
  41. package/android/.gradle/9.0.0/fileHashes/fileHashes.bin +0 -0
  42. package/android/.gradle/9.0.0/fileHashes/fileHashes.lock +0 -0
  43. package/android/.gradle/9.0.0/fileHashes/resourceHashesCache.bin +0 -0
  44. package/android/.gradle/9.0.0/gc.properties +0 -0
  45. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  46. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  47. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  48. package/android/.gradle/configuration-cache/0e1f3896-0feb-4dfd-8352-b05037860744/classloaderscopes11020470336808984242.tmp +0 -0
  49. package/android/.gradle/configuration-cache/1b848dd1-882e-47ee-a2f9-35d03b62145c/classloaderscopes14000397481627317418.tmp +0 -0
  50. package/android/.gradle/configuration-cache/3vo67xts5zlq0m5hxccwmf6l7/candidates.bin +1 -0
  51. package/android/.gradle/configuration-cache/4mezcrllf1vcipjvo76jtzvfv/buildfingerprint.bin +0 -0
  52. package/android/.gradle/configuration-cache/4mezcrllf1vcipjvo76jtzvfv/entry.bin +0 -0
  53. package/android/.gradle/configuration-cache/4mezcrllf1vcipjvo76jtzvfv/projectfingerprint.bin +0 -0
  54. package/android/.gradle/configuration-cache/4mezcrllf1vcipjvo76jtzvfv/work.bin +0 -0
  55. package/android/.gradle/configuration-cache/4oqugu5p1ul83rzzxx3svve52/.globals.work.bin +1 -0
  56. package/android/.gradle/configuration-cache/4oqugu5p1ul83rzzxx3svve52/.strings.work.bin +0 -0
  57. package/android/.gradle/configuration-cache/4oqugu5p1ul83rzzxx3svve52/_.work.bin +2 -0
  58. package/android/.gradle/configuration-cache/4oqugu5p1ul83rzzxx3svve52/buildfingerprint.bin +0 -0
  59. package/android/.gradle/configuration-cache/4oqugu5p1ul83rzzxx3svve52/entry.bin +0 -0
  60. package/android/.gradle/configuration-cache/4oqugu5p1ul83rzzxx3svve52/projectfingerprint.bin +0 -0
  61. package/android/.gradle/configuration-cache/4oqugu5p1ul83rzzxx3svve52/work.bin +0 -0
  62. package/android/.gradle/configuration-cache/704v8cpl7edelfyn1blluzwu8/buildfingerprint.bin +0 -0
  63. package/android/.gradle/configuration-cache/704v8cpl7edelfyn1blluzwu8/entry.bin +0 -0
  64. package/android/.gradle/configuration-cache/704v8cpl7edelfyn1blluzwu8/projectfingerprint.bin +0 -0
  65. package/android/.gradle/configuration-cache/704v8cpl7edelfyn1blluzwu8/work.bin +0 -0
  66. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/.globals.work.bin +0 -0
  67. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/.strings.work.bin +0 -0
  68. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/_.work.bin +0 -0
  69. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/_capacitor-android.work.bin +0 -0
  70. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/buildfingerprint.bin +0 -0
  71. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/classloaderscopes.bin +0 -0
  72. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/entry.bin +0 -0
  73. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/projectfingerprint.bin +0 -0
  74. package/android/.gradle/configuration-cache/7b41f0cd-577d-4d4f-bb37-20d51c59a6bc/work.bin +0 -0
  75. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/.globals.work.bin +1 -0
  76. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/.strings.work.bin +0 -0
  77. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/_.work.bin +1 -0
  78. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/_capacitor-android.work.bin +0 -0
  79. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/buildfingerprint.bin +0 -0
  80. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/classloaderscopes.bin +0 -0
  81. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/entry.bin +0 -0
  82. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/projectfingerprint.bin +0 -0
  83. package/android/.gradle/configuration-cache/ae1af441-6ddb-4876-97d7-c4462a480587/work.bin +0 -0
  84. package/android/.gradle/configuration-cache/b3d69bbb-4712-4a04-b5b9-35ff62b8bf52/classloaderscopes2555106055165323200.tmp +0 -0
  85. package/android/.gradle/configuration-cache/configuration-cache.lock +0 -0
  86. package/android/.gradle/configuration-cache/e9dfd272-a232-4d0b-9129-b0736d94cd67/classloaderscopes967833430554981475.tmp +0 -0
  87. package/android/.gradle/configuration-cache/ecyzucjb067qc3h5tfa0pykva/candidates.bin +1 -0
  88. package/android/.gradle/configuration-cache/f9a0af2f-a910-4cf9-9b13-f809db122085/classloaderscopes7448431015666412619.tmp +0 -0
  89. package/android/.gradle/configuration-cache/gc.properties +0 -0
  90. package/android/.gradle/file-system.probe +0 -0
  91. package/android/.kotlin/sessions/kotlin-compiler-16156708795264700463.salive +0 -0
  92. package/android/.npmignore +1 -0
  93. package/android/build.gradle +28 -31
  94. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  95. package/android/gradle/wrapper/gradle-wrapper.properties +7 -6
  96. package/android/gradle.properties +7 -4
  97. package/android/gradlew +252 -188
  98. package/android/gradlew.bat +27 -33
  99. package/android/src/main/AndroidManifest.xml +1 -1
  100. package/dist/esm/web.d.ts +0 -1
  101. package/dist/esm/web.js +0 -1
  102. package/dist/esm/web.js.map +1 -1
  103. package/dist/plugin.cjs.js.map +1 -1
  104. package/dist/plugin.js.map +1 -1
  105. package/ios/.npmignore +4 -0
  106. package/ios/Plugin/Plugin.swift +1 -1
  107. package/package.json +6 -6
  108. package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
  109. package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  110. package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
  111. /package/android/.gradle/{8.0.2 → 8.11.1}/fileChanges/last-build.bin +0 -0
  112. /package/android/.gradle/{8.0.2/dependencies-accessors → 8.11.1}/gc.properties +0 -0
  113. /package/android/.gradle/{8.0.2 → 8.5/dependencies-accessors}/gc.properties +0 -0
package/android/gradlew CHANGED
@@ -1,188 +1,252 @@
1
- #!/usr/bin/env sh
2
-
3
- #
4
- # Copyright 2015 the original author or authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- ##
21
- ## Gradle start up script for UN*X
22
- ##
23
- ##############################################################################
24
-
25
- # Attempt to set APP_HOME
26
- # Resolve links: $0 may be a link
27
- PRG="$0"
28
- # Need this for relative symlinks.
29
- while [ -h "$PRG" ] ; do
30
- ls=`ls -ld "$PRG"`
31
- link=`expr "$ls" : '.*-> \(.*\)$'`
32
- if expr "$link" : '/.*' > /dev/null; then
33
- PRG="$link"
34
- else
35
- PRG=`dirname "$PRG"`"/$link"
36
- fi
37
- done
38
- SAVED="`pwd`"
39
- cd "`dirname \"$PRG\"`/" >/dev/null
40
- APP_HOME="`pwd -P`"
41
- cd "$SAVED" >/dev/null
42
-
43
- APP_NAME="Gradle"
44
- APP_BASE_NAME=`basename "$0"`
45
-
46
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
-
49
- # Use the maximum available, or set MAX_FD != -1 to use that value.
50
- MAX_FD="maximum"
51
-
52
- warn () {
53
- echo "$*"
54
- }
55
-
56
- die () {
57
- echo
58
- echo "$*"
59
- echo
60
- exit 1
61
- }
62
-
63
- # OS specific support (must be 'true' or 'false').
64
- cygwin=false
65
- msys=false
66
- darwin=false
67
- nonstop=false
68
- case "`uname`" in
69
- CYGWIN* )
70
- cygwin=true
71
- ;;
72
- Darwin* )
73
- darwin=true
74
- ;;
75
- MINGW* )
76
- msys=true
77
- ;;
78
- NONSTOP* )
79
- nonstop=true
80
- ;;
81
- esac
82
-
83
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
-
85
- # Determine the Java command to use to start the JVM.
86
- if [ -n "$JAVA_HOME" ] ; then
87
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
88
- # IBM's JDK on AIX uses strange locations for the executables
89
- JAVACMD="$JAVA_HOME/jre/sh/java"
90
- else
91
- JAVACMD="$JAVA_HOME/bin/java"
92
- fi
93
- if [ ! -x "$JAVACMD" ] ; then
94
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
95
-
96
- Please set the JAVA_HOME variable in your environment to match the
97
- location of your Java installation."
98
- fi
99
- else
100
- JAVACMD="java"
101
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
102
-
103
- Please set the JAVA_HOME variable in your environment to match the
104
- location of your Java installation."
105
- fi
106
-
107
- # Increase the maximum file descriptors if we can.
108
- if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
109
- MAX_FD_LIMIT=`ulimit -H -n`
110
- if [ $? -eq 0 ] ; then
111
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
112
- MAX_FD="$MAX_FD_LIMIT"
113
- fi
114
- ulimit -n $MAX_FD
115
- if [ $? -ne 0 ] ; then
116
- warn "Could not set maximum file descriptor limit: $MAX_FD"
117
- fi
118
- else
119
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
120
- fi
121
- fi
122
-
123
- # For Darwin, add options to specify how the application appears in the dock
124
- if $darwin; then
125
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126
- fi
127
-
128
- # For Cygwin or MSYS, switch paths to Windows format before running java
129
- if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
132
- JAVACMD=`cygpath --unix "$JAVACMD"`
133
-
134
- # We build the pattern for arguments to be converted via cygpath
135
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
136
- SEP=""
137
- for dir in $ROOTDIRSRAW ; do
138
- ROOTDIRS="$ROOTDIRS$SEP$dir"
139
- SEP="|"
140
- done
141
- OURCYGPATTERN="(^($ROOTDIRS))"
142
- # Add a user-defined pattern to the cygpath arguments
143
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
144
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
145
- fi
146
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
147
- i=0
148
- for arg in "$@" ; do
149
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
150
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
151
-
152
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
153
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
154
- else
155
- eval `echo args$i`="\"$arg\""
156
- fi
157
- i=$((i+1))
158
- done
159
- case $i in
160
- (0) set -- ;;
161
- (1) set -- "$args0" ;;
162
- (2) set -- "$args0" "$args1" ;;
163
- (3) set -- "$args0" "$args1" "$args2" ;;
164
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170
- esac
171
- fi
172
-
173
- # Escape application args
174
- save () {
175
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176
- echo " "
177
- }
178
- APP_ARGS=$(save "$@")
179
-
180
- # Collect all arguments for the java command, following the shell quoting and substitution rules
181
- eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182
-
183
- # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
184
- if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
185
- cd "$(dirname "$0")"
186
- fi
187
-
188
- exec "$JAVACMD" "$@"
1
+ #!/bin/sh
2
+
3
+ #
4
+ # Copyright © 2015-2021 the original authors.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ # SPDX-License-Identifier: Apache-2.0
19
+ #
20
+
21
+ ##############################################################################
22
+ #
23
+ # Gradle start up script for POSIX generated by Gradle.
24
+ #
25
+ # Important for running:
26
+ #
27
+ # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
28
+ # noncompliant, but you have some other compliant shell such as ksh or
29
+ # bash, then to run this script, type that shell name before the whole
30
+ # command line, like:
31
+ #
32
+ # ksh Gradle
33
+ #
34
+ # Busybox and similar reduced shells will NOT work, because this script
35
+ # requires all of these POSIX shell features:
36
+ # * functions;
37
+ # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
38
+ # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
39
+ # * compound commands having a testable exit status, especially «case»;
40
+ # * various built-in commands including «command», «set», and «ulimit».
41
+ #
42
+ # Important for patching:
43
+ #
44
+ # (2) This script targets any POSIX shell, so it avoids extensions provided
45
+ # by Bash, Ksh, etc; in particular arrays are avoided.
46
+ #
47
+ # The "traditional" practice of packing multiple parameters into a
48
+ # space-separated string is a well documented source of bugs and security
49
+ # problems, so this is (mostly) avoided, by progressively accumulating
50
+ # options in "$@", and eventually passing that to Java.
51
+ #
52
+ # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
53
+ # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
54
+ # see the in-line comments for details.
55
+ #
56
+ # There are tweaks for specific operating systems such as AIX, CygWin,
57
+ # Darwin, MinGW, and NonStop.
58
+ #
59
+ # (3) This script is generated from the Groovy template
60
+ # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
61
+ # within the Gradle project.
62
+ #
63
+ # You can find Gradle at https://github.com/gradle/gradle/.
64
+ #
65
+ ##############################################################################
66
+
67
+ # Attempt to set APP_HOME
68
+
69
+ # Resolve links: $0 may be a link
70
+ app_path=$0
71
+
72
+ # Need this for daisy-chained symlinks.
73
+ while
74
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
75
+ [ -h "$app_path" ]
76
+ do
77
+ ls=$( ls -ld "$app_path" )
78
+ link=${ls#*' -> '}
79
+ case $link in #(
80
+ /*) app_path=$link ;; #(
81
+ *) app_path=$APP_HOME$link ;;
82
+ esac
83
+ done
84
+
85
+ # This is normally unused
86
+ # shellcheck disable=SC2034
87
+ APP_BASE_NAME=${0##*/}
88
+ # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89
+ APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90
+ ' "$PWD" ) || exit
91
+
92
+ # Use the maximum available, or set MAX_FD != -1 to use that value.
93
+ MAX_FD=maximum
94
+
95
+ warn () {
96
+ echo "$*"
97
+ } >&2
98
+
99
+ die () {
100
+ echo
101
+ echo "$*"
102
+ echo
103
+ exit 1
104
+ } >&2
105
+
106
+ # OS specific support (must be 'true' or 'false').
107
+ cygwin=false
108
+ msys=false
109
+ darwin=false
110
+ nonstop=false
111
+ case "$( uname )" in #(
112
+ CYGWIN* ) cygwin=true ;; #(
113
+ Darwin* ) darwin=true ;; #(
114
+ MSYS* | MINGW* ) msys=true ;; #(
115
+ NONSTOP* ) nonstop=true ;;
116
+ esac
117
+
118
+ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
119
+
120
+
121
+ # Determine the Java command to use to start the JVM.
122
+ if [ -n "$JAVA_HOME" ] ; then
123
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
124
+ # IBM's JDK on AIX uses strange locations for the executables
125
+ JAVACMD=$JAVA_HOME/jre/sh/java
126
+ else
127
+ JAVACMD=$JAVA_HOME/bin/java
128
+ fi
129
+ if [ ! -x "$JAVACMD" ] ; then
130
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
131
+
132
+ Please set the JAVA_HOME variable in your environment to match the
133
+ location of your Java installation."
134
+ fi
135
+ else
136
+ JAVACMD=java
137
+ if ! command -v java >/dev/null 2>&1
138
+ then
139
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
140
+
141
+ Please set the JAVA_HOME variable in your environment to match the
142
+ location of your Java installation."
143
+ fi
144
+ fi
145
+
146
+ # Increase the maximum file descriptors if we can.
147
+ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
148
+ case $MAX_FD in #(
149
+ max*)
150
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
151
+ # shellcheck disable=SC2039,SC3045
152
+ MAX_FD=$( ulimit -H -n ) ||
153
+ warn "Could not query maximum file descriptor limit"
154
+ esac
155
+ case $MAX_FD in #(
156
+ '' | soft) :;; #(
157
+ *)
158
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
159
+ # shellcheck disable=SC2039,SC3045
160
+ ulimit -n "$MAX_FD" ||
161
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
162
+ esac
163
+ fi
164
+
165
+ # Collect all arguments for the java command, stacking in reverse order:
166
+ # * args from the command line
167
+ # * the main class name
168
+ # * -classpath
169
+ # * -D...appname settings
170
+ # * --module-path (only if needed)
171
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
172
+
173
+ # For Cygwin or MSYS, switch paths to Windows format before running java
174
+ if "$cygwin" || "$msys" ; then
175
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
176
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
177
+
178
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
179
+
180
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
181
+ for arg do
182
+ if
183
+ case $arg in #(
184
+ -*) false ;; # don't mess with options #(
185
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
186
+ [ -e "$t" ] ;; #(
187
+ *) false ;;
188
+ esac
189
+ then
190
+ arg=$( cygpath --path --ignore --mixed "$arg" )
191
+ fi
192
+ # Roll the args list around exactly as many times as the number of
193
+ # args, so each arg winds up back in the position where it started, but
194
+ # possibly modified.
195
+ #
196
+ # NB: a `for` loop captures its iteration list before it begins, so
197
+ # changing the positional parameters here affects neither the number of
198
+ # iterations, nor the values presented in `arg`.
199
+ shift # remove old arg
200
+ set -- "$@" "$arg" # push replacement arg
201
+ done
202
+ fi
203
+
204
+
205
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
206
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207
+
208
+ # Collect all arguments for the java command:
209
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210
+ # and any embedded shellness will be escaped.
211
+ # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212
+ # treated as '${Hostname}' itself on the command line.
213
+
214
+ set -- \
215
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
216
+ -classpath "$CLASSPATH" \
217
+ org.gradle.wrapper.GradleWrapperMain \
218
+ "$@"
219
+
220
+ # Stop when "xargs" is not available.
221
+ if ! command -v xargs >/dev/null 2>&1
222
+ then
223
+ die "xargs is not available"
224
+ fi
225
+
226
+ # Use "xargs" to parse quoted args.
227
+ #
228
+ # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
229
+ #
230
+ # In Bash we could simply go:
231
+ #
232
+ # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
233
+ # set -- "${ARGS[@]}" "$@"
234
+ #
235
+ # but POSIX shell has neither arrays nor command substitution, so instead we
236
+ # post-process each arg (as a line of input to sed) to backslash-escape any
237
+ # character that might be a shell metacharacter, then use eval to reverse
238
+ # that process (while maintaining the separation between arguments), and wrap
239
+ # the whole thing up as a single "set" statement.
240
+ #
241
+ # This will of course break if any of these variables contains a newline or
242
+ # an unmatched quote.
243
+ #
244
+
245
+ eval "set -- $(
246
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
247
+ xargs -n1 |
248
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
249
+ tr '\n' ' '
250
+ )" '"$@"'
251
+
252
+ exec "$JAVACMD" "$@"
@@ -13,8 +13,10 @@
13
13
  @rem See the License for the specific language governing permissions and
14
14
  @rem limitations under the License.
15
15
  @rem
16
+ @rem SPDX-License-Identifier: Apache-2.0
17
+ @rem
16
18
 
17
- @if "%DEBUG%" == "" @echo off
19
+ @if "%DEBUG%"=="" @echo off
18
20
  @rem ##########################################################################
19
21
  @rem
20
22
  @rem Gradle startup script for Windows
@@ -25,10 +27,14 @@
25
27
  if "%OS%"=="Windows_NT" setlocal
26
28
 
27
29
  set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
30
+ if "%DIRNAME%"=="" set DIRNAME=.
31
+ @rem This is normally unused
29
32
  set APP_BASE_NAME=%~n0
30
33
  set APP_HOME=%DIRNAME%
31
34
 
35
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
36
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
37
+
32
38
  @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
33
39
  set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
34
40
 
@@ -37,13 +43,13 @@ if defined JAVA_HOME goto findJavaFromJavaHome
37
43
 
38
44
  set JAVA_EXE=java.exe
39
45
  %JAVA_EXE% -version >NUL 2>&1
40
- if "%ERRORLEVEL%" == "0" goto init
46
+ if %ERRORLEVEL% equ 0 goto execute
41
47
 
42
- echo.
43
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
44
- echo.
45
- echo Please set the JAVA_HOME variable in your environment to match the
46
- echo location of your Java installation.
48
+ echo. 1>&2
49
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50
+ echo. 1>&2
51
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52
+ echo location of your Java installation. 1>&2
47
53
 
48
54
  goto fail
49
55
 
@@ -51,48 +57,36 @@ goto fail
51
57
  set JAVA_HOME=%JAVA_HOME:"=%
52
58
  set JAVA_EXE=%JAVA_HOME%/bin/java.exe
53
59
 
54
- if exist "%JAVA_EXE%" goto init
60
+ if exist "%JAVA_EXE%" goto execute
55
61
 
56
- echo.
57
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
58
- echo.
59
- echo Please set the JAVA_HOME variable in your environment to match the
60
- echo location of your Java installation.
62
+ echo. 1>&2
63
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64
+ echo. 1>&2
65
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66
+ echo location of your Java installation. 1>&2
61
67
 
62
68
  goto fail
63
69
 
64
- :init
65
- @rem Get command-line arguments, handling Windows variants
66
-
67
- if not "%OS%" == "Windows_NT" goto win9xME_args
68
-
69
- :win9xME_args
70
- @rem Slurp the command line arguments.
71
- set CMD_LINE_ARGS=
72
- set _SKIP=2
73
-
74
- :win9xME_args_slurp
75
- if "x%~1" == "x" goto execute
76
-
77
- set CMD_LINE_ARGS=%*
78
-
79
70
  :execute
80
71
  @rem Setup the command line
81
72
 
82
73
  set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
83
74
 
75
+
84
76
  @rem Execute Gradle
85
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
77
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
86
78
 
87
79
  :end
88
80
  @rem End local scope for the variables with windows NT shell
89
- if "%ERRORLEVEL%"=="0" goto mainEnd
81
+ if %ERRORLEVEL% equ 0 goto mainEnd
90
82
 
91
83
  :fail
92
84
  rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
93
85
  rem the _cmd.exe /c_ return code!
94
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
95
- exit /b 1
86
+ set EXIT_CODE=%ERRORLEVEL%
87
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
88
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
89
+ exit /b %EXIT_CODE%
96
90
 
97
91
  :mainEnd
98
92
  if "%OS%"=="Windows_NT" endlocal
@@ -1,2 +1,2 @@
1
- <manifest package="org.idpass.smartscanner.capacitor.smartscannercapacitorplugin">
1
+ <manifest>
2
2
  </manifest>
package/dist/esm/web.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { WebPlugin } from '@capacitor/core';
2
2
  import { SmartScannerPlugin } from './definitions';
3
- export * from './web';
4
3
  export declare class SmartScannerPluginWeb extends WebPlugin implements SmartScannerPlugin {
5
4
  constructor();
6
5
  echo(options: {
package/dist/esm/web.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { WebPlugin } from '@capacitor/core';
2
- export * from './web';
3
2
  export class SmartScannerPluginWeb extends WebPlugin {
4
3
  constructor() {
5
4
  super();
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,cAAc,OAAO,CAAC;AAEtB,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAA0B;QAC1C,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,OAAY;QACtC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;CACF"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAA0B;QAC1C,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,OAAY;QACtC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport * from './web';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACzE,CAAC;;ACDM,MAAM,qBAAqB,SAASC,cAAS,CAAC;AACrD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE,CAAC;AAChB,KAAK;AACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL,IAAI,MAAM,cAAc,CAAC,OAAO,EAAE;AAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;AAC/C,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACzE,CAAC;;ACFM,MAAM,qBAAqB,SAASC,cAAS,CAAC;AACrD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE,CAAC;AAChB,KAAK;AACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL,IAAI,MAAM,cAAc,CAAC,OAAO,EAAE;AAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;AAC/C,KAAK;AACL;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport * from './web';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC;IACzE,CAAC;;ICDM,MAAM,qBAAqB,SAASC,cAAS,CAAC;IACrD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE,CAAC;IAChB,KAAK;IACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,OAAO,OAAO,CAAC;IACvB,KAAK;IACL,IAAI,MAAM,cAAc,CAAC,OAAO,EAAE;IAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC/C,KAAK;IACL;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst SmartScanner = registerPlugin('SmartScanner', {\n web: () => import(\"./web\").then((m) => new m.SmartScannerPluginWeb())\n});\nexport * from \"./definitions\";\nexport { SmartScanner };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SmartScannerPluginWeb extends WebPlugin {\n constructor() {\n super();\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async executeScanner(options) {\n console.log('executeScanner', options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC;IACzE,CAAC;;ICFM,MAAM,qBAAqB,SAASC,cAAS,CAAC;IACrD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE,CAAC;IAChB,KAAK;IACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,OAAO,OAAO,CAAC;IACvB,KAAK;IACL,IAAI,MAAM,cAAc,CAAC,OAAO,EAAE;IAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC/C,KAAK;IACL;;;;;;;;;;;;;;;;;"}
package/ios/.npmignore ADDED
@@ -0,0 +1,4 @@
1
+ Pods/
2
+ Podfile.lock
3
+ contents.xcworkspacedata
4
+ xcuserdata/
@@ -10,7 +10,7 @@ public class SmartScannerPlugin: CAPPlugin {
10
10
 
11
11
  @objc func echo(_ call: CAPPluginCall) {
12
12
  let value = call.getString("value") ?? ""
13
- call.success([
13
+ call.resolve([
14
14
  "value": value
15
15
  ])
16
16
  }