Quick Links

IncomeAPI class - Defines the Retrofit @GET API request with a single function

DTO classes - This package Stores the converted Kotlin Objects from the JSON String

Repository Implementation class - Repository Code with Single Source of Truth, simply makes the api request and catches errors if any

App Module - Dependency injection module to create Retrofit, client, logging and use cases

ViewModel Class - This class holds the state

Model Class - Has the relevant data fields, uses BigDecimal as well as LocalDateTime

Mapper Functions - Converts the very bulky Data Transfer Objects (DTOs) to model classes which has the data that we will display to the user

DateUtilFunctions - Converts date JSON String to LocalDateTime and then back to formatted Human Readable Dates

String Value XML - Nothing fancy here, just XML string resources with placeholders to easitly format BigDecimal, specify currency/dollar symbol and put those 2 decimal places

ReceiptItemComposable - Quick Composable file to reader the data points, nothing to worry about if you are not familiar with Compose, XML will do the same stuff

Screenshots

These are the results when I ran the app on my Emulator.

           

Do Reach Out :

Twitter

Cheers!!