안드로이드 디버그 빌드 정리

This commit is contained in:
2026-06-06 15:40:19 +09:00
parent 0f404b439e
commit fbdd87ec8b
10 changed files with 385 additions and 8 deletions

View File

@@ -7,11 +7,25 @@ library dependencies beyond the Android Gradle/Kotlin plugins.
## Build
Open `apps/android` in Android Studio, sync Gradle, then run the `app` module.
For command-line debug builds:
```powershell
$env:JAVA_HOME="C:\Program Files\Android\Android Studio\jbr"
$env:ANDROID_HOME="$env:LOCALAPPDATA\Android\Sdk"
.\gradlew.bat :app:assembleDebug
```
The debug APK is created at:
```text
apps/android/app/build/outputs/apk/debug/app-debug.apk
```
Current Gradle plugin choices:
- Android Gradle Plugin: `9.2.0`
- Kotlin: `2.4.0`
- Kotlin: built into Android Gradle Plugin 9.x
- Gradle wrapper: `9.4.1`
- compile/target SDK: `36`
## MVP behavior
@@ -24,6 +38,9 @@ Current Gradle plugin choices:
For emulator testing, keep the default server URL `http://10.0.2.2:8080`.
For a real phone, use the NAS or PC LAN URL, for example
`http://192.168.0.10:8080`.
`http://192.168.200.129:18081`.
The current public reverse-proxy URL is
`https://cargoradar.comtropy.synology.me`.
Production builds should use HTTPS and disable cleartext traffic.