Skip to content

Latest commit

 

History

History

app

One Page

One-page-only diary app.

Firebase

This project uses Firebase. Each individual must configure the Firebase settings files in the project. Please follow the steps below.

Creating a Firebase Project

  1. Visit the Firebase website (https://firebase.google.com/) and create the necessary Firebase projects for each environment.

Using FlutterFire CLI

In this project, we use the FlutterFire CLI to configure Firebase.

  1. If FlutterFire CLI is not installed, install it using the following command:

    $ dart pub global activate flutterfire_cli
  2. Execute the following commands in the command line to configure Firebase. Please create one for each environment.

    $ flutterfire configure --out=lib/environment/src/firebase_options_dev.dart --platforms=android,ios --ios-bundle-id=com.naipaka.onepage.dev --android-package-name=com.naipaka.onepage.dev
    
    $ flutterfire configure --out=lib/environment/src/firebase_options_prod.dart --platforms=android,ios --ios-bundle-id=com.naipaka.onepage --android-package-name=com.naipaka.onepage
  3. Follow the instructions that appear to select your Firebase project and make the necessary configurations.

Configuring Files

After running the flutterfire configure command, GoogleService-Info.plist and google-services.json files will be generated in your project. Please place them as follows:

.
├── android
│   └── app
│       └── src
│           ├── dev
│           │   └── google-services.json
│           └── prod
│               └── google-services.json
└── ios
    ├── dev
    │   ├── firebase_app_id_file.json
    │   └── GoogleService-Info.plist
    └── prod
        ├── firebase_app_id_file.json
        └── GoogleService-Info.plist