Jetpack Compose Retrofit project is a sample Android project showcasing the integration of Jetpack Compose and Retrofit for making API requests in a modern Android application.
Clone the repository and open the project in Android Studio.
git clone https://github.com/DevHumbleChris/jetpack-compose-retrofit.git
cd jetpack-compose-retrofit
- Open the module-level gradle file
build.gradle.kts (Module :app)
. - In the
dependencies
section, add the following lines for the Retrofit libraries:
// Retrofit
implementation("com.squareup.retrofit2:retrofit:2.9.0")
// Retrofit with Scalar Converter
implementation("com.squareup.retrofit2:converter-scalars:2.9.0")