ic-flutter-taher-toby

codecov

All the templates that can be used to kick off a new Flutter application quickly.

Usage

Clone the repository

git clone git@github.com:nimblehq/ic-flutter-taher-toby.git

Prerequisite

  • Flutter 2.10.3
  • 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. 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

  • 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 test --flavor staging integration_test/app_test.dart
  • 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.