| .. | ||
| android | ||
| integration_test | ||
| ios | ||
| lib | ||
| test | ||
| web | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| dart_defines.dev.example.json | ||
| devtools_options.yaml | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
| TESTING.md | ||
Prediqo 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.