‫Hello, my friends.
‫And welcome to Paging Gap.
‫In this app, we are going to fetch the movies from that movie db dot org website using the API of course.
‫And we are going to include that paging library in Android studio in order to display all the data and
‫all the movies in a very impressive recycler view that displays the movie and the rating.
‫Of course, following the MVP pattern and we are going to introduce that dagger and hilt.
‫So in this project we are going to combine the MVP, m, that dagger, that paging library that we have
‫learned about it.
‫So we will start by adding that dependencies.
‫So let's go to the Gradle.
‫I have created a new project called Paging App and I will go to build Gradle at the level of the model
‫and I will add.
‫Some dependencies for the libraries.
‫So there are a lot of libraries that we are going to add our friend retrofit.
‫We have seen how to implement it in that previous video, so I will make it fast retrofit and insert
‫the latest version to get the latest version and we click on that get hub symbol and.
‫I can.
‫And here we scroll down for the latest versions and get that 2.9.
‫Points here.
‫Okay.
‫Now, we need, of course, with a retrofit there.
‫The converters.
‫I will use that, Jason.
‫I was grow up.
‫Jason here.
‫I will go to here and implement the juice.
‫And of course.
‫I will use that converter also here.
‫The converter.
‫Going to hear.
‫I used that implementation of converter of Jesus.
‫Okay.
‫And I will add the two points 2.9.0.
‫This is for implementation of retrofit.
‫I would click on sync now in order to start downloading.
‫Like the next library that I'm going to use is called that paging library.
‫That that is the source and the main goal of learning and creating this app.
‫So that paging our library as we have talked about it helps you load and display pages of data from
‫larger data set from local storage or over network.
‫So think about this that the MDB this we have 1 million movie I need for the user when when he used
‫the app he'd need to use only the and display only the first 20.
‫So we are not going to get the 1 million you movie app like at first first and in bulk way this is called
‫bulk way.
‫So I don't need to get and fetch 1 million movie.
‫I need to get only 20 movies according to the demands of that user.
‫So the paging library helps me to make this according at according to the demands of the user from a
‫larger data set, either from local storage or over network.
‫In our case, we are going to use the over network.
‫So I'll scroll down here and that in the set up and I will use this.
‫This is the Paging
‫Paging Library.
‫And here I will use that our ex Java three support for paging.
‫So this is here.
‫And here we have.
‫Introduce the Paging Library version three.
‫So this is one of the rarest things and tutorials on over Internet because many there are a few documentation
‫for the paging three libraries.
‫So you are very lucky to be in our course in order to learn the latest tutorials and latest concepts.
‫Now
‫the next library is called that Health Dagger Hilt Dependency.
‫So go to dagger the dev slash hilt slash gradle set up and we are going to scroll to here or to the
‫health dependencies and implement these.
‫Okay.
‫This is for Hill.
‫Dagger.
‫I click on sync now order to start downloading.
‫Okay.
‫And if you scroll down, here we are, we need to apply that plug ins.
‫So I was copying it.
‫Apply the plugins here.
‫Above.
‫I can put it here.
‫Apply plugins.
‫Okay.
‫And I need to use the class.
‫Class path.
‫Yeah.
‫And that bill that gravel and the project I replaced glass glass path and hear them even central idea
‫show it is already here.
‫I really can't think now.
‫And.
‫Everything should be fine.
‫And as I told you that.
‫That held or the dagger is used for dependency injections.
‫And we have talked about it in many, many videos inside this course.
‫Now, the next library is called The Glide.
‫This is our old friend.
‫This is for displaying the images.
‫I would copy this dependency.
‫I would go to here, scroll and glide.
‫And I read paste sync now and I will check that Google Repository has included inside the Build the
‫Crown Dating app and it's included.
‫Okay.
‫This is how to use the glide.
‫Now.
‫Then the last library that we are going to use is that Android lifecycle and we have seen this in many
‫videos before.
‫I will scroll down to that Java section.
‫This is for the Kotlin section and we will see it in the next course.
‫Is the Android Scotland developer course.
‫I will copy this.
‫And.
‫I will scroll down to hear the life cycle.
‫And I will copy that view model.
‫I will copy this.
‫All this stuff you model and this is the life data.
‫And what they need.
‫And if they persist or.
‫PERIES
‫okay, so I think we are all ready now to sink.
‫And this is the levers that we have implement if we have any any missing library will added throughout
‫the course.
‫Okay.
‫So don't worry.
‫We have added these libraries successfully and we are going to start building our paging.