Nond ? ?

Nond is a classic image loader and cacher based on the LruCache.If you want to use it, you can simply clone it and import Nond module in your project.Or you can wait till we will publish it in the mavenCentral() and u can use it as an external dependency.

Project Structure

  • language – kotlin, java
  • architecture – designed by MVVM
  • dependency injection – Hilt
  • networking – Retrofit, okHttp
  • test – JUnit, Mockk, Coroutines Test, MockWebServer, UI Test(Partially)
  • UI – androidX

Screenshots

Logic behind the Nond

Nond it is a light-weight library. You should call loadImage extension for ImageView’s that’s all. The logic behind the extension is following Nond will create for u his own ImageReuest builder using your url and target view after that it will be passed to the next stage and next stage is ImageLoading for that we have an image Laoder based on okhttp so once resonse come and it succeed otherwise the downloader coroutine will throw non-fatal HttpException so when it succeed your picture will be stored to the cache automatically, as a key of cache we are using the hash of your url. Next time when you will fetch the same url result will we given from the cache.

Enjoy ?

GitHub

View Github