···11+#!/bin/sh
22+33+#
44+# Copyright 2015-2024 the original author or authors.
55+#
66+# Licensed under the Apache License, Version 2.0 (the "License");
77+# you may not use this file except in compliance with the License.
88+# You may obtain a copy of the License at
99+#
1010+# https://www.apache.org/licenses/LICENSE-2.0
1111+#
1212+1313+##############################################################################
1414+#
1515+# Gradle start up script for POSIX generated by Gradle.
1616+#
1717+##############################################################################
1818+1919+# Attempt to set APP_HOME
2020+2121+# Resolve links: $0 may be a link
2222+app_path=$0
2323+2424+# Need this for daisy-chained symlinks.
2525+while
2626+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
2727+ [ -h "$app_path" ]
2828+do
2929+ ls=$( ls -ld "$app_path" )
3030+ link=${ls#*' -> '}
3131+ case $link in #(
3232+ /*) app_path=$link ;; #(
3333+ *) app_path=$APP_HOME$link ;;
3434+ esac
3535+done
3636+3737+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
3838+3939+# Use the maximum available, or set MAX_FD != -1 to use that value.
4040+MAX_FD=maximum
4141+4242+warn () {
4343+ echo "$*"
4444+} >&2
4545+4646+die () {
4747+ echo
4848+ echo "$*"
4949+ echo
5050+ exit 1
5151+} >&2
5252+5353+# OS specific support (must be 'true' or 'false').
5454+cygwin=false
5555+msys=false
5656+darwin=false
5757+nonstop=false
5858+case "$( uname )" in #(
5959+ CYGWIN* ) cygwin=true ;; #(
6060+ Darwin* ) darwin=true ;; #(
6161+ MSYS* | MINGW* ) msys=true ;; #(
6262+ NONSTOP* ) nonstop=true ;;
6363+esac
6464+6565+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
6666+6767+6868+# Determine the Java command to use to start the JVM.
6969+if [ -n "$JAVA_HOME" ] ; then
7070+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
7171+ # IBM's JDK on AIX uses strange locations for the executables
7272+ JAVACMD=$JAVA_HOME/jre/sh/java
7373+ else
7474+ JAVACMD=$JAVA_HOME/bin/java
7575+ fi
7676+ if [ ! -x "$JAVACMD" ] ; then
7777+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
7878+7979+Please set the JAVA_HOME variable in your environment to match the
8080+location of your Java installation."
8181+ fi
8282+else
8383+ JAVACMD=java
8484+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
8585+8686+Please set the JAVA_HOME variable in your environment to match the
8787+location of your Java installation."
8888+fi
8989+9090+# Increase the maximum file descriptors if we can.
9191+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
9292+ case $MAX_FD in #(
9393+ max*)
9494+ MAX_FD=$( ulimit -H -n ) ||
9595+ warn "Could not query maximum file descriptor limit"
9696+ esac
9797+ case $MAX_FD in #(
9898+ '' | soft) :;; #(
9999+ *)
100100+ ulimit -n "$MAX_FD" ||
101101+ warn "Could not set maximum file descriptor limit to $MAX_FD"
102102+ esac
103103+fi
104104+105105+# Collect all arguments for the java command, stacking in reverse order:
106106+# * args from the command line
107107+# * the main class name
108108+# * -classpath
109109+# * -D...appname settings
110110+# * --module-path (only if needed)
111111+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
112112+113113+# For Cygwin or MSYS, switch paths to Windows format before running java
114114+if "$cygwin" || "$msys" ; then
115115+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
116116+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
117117+118118+ JAVACMD=$( cygpath --unix "$JAVACMD" )
119119+120120+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
121121+ for arg do
122122+ if
123123+ case $arg in #(
124124+ -*) false ;; # don't mess with options #(
125125+ /?*) t=${arg#)}; t=/${t%%/*} # looks like a POSIX filepath
126126+ [ -e "$t" ] ;; #(
127127+ *) false ;;
128128+ esac
129129+ then
130130+ arg=$( cygpath --path --ignore --mixed "$arg" )
131131+ fi
132132+ # Roll the args list around exactly as many times as the number of
133133+ # temporary files were generated.
134134+ set -- "$@" "$arg"
135135+ shift
136136+ done
137137+fi
138138+139139+140140+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
141141+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
142142+143143+# Collect all arguments for the java command:
144144+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not:// having any whitespace:// * example:// having any whitespace
145145+set -- \
146146+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
147147+ -classpath "$CLASSPATH" \
148148+ org.gradle.wrapper.GradleWrapperMain \
149149+ "$@"
150150+151151+# Stop when "xargs" is not available.
152152+if ! command -v xargs >/dev/null 2>&1
153153+then
154154+ die "xargs is not available"
155155+fi
156156+157157+# Use "xargs" to parse quoted args.
158158+#
159159+# With -n:// * "arg// "arg one two three" "arg"
160160+# ... would result in:// * "arg" "one two three" "arg"
161161+#
162162+# We need to respect:// * and then eval, for any shell// * The output is handled by the function:// *:// * The output is then read by xargs.
163163+eval "set -- $(
164164+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
165165+ xargs -n1 |
166166+ sed ' s~[`528"]~\\&~g; ' |
167167+ tr '\n' ' '
168168+ )" '"$@"'
169169+170170+exec "$JAVACMD" "$@"
+86
android/gradlew.bat
···11+@rem
22+@rem Copyright 2015-2024 the original author or authors.
33+@rem
44+@rem Licensed under the Apache License, Version 2.0 (the "License");
55+@rem you may not use this file except in compliance with the License.
66+@rem You may obtain a copy of the License at
77+@rem
88+@rem https://www.apache.org/licenses/LICENSE-2.0
99+@rem
1010+1111+@if "%DEBUG%"=="" @echo off
1212+@rem ##########################################################################
1313+@rem
1414+@rem Gradle startup script for Windows
1515+@rem
1616+@rem ##########################################################################
1717+1818+@rem Set local scope for the variables with windows NT shell
1919+if "%OS%"=="Windows_NT" setlocal
2020+2121+set DIRNAME=%~dp0
2222+if "%DIRNAME%"=="" set DIRNAME=.
2323+@rem This is normally unused
2424+set APP_BASE_NAME=%~n0
2525+set APP_HOME=%DIRNAME%
2626+2727+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
2828+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
2929+3030+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
3131+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3232+3333+@rem Find java.exe
3434+if defined JAVA_HOME goto findJavaFromJavaHome
3535+3636+set JAVA_EXE=java.exe
3737+%JAVA_EXE% -version >NUL 2>&1
3838+if %ERRORLEVEL% equ 0 goto execute
3939+4040+echo. 1>&2
4141+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
4242+echo. 1>&2
4343+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
4444+echo location of your Java installation. 1>&2
4545+4646+goto fail
4747+4848+:findJavaFromJavaHome
4949+set JAVA_HOME=%JAVA_HOME:"=%
5050+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5151+5252+if exist "%JAVA_EXE%" goto execute
5353+5454+echo. 1>&2
5555+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
5656+echo. 1>&2
5757+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
5858+echo location of your Java installation. 1>&2
5959+6060+goto fail
6161+6262+:execute
6363+@rem Setup the command line
6464+6565+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
6666+6767+6868+@rem Execute Gradle
6969+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
7070+7171+:end
7272+@rem End local scope for the variables with windows NT shell
7373+if %ERRORLEVEL% equ 0 goto mainEnd
7474+7575+:fail
7676+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
7777+rem the _cmd.exe /c_ return code!
7878+set EXIT_CODE=%ERRORLEVEL%
7979+if %EXIT_CODE% equ 0 set EXIT_CODE=1
8080+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
8181+exit /b %EXIT_CODE%
8282+8383+:mainEnd
8484+if "%OS%"=="Windows_NT" endlocal
8585+8686+:omega