WEBVTT

00:00.120 --> 00:02.240
Hello developers, and welcome back.

00:02.280 --> 00:08.200
In this video we're going to create the project and add some required dependencies to it.

00:08.240 --> 00:16.360
Open Android Studio, select a new project empty compose activity, then name it as Uber Clone and now

00:16.600 --> 00:17.480
click finish.

00:17.720 --> 00:21.440
The first library we're going to add is Firebase.

00:21.880 --> 00:25.280
So go to Firebase google.com.

00:25.320 --> 00:29.560
Login into your account then select go to console.

00:29.560 --> 00:32.120
Create a Firebase project.

00:32.120 --> 00:33.720
Enter your project name.

00:33.760 --> 00:35.680
Name it as Uber Clone.

00:35.840 --> 00:36.720
Then continue.

00:36.840 --> 00:44.600
Enable Google Analytics project, select account default account for Firebase and wait for Firebase

00:44.600 --> 00:46.760
to configure and prepare your project.

00:46.800 --> 00:55.600
We need Firebase in order to store markers to store destinations points on the map, and then retrieve

00:55.600 --> 00:57.920
them when the app launches.

00:57.960 --> 00:58.480
Okay.

00:58.520 --> 01:06.600
So it's very important we need to store our destinations and marker on Firebase then select Android

01:06.760 --> 01:08.120
Android package name.

01:08.120 --> 01:09.400
Go to Android Studio.

01:09.640 --> 01:15.120
Copy this package from mainactivity, then paste it here.

01:15.480 --> 01:18.720
The app nickname Uber clone.

01:18.760 --> 01:25.200
You can get the debugging signing certificate if you need, and if you manage to add the dynamic links

01:25.200 --> 01:29.120
and Google sign in or phone number support in authentication.

01:29.320 --> 01:38.920
As we said before, we can do it by going to Gradle select Execute Gradle task and here signing report.

01:38.960 --> 01:39.440
Okay.

01:39.760 --> 01:41.600
It's very simple.

01:41.600 --> 01:44.040
We can select this click enter.

01:44.280 --> 01:49.320
And Android Studio will give you the Sha one certificate.

01:49.360 --> 01:51.760
You can copy it and paste it here.

01:51.880 --> 01:52.400
Okay.

01:52.560 --> 01:53.720
This is optional.

01:53.880 --> 01:56.080
We can do it I'll show you guys.

01:56.120 --> 01:59.920
Copy this copy it paste it here.

01:59.920 --> 02:02.800
You can uh this is optional okay.

02:03.120 --> 02:10.240
So you can skip this code, but I prefer if you manage to, uh, add phone number or authentication.

02:10.560 --> 02:13.240
Uh, you need to know it.

02:13.280 --> 02:17.560
Okay, now download the Google Services JSON file.

02:17.600 --> 02:20.760
Copy the file and go to project.

02:20.760 --> 02:22.400
Select project from here.

02:22.560 --> 02:25.320
Go to app folder and paste it.

02:25.360 --> 02:26.720
Please pay attention here.

02:26.720 --> 02:28.920
There is a very important note here.

02:29.160 --> 02:35.200
You should name the file Google Services dot JSON.

02:35.240 --> 02:39.320
Okay, this is exactly what the name of the file.

02:39.440 --> 02:41.440
Click okay and here we go.

02:41.760 --> 02:45.000
This is the file for Google services.

02:45.000 --> 02:46.080
Click next.

02:46.120 --> 02:48.200
Now we need to add the dependencies.

02:48.200 --> 02:52.440
You can select Kotlin DSL which is the default for our project.

02:52.440 --> 02:55.280
And if you are using groovy you can select groovy.

02:55.320 --> 02:59.440
Okay I use the Kotlin DSL.

02:59.600 --> 03:05.120
So copy this this dependency for Google Services Gradle plugin.

03:05.360 --> 03:08.720
We need to place it at the project level.

03:08.720 --> 03:15.200
So go to here select Android Gradle Scripts project and paste it here.

03:15.400 --> 03:24.130
Then we need to add the dependencies, we need to apply this plugin so Gradle file.

03:24.170 --> 03:26.330
From here paste it.

03:26.570 --> 03:29.970
Then we need to add the Firebase Bom.

03:30.250 --> 03:31.450
Scroll down.

03:31.490 --> 03:36.330
The first library is added successfully which is the Firebase Bom.

03:36.370 --> 03:42.890
Now we need to store the markers in Firebase Firestore.

03:43.130 --> 03:45.650
So from here click build.

03:45.930 --> 03:49.330
We need Firebase Firestore database.

03:49.330 --> 03:51.410
Click on it Cloud Firestore.

03:51.450 --> 03:56.610
This is the dashboard which is a real time updates powerful queries and automatic scaling.

03:56.610 --> 03:59.770
And we talked about Firestore in the previous videos.

03:59.770 --> 04:01.850
So click Create Database.

04:02.170 --> 04:03.850
The default click next.

04:03.850 --> 04:08.210
Start in test mode then create.

04:08.210 --> 04:09.250
And here we go.

04:09.690 --> 04:14.050
The database is configured for the Uber clone project.

04:14.290 --> 04:14.770
Okay.

04:15.010 --> 04:18.690
So our Firebase Firestore is created.

04:18.690 --> 04:22.170
Now let's add the dependency for this.

04:22.170 --> 04:27.970
You can go to here and add the Firebase Firestore implementation.

04:27.970 --> 04:29.490
You can search Google.

04:29.490 --> 04:37.370
But thanks for the AI tool AI code completion tool in Android Studio.

04:37.610 --> 04:46.410
It will help you to get the dependencies and uh and fetch the dependencies for the required uh libraries

04:46.450 --> 04:46.930
okay.

04:47.170 --> 04:50.050
Com Google dot Firebase.

04:50.290 --> 04:53.570
What uh what thing we need to add.

04:53.770 --> 04:56.290
You can add an all natural language.

04:56.410 --> 05:05.690
You can add the machine learning um Crashlytics analytics uh and others we are interested in adding

05:05.730 --> 05:10.050
Firebase Dash Fire store okay.

05:10.170 --> 05:19.210
Instead of using the version of the products we can use directly the implementation without specifying

05:19.250 --> 05:22.650
the version because we used the bomb okay.

05:22.970 --> 05:24.290
So sync now.

05:24.410 --> 05:29.930
So congratulations we've added Firebase and Firebase Firestore to our project.
