30 lines
847 B
Markdown
30 lines
847 B
Markdown
# Tloto Mobile
|
|
|
|
## API URL (compile-time)
|
|
|
|
`API_BASE_URL` is set via `--dart-define` / `--dart-define-from-file`.
|
|
|
|
| Build | Default without dart-define |
|
|
|-------|-----------------------------|
|
|
| **Release** (`flutter build apk --release`) | `https://tloto.net` |
|
|
| **Debug / emulator** | `http://10.0.2.2:9080` |
|
|
|
|
### Local device / custom host
|
|
|
|
1. Copy `dart_defines.dev.example.json` → `dart_defines.dev.json`
|
|
2. Set your API base, e.g. `https://tloto.net` or `http://<PC_LAN_IP>:9080`
|
|
|
|
```bash
|
|
flutter run --dart-define-from-file=dart_defines.dev.json
|
|
```
|
|
|
|
### Release APK (production)
|
|
|
|
```bash
|
|
flutter build apk --release --dart-define-from-file=dart_defines.prod.example.json
|
|
```
|
|
|
|
Output: `build/app/outputs/flutter-apk/app-release.apk`
|
|
|
|
Older APKs built with `redirectme`, `:9443`, or `10.0.2.2` must be rebuilt for `https://tloto.net`.
|