Android Application for display Comics from https://xkcd.com
- Show current comic
- Next/Previous button
- Simple comic's detail
- Share image and title of a comic
- Favorite comic (cache a comic)
I used Kotlin, Jetpack Compose and MVVM architecture.
cache
: database and query methods.
di
: dependency injection modules.
model
: models.
network
: retrofit service and interactors.
presentation
: components, navigation, them and ui.
and alson I wrote simple junit test to check getComic class that fetch data from network.
To run tests, run the following command in project directory (Mac)
./gradlew app:test --daemon
Kotling, Jetpack Compose, Hilt, Retrofit, Room, Junit