Skip to content

KrishChopra22/splittr

 
 

Repository files navigation

Add firebase to project

Before running the below command install firebase cli and flutterfire.

  • Dev

    1. flutterfire configure --platforms=android --android-package-name=com.example.splittr.dev --out=lib/core/firebase/firebase_options_dev.dart
    2. (IMP) Create a dev folder inside android/app/src/ and move the google-services.json file to dev folder.
  • Prod

    1. flutterfire configure --platforms=android --android-package-name=com.example.splittr --out=lib/core/firebase/firebase_options_prod.dart
    2. (IMP) Create a prod folder inside android/app/src/ and move the google-services.json file to prod folder.

Build Runner

dart run build_runner build --delete-conflicting-outputs

Configure flutter run for dev and prod

For Android Studio: If DEV and PROD are not visible do the following:

  1. Go to edit configuration.
  2. Add name - DEV or PROD.
  3. Add dart entry point as main_dev.dart for DEV and main_prod.dart for PROD.
  4. In build flavor section - dev for DEV and prod for PROD.

For VS Code:

  1. There is a launch.json file for it.
  2. You mfs can select the DEV or PROD there.

Mason

  1. Activate mason
    dart pub global activate mason_cli
  2. Go to mason folder
    cd mason
  3. Get mason bricks
    mason get

Create a page with mason

mason make feature_page -o ../lib/features/ --on-conflict overwrite --feature_name [yourFeatureName]

Create a component with mason

mason make feature_component -o ../lib/features/ --on-conflict overwrite --feature_name [yourFeatureName]

About

bill-splitting flutter application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 65.1%
  • C++ 17.9%
  • CMake 13.7%
  • HTML 1.4%
  • Swift 1.2%
  • C 0.6%
  • Other 0.1%