Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.02 KB

CONTRIBUTE.md

File metadata and controls

32 lines (21 loc) · 1.02 KB

Getting Started

For help getting started with Flutter, view the online documentation.

Running the app

The application can start with different modes :

  • dev:
  • qa:
  • prod: will run the application by targeting the production ecosystem

Note that switching between flavors requires running flutter clean to clean the app build files.

Command line

To run the app use the following command by specifying the mode (dev, qa, prod):

flutter run --flavor <mode> --target lib/main_<mode>.dart

example: flutter run --flavor dev --target lib/main_dev.dart

IntelliJ / Android Studio

The project comes with some runs configuration but if you want to make your own, here's how:

Edit the running configurations for the project and set the values according to the mode you want to run (dev, qa, prod):

  • Dart entrypoint: the path to the main_{mode}.dart file (example: lib/main_dev.dart)
  • Build flavor: {mode} (example: dev)
  • Before Launch : :clean Gradle task