Creating the app’s structure and modules
In this section, we’ll lay the foundation for our Packtflix app by organizing it into feature modules. As we have seen before, by dividing the app into modules such as login, list, and playback, we can work on one feature at a time without affecting the others and speed up the build process for larger projects. Additionally, we’ll set up a version catalog for our dependencies as we did before to streamline the management of libraries such as Jetpack Compose, Dagger Hilt, and Kotlin.
Let’s start creating the project. In Android Studio, select File | New | New Project…, and choose Empty Compose Activity. Then, in the New Project panel, fill out Name, Package name, and Save location. For the Minimum SKD option, we will choose API 29 again as it guarantees the best percentage of compatibility at the time of writing.
Figure 7.1: New project configuration for Packtflix
The options...