Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devhumblechris/jetpack-compose-retrofit
Sample Android project showcasing the integration of Jetpack Compose and Retrofit for making API requests in a modern Android application.
https://github.com/devhumblechris/jetpack-compose-retrofit
Last synced: about 2 months ago
JSON representation
Sample Android project showcasing the integration of Jetpack Compose and Retrofit for making API requests in a modern Android application.
- Host: GitHub
- URL: https://github.com/devhumblechris/jetpack-compose-retrofit
- Owner: DevHumbleChris
- Created: 2024-01-25T16:07:16.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-25T16:31:36.000Z (11 months ago)
- Last Synced: 2024-04-16T17:27:07.763Z (9 months ago)
- Language: Kotlin
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ComposeRetrofitSample
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)
[![Kotlin](https://img.shields.io/badge/Kotlin-1.5.31-orange.svg)](https://kotlinlang.org/)
[![Compose](https://img.shields.io/badge/Compose-1.1.0--beta02-blue.svg)](https://developer.android.com/jetpack/compose)
[![Retrofit](https://img.shields.io/badge/Retrofit-2.9.0-green.svg)](https://square.github.io/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.
```bash
git clone https://github.com/DevHumbleChris/jetpack-compose-retrofit.gitcd 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:```kotlin
// Retrofit
implementation("com.squareup.retrofit2:retrofit:2.9.0")// Retrofit with Scalar Converter
implementation("com.squareup.retrofit2:converter-scalars:2.9.0")
```