summaryrefslogtreecommitdiff
path: root/android/gradlew.bat
diff options
context:
space:
mode:
authorhc <haocheng.xie@respiree.com>2026-04-10 17:39:12 +0800
committerhc <haocheng.xie@respiree.com>2026-04-10 17:39:22 +0800
commite4fb9966e762852bf17f21c8406501d42fae0b61 (patch)
tree658bbdba977ff7846a17ee94b8ed6b676f6ce9dd /android/gradlew.bat
Initial commit: iHealth BLE scanner app with patched SDK v1.5.0
Diffstat (limited to 'android/gradlew.bat')
-rw-r--r--android/gradlew.bat98
1 files changed, 98 insertions, 0 deletions
diff --git a/android/gradlew.bat b/android/gradlew.bat
new file mode 100644
index 0000000..39baf4d
--- /dev/null
+++ b/android/gradlew.bat
@@ -0,0 +1,98 @@
1@REM Copyright (c) Meta Platforms, Inc. and affiliates.
2@REM
3@REM This source code is licensed under the MIT license found in the
4@REM LICENSE file in the root directory of this source tree.
5
6@rem
7@rem Copyright 2015 the original author or authors.
8@rem
9@rem Licensed under the Apache License, Version 2.0 (the "License");
10@rem you may not use this file except in compliance with the License.
11@rem You may obtain a copy of the License at
12@rem
13@rem https://www.apache.org/licenses/LICENSE-2.0
14@rem
15@rem Unless required by applicable law or agreed to in writing, software
16@rem distributed under the License is distributed on an "AS IS" BASIS,
17@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18@rem See the License for the specific language governing permissions and
19@rem limitations under the License.
20@rem
21@rem SPDX-License-Identifier: Apache-2.0
22@rem
23
24@if "%DEBUG%"=="" @echo off
25@rem ##########################################################################
26@rem
27@rem Gradle startup script for Windows
28@rem
29@rem ##########################################################################
30
31@rem Set local scope for the variables with windows NT shell
32if "%OS%"=="Windows_NT" setlocal
33
34set DIRNAME=%~dp0
35if "%DIRNAME%"=="" set DIRNAME=.
36@rem This is normally unused
37set APP_BASE_NAME=%~n0
38set APP_HOME=%DIRNAME%
39
40@rem Resolve any "." and ".." in APP_HOME to make it shorter.
41for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
42
43@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
44set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
45
46@rem Find java.exe
47if defined JAVA_HOME goto findJavaFromJavaHome
48
49set JAVA_EXE=java.exe
50%JAVA_EXE% -version >NUL 2>&1
51if %ERRORLEVEL% equ 0 goto execute
52
53echo. 1>&2
54echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
55echo. 1>&2
56echo Please set the JAVA_HOME variable in your environment to match the 1>&2
57echo location of your Java installation. 1>&2
58
59goto fail
60
61:findJavaFromJavaHome
62set JAVA_HOME=%JAVA_HOME:"=%
63set JAVA_EXE=%JAVA_HOME%/bin/java.exe
64
65if exist "%JAVA_EXE%" goto execute
66
67echo. 1>&2
68echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
69echo. 1>&2
70echo Please set the JAVA_HOME variable in your environment to match the 1>&2
71echo location of your Java installation. 1>&2
72
73goto fail
74
75:execute
76@rem Setup the command line
77
78
79
80@rem Execute Gradle
81"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
82
83:end
84@rem End local scope for the variables with windows NT shell
85if %ERRORLEVEL% equ 0 goto mainEnd
86
87:fail
88rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
89rem the _cmd.exe /c_ return code!
90set EXIT_CODE=%ERRORLEVEL%
91if %EXIT_CODE% equ 0 set EXIT_CODE=1
92if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
93exit /b %EXIT_CODE%
94
95:mainEnd
96if "%OS%"=="Windows_NT" endlocal
97
98:omega