644 B
644 B
Tloto Mobile
API URL (compile-time)
API_BASE_URL is set via --dart-define / --dart-define-from-file.
Without it, the app defaults to http://10.0.2.2:9080 (Android emulator only).
- Copy
dart_defines.dev.example.json→dart_defines.dev.json - Set your API base, e.g.
http://prediqo.redirectme.net:9080
Run
flutter run --dart-define-from-file=dart_defines.dev.json
Release APK
flutter build apk --release --dart-define-from-file=dart_defines.dev.json
Output: build/app/outputs/flutter-apk/app-release.apk
A plain flutter build apk --release will not include your VPS URL.