Skip to content

This app demonstrated the use of Retrofit to make REST requests to the web service, kotlinx.serialization to handle the deserialization of the returned JSON to Kotlin data objects, and Coil to load images by URL.

License

Notifications You must be signed in to change notification settings

gitlood/Mars-Photo-Compose

Repository files navigation

Mars Photos

MarsPhotos is a demo app that shows actual images of Mar's surface. These images are real-life photos from Mars captured by NASA's Mars rovers. The data is stored on a Web server as a REST web service.

This app demonstrated the use of Retrofit to make REST requests to the web service, Gson to handle the deserialization of the returned JSON to Kotlin data objects, and Coil to load images by URL.

Pre-requisites

You need to know:

  • How to create Composable functions.
  • How to use architecture components including ViewModel.
  • How to use coroutines for long-running tasks.
  • Familiarity with lazy grid

Getting Started

  1. Install Android Studio, if you don't already have it.
  2. Download the sample.
  3. Import the sample into Android Studio.
  4. Build and run the sample.

About

This app demonstrated the use of Retrofit to make REST requests to the web service, kotlinx.serialization to handle the deserialization of the returned JSON to Kotlin data objects, and Coil to load images by URL.

Topics

Resources

License

Stars

Watchers

Forks

Languages