@functionland/react-native-fula 0.4.0 → 1.0.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 (51) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +133 -35
  3. package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  4. package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
  5. package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
  6. package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  7. package/android/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
  8. package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
  9. package/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  10. package/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
  11. package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  12. package/android/.gradle/7.5.1/fileHashes/resourceHashesCache.bin +0 -0
  13. package/android/.gradle/7.5.1/gc.properties +0 -0
  14. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  15. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  16. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  17. package/android/.gradle/vcs-1/gc.properties +0 -0
  18. package/android/.idea/compiler.xml +5 -5
  19. package/android/.idea/gradle.xml +17 -18
  20. package/android/.idea/jarRepositories.xml +44 -49
  21. package/android/.idea/misc.xml +9 -9
  22. package/android/.idea/vcs.xml +5 -5
  23. package/android/build.gradle +7 -5
  24. package/android/gradle/wrapper/gradle-wrapper.properties +1 -0
  25. package/android/gradlew +375 -240
  26. package/android/local.properties +8 -8
  27. package/android/src/main/AndroidManifest.xml +4 -4
  28. package/android/src/main/java/land/fx/fula/ConfigRef.java +7 -7
  29. package/android/src/main/java/land/fx/fula/Cryptography.java +47 -47
  30. package/android/src/main/java/land/fx/fula/FulaModule.java +291 -33
  31. package/android/src/main/java/land/fx/fula/FulaPackage.java +32 -32
  32. package/android/src/main/java/land/fx/fula/SharedPreferenceHelper.java +65 -65
  33. package/android/src/main/java/land/fx/fula/StaticHelper.java +13 -13
  34. package/android/src/main/java/land/fx/fula/ThreadUtils.java +42 -42
  35. package/ios/FulaModule.h +10 -10
  36. package/ios/FulaModule.m +149 -149
  37. package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
  38. package/lib/commonjs/protocols/fula.js +90 -10
  39. package/lib/commonjs/protocols/fula.js.map +1 -1
  40. package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
  41. package/lib/module/protocols/fula.js +81 -6
  42. package/lib/module/protocols/fula.js.map +1 -1
  43. package/lib/typescript/index.d.ts +1 -1
  44. package/lib/typescript/interfaces/fulaNativeModule.d.ts +28 -17
  45. package/lib/typescript/protocols/fula.d.ts +99 -70
  46. package/package.json +5 -8
  47. package/react-native-fula.podspec +19 -19
  48. package/src/interfaces/fulaNativeModule.ts +19 -6
  49. package/src/protocols/fula.ts +107 -11
  50. package/android/.gradle/7.5.1/executionHistory/executionHistory.bin +0 -0
  51. package/android/.gradle/file-system.probe +0 -0
package/android/gradlew CHANGED
@@ -1,240 +1,375 @@
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
-
19
- ##############################################################################
20
- #
21
- # Gradle start up script for POSIX generated by Gradle.
22
- #
23
- # Important for running:
24
- #
25
- # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
- # noncompliant, but you have some other compliant shell such as ksh or
27
- # bash, then to run this script, type that shell name before the whole
28
- # command line, like:
29
- #
30
- # ksh Gradle
31
- #
32
- # Busybox and similar reduced shells will NOT work, because this script
33
- # requires all of these POSIX shell features:
34
- # * functions;
35
- # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
- # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
- # * compound commands having a testable exit status, especially «case»;
38
- # * various built-in commands including «command», «set», and «ulimit».
39
- #
40
- # Important for patching:
41
- #
42
- # (2) This script targets any POSIX shell, so it avoids extensions provided
43
- # by Bash, Ksh, etc; in particular arrays are avoided.
44
- #
45
- # The "traditional" practice of packing multiple parameters into a
46
- # space-separated string is a well documented source of bugs and security
47
- # problems, so this is (mostly) avoided, by progressively accumulating
48
- # options in "$@", and eventually passing that to Java.
49
- #
50
- # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
- # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
- # see the in-line comments for details.
53
- #
54
- # There are tweaks for specific operating systems such as AIX, CygWin,
55
- # Darwin, MinGW, and NonStop.
56
- #
57
- # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
- # within the Gradle project.
60
- #
61
- # You can find Gradle at https://github.com/gradle/gradle/.
62
- #
63
- ##############################################################################
64
-
65
- # Attempt to set APP_HOME
66
-
67
- # Resolve links: $0 may be a link
68
- app_path=$0
69
-
70
- # Need this for daisy-chained symlinks.
71
- while
72
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
- [ -h "$app_path" ]
74
- do
75
- ls=$( ls -ld "$app_path" )
76
- link=${ls#*' -> '}
77
- case $link in #(
78
- /*) app_path=$link ;; #(
79
- *) app_path=$APP_HOME$link ;;
80
- esac
81
- done
82
-
83
- APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84
-
85
- APP_NAME="Gradle"
86
- APP_BASE_NAME=${0##*/}
87
-
88
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90
-
91
- # Use the maximum available, or set MAX_FD != -1 to use that value.
92
- MAX_FD=maximum
93
-
94
- warn () {
95
- echo "$*"
96
- } >&2
97
-
98
- die () {
99
- echo
100
- echo "$*"
101
- echo
102
- exit 1
103
- } >&2
104
-
105
- # OS specific support (must be 'true' or 'false').
106
- cygwin=false
107
- msys=false
108
- darwin=false
109
- nonstop=false
110
- case "$( uname )" in #(
111
- CYGWIN* ) cygwin=true ;; #(
112
- Darwin* ) darwin=true ;; #(
113
- MSYS* | MINGW* ) msys=true ;; #(
114
- NONSTOP* ) nonstop=true ;;
115
- esac
116
-
117
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118
-
119
-
120
- # Determine the Java command to use to start the JVM.
121
- if [ -n "$JAVA_HOME" ] ; then
122
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123
- # IBM's JDK on AIX uses strange locations for the executables
124
- JAVACMD=$JAVA_HOME/jre/sh/java
125
- else
126
- JAVACMD=$JAVA_HOME/bin/java
127
- fi
128
- if [ ! -x "$JAVACMD" ] ; then
129
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130
-
131
- Please set the JAVA_HOME variable in your environment to match the
132
- location of your Java installation."
133
- fi
134
- else
135
- JAVACMD=java
136
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
-
138
- Please set the JAVA_HOME variable in your environment to match the
139
- location of your Java installation."
140
- fi
141
-
142
- # Increase the maximum file descriptors if we can.
143
- if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144
- case $MAX_FD in #(
145
- max*)
146
- MAX_FD=$( ulimit -H -n ) ||
147
- warn "Could not query maximum file descriptor limit"
148
- esac
149
- case $MAX_FD in #(
150
- '' | soft) :;; #(
151
- *)
152
- ulimit -n "$MAX_FD" ||
153
- warn "Could not set maximum file descriptor limit to $MAX_FD"
154
- esac
155
- fi
156
-
157
- # Collect all arguments for the java command, stacking in reverse order:
158
- # * args from the command line
159
- # * the main class name
160
- # * -classpath
161
- # * -D...appname settings
162
- # * --module-path (only if needed)
163
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
164
-
165
- # For Cygwin or MSYS, switch paths to Windows format before running java
166
- if "$cygwin" || "$msys" ; then
167
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169
-
170
- JAVACMD=$( cygpath --unix "$JAVACMD" )
171
-
172
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
173
- for arg do
174
- if
175
- case $arg in #(
176
- -*) false ;; # don't mess with options #(
177
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
178
- [ -e "$t" ] ;; #(
179
- *) false ;;
180
- esac
181
- then
182
- arg=$( cygpath --path --ignore --mixed "$arg" )
183
- fi
184
- # Roll the args list around exactly as many times as the number of
185
- # args, so each arg winds up back in the position where it started, but
186
- # possibly modified.
187
- #
188
- # NB: a `for` loop captures its iteration list before it begins, so
189
- # changing the positional parameters here affects neither the number of
190
- # iterations, nor the values presented in `arg`.
191
- shift # remove old arg
192
- set -- "$@" "$arg" # push replacement arg
193
- done
194
- fi
195
-
196
- # Collect all arguments for the java command;
197
- # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198
- # shell script including quotes and variable substitutions, so put them in
199
- # double quotes to make sure that they get re-expanded; and
200
- # * put everything else in single quotes, so that it's not re-expanded.
201
-
202
- set -- \
203
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
204
- -classpath "$CLASSPATH" \
205
- org.gradle.wrapper.GradleWrapperMain \
206
- "$@"
207
-
208
- # Stop when "xargs" is not available.
209
- if ! command -v xargs >/dev/null 2>&1
210
- then
211
- die "xargs is not available"
212
- fi
213
-
214
- # Use "xargs" to parse quoted args.
215
- #
216
- # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
217
- #
218
- # In Bash we could simply go:
219
- #
220
- # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
221
- # set -- "${ARGS[@]}" "$@"
222
- #
223
- # but POSIX shell has neither arrays nor command substitution, so instead we
224
- # post-process each arg (as a line of input to sed) to backslash-escape any
225
- # character that might be a shell metacharacter, then use eval to reverse
226
- # that process (while maintaining the separation between arguments), and wrap
227
- # the whole thing up as a single "set" statement.
228
- #
229
- # This will of course break if any of these variables contains a newline or
230
- # an unmatched quote.
231
- #
232
-
233
- eval "set -- $(
234
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
235
- xargs -n1 |
236
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
237
- tr '\n' ' '
238
- )" '"$@"'
239
-
240
- exec "$JAVACMD" "$@"
1
+ #!/bin/sh
2
+ #!/bin/sh
3
+
4
+ #
5
+ # Copyright © 2015-2021 the original authors.
6
+ # Copyright © 2015-2021 the original authors.
7
+ #
8
+ # Licensed under the Apache License, Version 2.0 (the "License");
9
+ # you may not use this file except in compliance with the License.
10
+ # You may obtain a copy of the License at
11
+ #
12
+ # https://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
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/master/subprojects/plugins/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
+ # Gradle start up script for POSIX generated by Gradle.
67
+ #
68
+ # Important for running:
69
+ #
70
+ # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
71
+ # noncompliant, but you have some other compliant shell such as ksh or
72
+ # bash, then to run this script, type that shell name before the whole
73
+ # command line, like:
74
+ #
75
+ # ksh Gradle
76
+ #
77
+ # Busybox and similar reduced shells will NOT work, because this script
78
+ # requires all of these POSIX shell features:
79
+ # * functions;
80
+ # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
81
+ # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
82
+ # * compound commands having a testable exit status, especially «case»;
83
+ # * various built-in commands including «command», «set», and «ulimit».
84
+ #
85
+ # Important for patching:
86
+ #
87
+ # (2) This script targets any POSIX shell, so it avoids extensions provided
88
+ # by Bash, Ksh, etc; in particular arrays are avoided.
89
+ #
90
+ # The "traditional" practice of packing multiple parameters into a
91
+ # space-separated string is a well documented source of bugs and security
92
+ # problems, so this is (mostly) avoided, by progressively accumulating
93
+ # options in "$@", and eventually passing that to Java.
94
+ #
95
+ # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
96
+ # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
97
+ # see the in-line comments for details.
98
+ #
99
+ # There are tweaks for specific operating systems such as AIX, CygWin,
100
+ # Darwin, MinGW, and NonStop.
101
+ #
102
+ # (3) This script is generated from the Groovy template
103
+ # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
104
+ # within the Gradle project.
105
+ #
106
+ # You can find Gradle at https://github.com/gradle/gradle/.
107
+ #
108
+ ##############################################################################
109
+
110
+ # Attempt to set APP_HOME
111
+
112
+
113
+ # Resolve links: $0 may be a link
114
+ app_path=$0
115
+
116
+ # Need this for daisy-chained symlinks.
117
+ while
118
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
119
+ [ -h "$app_path" ]
120
+ do
121
+ ls=$( ls -ld "$app_path" )
122
+ link=${ls#*' -> '}
123
+ case $link in #(
124
+ /*) app_path=$link ;; #(
125
+ *) app_path=$APP_HOME$link ;;
126
+ esac
127
+ app_path=$0
128
+
129
+ # Need this for daisy-chained symlinks.
130
+ while
131
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
132
+ [ -h "$app_path" ]
133
+ do
134
+ ls=$( ls -ld "$app_path" )
135
+ link=${ls#*' -> '}
136
+ case $link in #(
137
+ /*) app_path=$link ;; #(
138
+ *) app_path=$APP_HOME$link ;;
139
+ esac
140
+ done
141
+
142
+ APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
143
+
144
+ APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
145
+
146
+ APP_NAME="Gradle"
147
+ APP_BASE_NAME=${0##*/}
148
+ APP_BASE_NAME=${0##*/}
149
+
150
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
151
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
152
+
153
+ # Use the maximum available, or set MAX_FD != -1 to use that value.
154
+ MAX_FD=maximum
155
+ MAX_FD=maximum
156
+
157
+ warn () {
158
+ echo "$*"
159
+ } >&2
160
+ } >&2
161
+
162
+ die () {
163
+ echo
164
+ echo "$*"
165
+ echo
166
+ exit 1
167
+ } >&2
168
+ } >&2
169
+
170
+ # OS specific support (must be 'true' or 'false').
171
+ cygwin=false
172
+ msys=false
173
+ darwin=false
174
+ nonstop=false
175
+ case "$( uname )" in #(
176
+ CYGWIN* ) cygwin=true ;; #(
177
+ Darwin* ) darwin=true ;; #(
178
+ MSYS* | MINGW* ) msys=true ;; #(
179
+ NONSTOP* ) nonstop=true ;;
180
+ case "$( uname )" in #(
181
+ CYGWIN* ) cygwin=true ;; #(
182
+ Darwin* ) darwin=true ;; #(
183
+ MSYS* | MINGW* ) msys=true ;; #(
184
+ NONSTOP* ) nonstop=true ;;
185
+ esac
186
+
187
+ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
188
+
189
+
190
+
191
+ # Determine the Java command to use to start the JVM.
192
+ if [ -n "$JAVA_HOME" ] ; then
193
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
194
+ # IBM's JDK on AIX uses strange locations for the executables
195
+ JAVACMD=$JAVA_HOME/jre/sh/java
196
+ JAVACMD=$JAVA_HOME/jre/sh/java
197
+ else
198
+ JAVACMD=$JAVA_HOME/bin/java
199
+ JAVACMD=$JAVA_HOME/bin/java
200
+ fi
201
+ if [ ! -x "$JAVACMD" ] ; then
202
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
203
+
204
+ Please set the JAVA_HOME variable in your environment to match the
205
+ location of your Java installation."
206
+ fi
207
+ else
208
+ JAVACMD=java
209
+ JAVACMD=java
210
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
211
+
212
+ Please set the JAVA_HOME variable in your environment to match the
213
+ location of your Java installation."
214
+ fi
215
+
216
+ # Increase the maximum file descriptors if we can.
217
+ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
218
+ case $MAX_FD in #(
219
+ max*)
220
+ MAX_FD=$( ulimit -H -n ) ||
221
+ warn "Could not query maximum file descriptor limit"
222
+ esac
223
+ case $MAX_FD in #(
224
+ '' | soft) :;; #(
225
+ *)
226
+ ulimit -n "$MAX_FD" ||
227
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
228
+ esac
229
+ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
230
+ case $MAX_FD in #(
231
+ max*)
232
+ MAX_FD=$( ulimit -H -n ) ||
233
+ warn "Could not query maximum file descriptor limit"
234
+ esac
235
+ case $MAX_FD in #(
236
+ '' | soft) :;; #(
237
+ *)
238
+ ulimit -n "$MAX_FD" ||
239
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
240
+ esac
241
+ fi
242
+
243
+ # Collect all arguments for the java command, stacking in reverse order:
244
+ # * args from the command line
245
+ # * the main class name
246
+ # * -classpath
247
+ # * -D...appname settings
248
+ # * --module-path (only if needed)
249
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
250
+ # Collect all arguments for the java command, stacking in reverse order:
251
+ # * args from the command line
252
+ # * the main class name
253
+ # * -classpath
254
+ # * -D...appname settings
255
+ # * --module-path (only if needed)
256
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
257
+
258
+ # For Cygwin or MSYS, switch paths to Windows format before running java
259
+ if "$cygwin" || "$msys" ; then
260
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
261
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
262
+
263
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
264
+ if "$cygwin" || "$msys" ; then
265
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
266
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
267
+
268
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
269
+
270
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
271
+ for arg do
272
+ if
273
+ case $arg in #(
274
+ -*) false ;; # don't mess with options #(
275
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
276
+ [ -e "$t" ] ;; #(
277
+ *) false ;;
278
+ esac
279
+ then
280
+ arg=$( cygpath --path --ignore --mixed "$arg" )
281
+ for arg do
282
+ if
283
+ case $arg in #(
284
+ -*) false ;; # don't mess with options #(
285
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
286
+ [ -e "$t" ] ;; #(
287
+ *) false ;;
288
+ esac
289
+ then
290
+ arg=$( cygpath --path --ignore --mixed "$arg" )
291
+ fi
292
+ # Roll the args list around exactly as many times as the number of
293
+ # args, so each arg winds up back in the position where it started, but
294
+ # possibly modified.
295
+ #
296
+ # NB: a `for` loop captures its iteration list before it begins, so
297
+ # changing the positional parameters here affects neither the number of
298
+ # iterations, nor the values presented in `arg`.
299
+ shift # remove old arg
300
+ set -- "$@" "$arg" # push replacement arg
301
+ # Roll the args list around exactly as many times as the number of
302
+ # args, so each arg winds up back in the position where it started, but
303
+ # possibly modified.
304
+ #
305
+ # NB: a `for` loop captures its iteration list before it begins, so
306
+ # changing the positional parameters here affects neither the number of
307
+ # iterations, nor the values presented in `arg`.
308
+ shift # remove old arg
309
+ set -- "$@" "$arg" # push replacement arg
310
+ done
311
+ fi
312
+
313
+ # Collect all arguments for the java command;
314
+ # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
315
+ # shell script including quotes and variable substitutions, so put them in
316
+ # double quotes to make sure that they get re-expanded; and
317
+ # * put everything else in single quotes, so that it's not re-expanded.
318
+
319
+ set -- \
320
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
321
+ -classpath "$CLASSPATH" \
322
+ org.gradle.wrapper.GradleWrapperMain \
323
+ "$@"
324
+
325
+ # Stop when "xargs" is not available.
326
+ if ! command -v xargs >/dev/null 2>&1
327
+ then
328
+ die "xargs is not available"
329
+ fi
330
+
331
+ # Collect all arguments for the java command;
332
+ # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
333
+ # shell script including quotes and variable substitutions, so put them in
334
+ # double quotes to make sure that they get re-expanded; and
335
+ # * put everything else in single quotes, so that it's not re-expanded.
336
+
337
+ set -- \
338
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
339
+ -classpath "$CLASSPATH" \
340
+ org.gradle.wrapper.GradleWrapperMain \
341
+ "$@"
342
+
343
+ # Use "xargs" to parse quoted args.
344
+ #
345
+ # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
346
+ #
347
+ # In Bash we could simply go:
348
+ #
349
+ # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
350
+ # set -- "${ARGS[@]}" "$@"
351
+ #
352
+ # but POSIX shell has neither arrays nor command substitution, so instead we
353
+ # post-process each arg (as a line of input to sed) to backslash-escape any
354
+ # character that might be a shell metacharacter, then use eval to reverse
355
+ # that process (while maintaining the separation between arguments), and wrap
356
+ # the whole thing up as a single "set" statement.
357
+ #
358
+ # This will of course break if any of these variables contains a newline or
359
+ # an unmatched quote.
360
+ #
361
+
362
+ eval "set -- $(
363
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
364
+ xargs -n1 |
365
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
366
+ tr '\n' ' '
367
+ )" '"$@"'
368
+ eval "set -- $(
369
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
370
+ xargs -n1 |
371
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
372
+ tr '\n' ' '
373
+ )" '"$@"'
374
+
375
+ exec "$JAVACMD" "$@"
@@ -1,8 +1,8 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Wed Nov 30 17:21:01 EST 2022
8
- sdk.dir=C\:\\Users\\ehsan\\AppData\\Local\\Android\\Sdk
1
+ ## This file must *NOT* be checked into Version Control Systems,
2
+ # as it contains information specific to your local configuration.
3
+ #
4
+ # Location of the SDK. This is only used by Gradle.
5
+ # For customization when using a Version Control System, please read the
6
+ # header note.
7
+ #Sun Dec 18 01:08:54 EST 2022
8
+ sdk.dir=/home/ehsan6sha/Android/Sdk
@@ -1,4 +1,4 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="land.fx.fula">
3
-
4
- </manifest>
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="land.fx.fula">
3
+
4
+ </manifest>