Skip to content

DavidGrunheidt/black-jack-21-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coverage

Blackjack 21 simplified

Architecture

This app follows Clean Dart architecture proposed by Flutterando.

Folder structure was higly inspired by Clean Dart Login with Firebase, MobX and Modular project.

CI/CD

  • Pull request to develop triggers "pr-checks" pipeline, which will run a static code analysis and run all tests
  • Push to develop triggers "stg-build" pipeline, which will run a static code analysis, run all tests, deploy the android app on Firebase app Distribution and deploy the web app on Firebase Hosting, using Firebase staging project.
  • Push to main triggers "prod-release" pipeline, which will run a static code analysis, run all tests, deploy the android app on Firebase app Distribution and deploy the web app on Firebase Hosting, using Firebase prod project. The pipeline will also generate a new GitHub release with all needed assets.

Testing on each environment

Run the app

For running the app app make sure to first run

make clean
make gen-code

To run the staging app:

flutter run --flavor stg -t lib/main_stg.dart

To run the production app:

flutter run --flavor prod -t lib/main_prod.dart

boot.dart

  • Initialization and startup logic should be done here.
  • Initalize locators, SDKs, etc.
  • Called by all Flavors.

main_.dart

  • Entry point for each Flavor of the app
  • There is one Flavor per environment (stg, prod)