diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-10 17:39:12 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-10 17:39:22 +0800 |
| commit | e4fb9966e762852bf17f21c8406501d42fae0b61 (patch) | |
| tree | 658bbdba977ff7846a17ee94b8ed6b676f6ce9dd /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.bat | 98 |
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 | ||
| 32 | if "%OS%"=="Windows_NT" setlocal | ||
| 33 | |||
| 34 | set DIRNAME=%~dp0 | ||
| 35 | if "%DIRNAME%"=="" set DIRNAME=. | ||
| 36 | @rem This is normally unused | ||
| 37 | set APP_BASE_NAME=%~n0 | ||
| 38 | set APP_HOME=%DIRNAME% | ||
| 39 | |||
| 40 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. | ||
| 41 | for %%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. | ||
| 44 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" | ||
| 45 | |||
| 46 | @rem Find java.exe | ||
| 47 | if defined JAVA_HOME goto findJavaFromJavaHome | ||
| 48 | |||
| 49 | set JAVA_EXE=java.exe | ||
| 50 | %JAVA_EXE% -version >NUL 2>&1 | ||
| 51 | if %ERRORLEVEL% equ 0 goto execute | ||
| 52 | |||
| 53 | echo. 1>&2 | ||
| 54 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 | ||
| 55 | echo. 1>&2 | ||
| 56 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | ||
| 57 | echo location of your Java installation. 1>&2 | ||
| 58 | |||
| 59 | goto fail | ||
| 60 | |||
| 61 | :findJavaFromJavaHome | ||
| 62 | set JAVA_HOME=%JAVA_HOME:"=% | ||
| 63 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe | ||
| 64 | |||
| 65 | if exist "%JAVA_EXE%" goto execute | ||
| 66 | |||
| 67 | echo. 1>&2 | ||
| 68 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 | ||
| 69 | echo. 1>&2 | ||
| 70 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | ||
| 71 | echo location of your Java installation. 1>&2 | ||
| 72 | |||
| 73 | goto 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 | ||
| 85 | if %ERRORLEVEL% equ 0 goto mainEnd | ||
| 86 | |||
| 87 | :fail | ||
| 88 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of | ||
| 89 | rem the _cmd.exe /c_ return code! | ||
| 90 | set EXIT_CODE=%ERRORLEVEL% | ||
| 91 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 | ||
| 92 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% | ||
| 93 | exit /b %EXIT_CODE% | ||
| 94 | |||
| 95 | :mainEnd | ||
| 96 | if "%OS%"=="Windows_NT" endlocal | ||
| 97 | |||
| 98 | :omega | ||
