Survey application built with Flutter
Clone the repository
git clone [email protected]:hoangnguyen92dn/survey-flutter-ic.git
- Flutter 3.3.10
- Flutter version manager (recommend): fvm
-
Create these
.env
files in the root directory according to the flavors and add the required environment variables into them. The example environment variable is in.env.sample
.-
Staging:
.env.staging
-
Production:
.env
-
-
Run code generator
$ fvm flutter packages pub run build_runner build --delete-conflicting-outputs
-
Run the app with the desire app flavor:
-
Staging:
$ fvm flutter run --flavor staging
-
Production:
$ fvm flutter run --flavor production
-
-
Run unit testing:
$ fvm flutter test
-
Run integration testing:
-
$ fvm flutter drive --driver=test_driver/integration_test.dart --target=integration_test/{test_file}.dart --flavor staging
-
For example:
$ fvm flutter drive --driver=test_driver/integration_test.dart --target=integration_test/home_screen_test.dart --flavor staging
-
-
Code coverage integration:
- CodeCov: for the private repository, we need to set up a TeamBot in
codecov.yml
.
- CodeCov: for the private repository, we need to set up a TeamBot in
This project is Copyright (c) 2014 and onwards. It is free software, and may be redistributed under the terms specified in the LICENSE file.
This project is maintained and funded by Nimble.
We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.