Bookshelf app created by Kyrylo Kovalenko.
First - install all dependencies:
make bootstrap
After that you need to generate all the necessary files:
make gen
This project contains 3 flavors:
- development
- staging
- production
To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:
# Development
$ flutter run --flavor development --target lib/main_development.dart --dart-define=BASE_URL={url}
# Staging
$ flutter run --flavor staging --target lib/main_staging.dart --dart-define=BASE_URL={url}
# Production
$ flutter run --flavor production --target lib/main_production.dart --dart-define=BASE_URL={url}
do not forget to include the server address BASE_URL
*Bookshelf works on iOS, Android.
For cleaning all dependencies, you can call the command:
make clean
To run all unit and widget tests use the following command:
$ flutter test --coverage --test-randomize-ordering-seed random
To view the generated coverage report you can use lcov.
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
$ open coverage/index.html