/jetpack-compose-retrofit

Sample Android project showcasing the integration of Jetpack Compose and Retrofit for making API requests in a modern Android application.

Primary LanguageKotlin

ComposeRetrofitSample

License Kotlin Compose Retrofit

Overview

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.

Installation

Clone the repository and open the project in Android Studio.

git clone https://github.com/DevHumbleChris/jetpack-compose-retrofit.git

cd jetpack-compose-retrofit

Add Retrofit dependencies

  1. Open the module-level gradle file build.gradle.kts (Module :app).
  2. 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")