RedTeapotDating

User Stories

  • Display User Data for RedTeapotDating
  • Hide Viewgroup of User if User Data is not specified
  • Next button retrieves the next User Data in the List
  • When no more data is presented in the list
  • The user will be presented with a Toast notifying them of the lack of data
  • User will not be able to use the next button at the ending of the list.

Android Architecture

  • Model View ViewModel (MVVM)

Problems

Pulling API Data from the Hinge users API did not work

My Solution was just to create a duplicate of the JSON data that you guys provided and move it to my own mock API

Tried Two-Way Databinding for the Users Data through XML Views crashed the APP

  • Im assuming it didnt work because of the fragment calling the data from the list before it was being retrieved from the API

My Solution was to just use the basic concepts of View binding and not use any of the advanced features Data binding provides.

App Walkthough GIF


Open-source libraries used

  • Retrofit 2 - A type-safe HTTP client for Android and Java/Kotlin
  • Retrofit Moshi Converter Moshi is a modern JSON library for Android, Java and Kotlin. It makes it easy to parse JSON into Java and Kotlin classes
  • Jetpack - Jetpack is a suite of libraries to help developers follow best practices, reduce boilerplate code, and write code that works consistently across Android versions and devices so that developers can focus on the code they care about.
  • OkHttpInterceptor - Interceptors are a powerful mechanism that can monitor, rewrite, and retry calls.
  • Coil - An image loading library for Android backed by Kotlin Coroutines. Coil is:
  • Coroutines - A coroutine is a concurrency design pattern that you can use on Android to simplify code that executes asynchronously.