git clone https://github.com/PathXplorer-C242-PS289/PathXplorer.gitopen the project in your favorite IDE
first, you need to connect project to firebase like below:
- open the project in android studio
- go to tools -> firebase
- click on authentication -> Authenticate using Google
- click on connect to firebase
- follow the steps to connect the project to firebase
- then when you are done, Add firebase Authentication, it will add some dependencies to build.gradle project level, and app level
- then you need to add
SHA1andSHA256keys to firebase project settings - to get the
SHA1andSHA256keys, follow the steps below: open the project in android studio click on gradle on the right side of the IDE click on the project -> Tasks -> android -> signingReport
or you can run the following command in the terminal
./gradlew signingReport
or
gradle signingReport- when you have added the SHA1 and SHA256 keys to firebase project settings, you need to download the google-services.json file and add to the project /app folder.
add FIREBASE_CLIENT_ID on local.rpoperties file
FIREBASE_CLIENT_ID="YOUR_WEB_CLIENT_ID"to get the web client id, follow the steps below:
- open your firebase project
- go to authentication -> sign-in method -> google
- enable google sign-in method
- click on web SDK configuration
- copy the web client id
- Go to Firebase Console or open tools -> firebase -> Realtime Database
- Click on Connect to Firebase
- Follow the steps to connect the project to firebase
- Add dependencies to build.gradle project level and app level
- Create a new database
- Go to setting project in firebase console
- Then download the
google-services.jsonfile and add to the project /app folder if you have just replace the file
The App is finalize in 13/12/2024 for update V1 V2 Myabe????