A simple android application implementing clean architecture principals with Rick And Morty API
- Change layouts to compose
- Call Api through KTOR
- Change Sharedpref to Datastore
- modularize dependencies
Make sure you have the following environment ready on your device.
-Java Runtime Version 17 -Android Gradle Plugin 8.1.0 -Gradle Version 8.2 -Test Device Used to build and test -> Pixel 6a
clone the github repo in your device and please configure your project as above, the project should run smoothly.
this directory contains all the codes for calling API's
this directory contains logic for disk caching image
contains Repository as single source of truth and viewmodel alone with other model classes
this dir contains all the codes for storeing api data locally at app startUP
the directory that injects diffrent dependencies into other classes when needed
contains the UI poriton of the code
the code that is running at startUp , saving API response and images as cache.