Hello developers, and welcome back.
In this video we're going to create the project and add some required dependencies to it.
Open Android Studio, select a new project empty compose activity, then name it as Uber Clone and now
click finish.
The first library we're going to add is Firebase.
So go to Firebase google.com.
Login into your account then select go to console.
Create a Firebase project.
Enter your project name.
Name it as Uber Clone.
Then continue.
Enable Google Analytics project, select account default account for Firebase and wait for Firebase
to configure and prepare your project.
We need Firebase in order to store markers to store destinations points on the map, and then retrieve
them when the app launches.
Okay.
So it's very important we need to store our destinations and marker on Firebase then select Android
Android package name.
Go to Android Studio.
Copy this package from mainactivity, then paste it here.
The app nickname Uber clone.
You can get the debugging signing certificate if you need, and if you manage to add the dynamic links
and Google sign in or phone number support in authentication.
As we said before, we can do it by going to Gradle select Execute Gradle task and here signing report.
Okay.
It's very simple.
We can select this click enter.
And Android Studio will give you the Sha one certificate.
You can copy it and paste it here.
Okay.
This is optional.
We can do it I'll show you guys.
Copy this copy it paste it here.
You can uh this is optional okay.
So you can skip this code, but I prefer if you manage to, uh, add phone number or authentication.
Uh, you need to know it.
Okay, now download the Google Services JSON file.
Copy the file and go to project.
Select project from here.
Go to app folder and paste it.
Please pay attention here.
There is a very important note here.
You should name the file Google Services dot JSON.
Okay, this is exactly what the name of the file.
Click okay and here we go.
This is the file for Google services.
Click next.
Now we need to add the dependencies.
You can select Kotlin DSL which is the default for our project.
And if you are using groovy you can select groovy.
Okay I use the Kotlin DSL.
So copy this this dependency for Google Services Gradle plugin.
We need to place it at the project level.
So go to here select Android Gradle Scripts project and paste it here.
Then we need to add the dependencies, we need to apply this plugin so Gradle file.
From here paste it.
Then we need to add the Firebase Bom.
Scroll down.
The first library is added successfully which is the Firebase Bom.
Now we need to store the markers in Firebase Firestore.
So from here click build.
We need Firebase Firestore database.
Click on it Cloud Firestore.
This is the dashboard which is a real time updates powerful queries and automatic scaling.
And we talked about Firestore in the previous videos.
So click Create Database.
The default click next.
Start in test mode then create.
And here we go.
The database is configured for the Uber clone project.
Okay.
So our Firebase Firestore is created.
Now let's add the dependency for this.
You can go to here and add the Firebase Firestore implementation.
You can search Google.
But thanks for the AI tool AI code completion tool in Android Studio.
It will help you to get the dependencies and uh and fetch the dependencies for the required uh libraries
okay.
Com Google dot Firebase.
What uh what thing we need to add.
You can add an all natural language.
You can add the machine learning um Crashlytics analytics uh and others we are interested in adding
Firebase Dash Fire store okay.
Instead of using the version of the products we can use directly the implementation without specifying
the version because we used the bomb okay.
So sync now.
So congratulations we've added Firebase and Firebase Firestore to our project.