One-page-only diary app.
This project uses Firebase. Each individual must configure the Firebase settings files in the project. Please follow the steps below.
- Visit the Firebase website (https://firebase.google.com/) and create the necessary Firebase projects for each environment.
In this project, we use the FlutterFire CLI to configure Firebase.
-
If FlutterFire CLI is not installed, install it using the following command:
$ dart pub global activate flutterfire_cli
-
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
-
Follow the instructions that appear to select your Firebase project and make the necessary configurations.
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