Skip to content

Latest commit

 

History

History
66 lines (36 loc) · 1.64 KB

README.md

File metadata and controls

66 lines (36 loc) · 1.64 KB

flutter-demo-survey-app

Prerequisite

  • Flutter 2.17.0
  • Flutter version manager (recommend): fvm

Getting Started

Setup

  • Create these .env files in the root directory according to the flavors and add the required environment variables into them.

    • Staging: .env.staging

    • Production: .env

  • Run code generator

    • $ fvm flutter packages pub run build_runner build --delete-conflicting-outputs

Run

  • Run the app with the desire app flavor:

    • Staging: $ fvm flutter run --flavor staging

    • Production: $ fvm flutter run --flavor production

Test

  • 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/my_home_page_test.dart --flavor staging

  • Code coverage integration:

    • CodeCov: for the private repository, we need to set up a TeamBot in codecov.yml.

License

This project is Copyright (c) 2014 and onwards. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

Nimble

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.