When developing an Android application it is important to plan the architecture of the project. This will allow us to create good quality code and easy to maintain applications.
This article will focus on how to use Retrofit with Kotlin Coroutines to call asynchronous REST Api with MVVM architecture.
Set up a new project with Kotlin and other dependencies required:
def lifecycle_version = "2.2.0"