Skip to main content

Build & Deploy

Development​

flutter pub get
flutter run # Auto-detect platform
flutter run -d ios # iOS simulator
flutter run -d android # Android emulator
flutter run -d macos # macOS

Production Builds​

iOS​

flutter build ios --release
# Then archive in Xcode and upload to App Store Connect

Android​

flutter build appbundle --release
# Upload .aab to Google Play Console

Local API Testing​

The mobile app talks to the Divinux API (which hosts the alerting routes) on port 3003 locally:

flutter run --dart-define=API_BASE_URL=http://localhost:3003/api/v1 --dart-define=ENV=development