updates android buold environment and setup.sh
This commit is contained in:
@@ -341,13 +341,23 @@ API-Endpoint fuer andere Services: `GET http://localhost:3001/api/session`
|
||||
- GPS-Position (optional)
|
||||
- QR-Code Scanner fuer Token-Pairing
|
||||
|
||||
### Ersteinrichtung (Dev-Maschine, einmalig)
|
||||
|
||||
```bash
|
||||
cd android
|
||||
./setup.sh # Installiert Node, JDK 17, Android SDK, npm Dependencies
|
||||
# Generiert natives Android-Projekt, konfiguriert Gradle
|
||||
```
|
||||
|
||||
Das Script erkennt das OS (Debian, Fedora, Arch, macOS) und installiert alles automatisch:
|
||||
Node.js 18+, JDK 17 (exakt, nicht 21!), Android SDK (Platform 34, Build-Tools, Platform-Tools).
|
||||
|
||||
### APK bauen
|
||||
|
||||
```bash
|
||||
cd android
|
||||
npm install # einmalig — installiert alle Dependencies
|
||||
cd android
|
||||
./gradlew assembleRelease
|
||||
./build.sh # Release-APK bauen
|
||||
./build.sh debug # Debug-APK bauen
|
||||
# APK liegt unter android/app/build/outputs/apk/release/
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user