Setup Instructions
How to get everything up and running?
Last updated
Was this helpful?
How to get everything up and running?
Last updated
Was this helpful?
Open a terminal, and clone the project from GitHub. Please, make sure git is installed before doing this.
Open the Firebase project and head to the Project Settings. Or directly click on this (won't open unless signed in with proper Google account to access the Firebase Project).
Find the app settings, and add your debug SHA keys. To generate the debug SHA keys use the following commands -
or follow the instructions here -
A detailed instruction for this can be found here -
Enter the command below in a terminal. This command stores the upload-keystore.jks
file in your home directory. If you want to store it elsewhere, change the argument you pass to the -keystore
parameter.
Keep the keystore
file private; never check it into public source control!
After this step, create a file named [project]/android/key.properties
that contains a reference to your keystore. This should never have be checked into public source control. Usually it's in the git ignore by default.
At this stage you should be able to run the project (but will not be able to use Firebase related functionality yet). To run the flutter app, simple open a terminal, navigate to the root directory of your project, and simply enter:
Now that the app has been successfully run, we need to complete setting up the firebase. Release keys be generated in the same manner as debug keys, with the exception that now you need to replace the debug.keystore
with your generated keystore (previously referred to as upload-keystore.jks
) file after signing the app. This answer clearly describes the steps for the same.
Congratulations! You have successfully set up the project and are ready to use the code to build something amazing.
After that download the and replace it inside the project. This is found inside the android/app
folder. We will need to do this anytime we make some changes to the app, like adding release keys, or changing other parameters.
Since the app is already in release, parts of have been modified for the same. To make sure your app runs, make sure to follow these 2 steps.
After all generated keys are added, re-download and replace the file in the project as before.