Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Doggo Discover is an android app built using Jetpack compose and Kotlin. It fetches a list of dogs from Dog API and diplays dog info

Notifications You must be signed in to change notification settings

TomMunyiri/DoggoDiscover

Repository files navigation

DoggoDiscover

An Android dog application implemented using the MVVM Clean Architecture pattern, Retrofit, Koin, Coil, Kotlin Flows, ViewModel, Coroutines, Room, Jetpack Compose, Kotlin DSL and some other libraries from the Android Jetpack . Doggo Discover fetches data from the Dog API to provide dog information.

Downloadable apk:

Download apk here

Architecture

The architecture of this application relies and complies with the following points below:

clean_architecture_image

Technologies used:

  • Jetpack Compose - A modern toolkit for building native Android UI in a declarative way.
  • Gradle Kotlin DSL - An alternative syntax for writing Gradle build scripts using Kotlin.
  • Version Catalogs - A scalable way of maintaining dependencies and plugins in a multi-module project.
  • Retrofit a REST Client for Android which makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based webservice.
  • okhttp3 - Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
  • Koin for dependency injection.
  • Coil - A fast, lightweight, easy to use and modern image loading library.
  • ViewModel to store and manage UI-related data in a lifecycle conscious way.
  • StateFlow to enable flows to emit updated state and emit values to multiple consumers optimally.
  • Kotlin Flow to emit a stream of data with multiple values sequentially.
  • Timber - a logger with a small, extensible API which provides utility on top of Android's normal Log class.
  • Material Design an adaptable system of guidelines, components, and tools that support the best practices of user interface design.
  • Coroutines used to manage the local storage i.e. writing to and reading from the database. Coroutines help in managing background threads and reduces the need for callbacks.
  • Room persistence library which provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.
  • Android KTX which helps to write more concise, idiomatic Kotlin code.
  • Lottie - A mobile library that parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile.
  • Chucker - An HTTP inspector for Android & OkHTTP (like Charles but on device).

Features

  • A composable list of dogs fetched from TheDogAPI.
  • A details screen showing more information about a selected dog.
  • A way to toggle favorites (⭐) for each dog.
  • Separation into layers (Data, Domain, Presentation) with clear responsibilities.
  • ViewModels to manage UI state.
  • Fetch data using Retrofit with Kotlin Coroutines (no blocking calls).
  • Store favorites locally using Room.
  • Koin for dependency injection
  • Coil for image loading
  • Lottie for loading animations
  • Pagination for the dog list
  • Navigation between screens using Jetpack compose navigation with smooth transition animations
  • Some unit tests for Composables, ViewModels, Use Cases, and Repository layers.
  • Error handling using CoroutineExceptionHandler and Throwable extensions to handle network failures

Installation

Doggo Discover requires a minimum API level of 24. Clone the repository. You will need an API key i.e. DOG_API_KEY from Dog API to request data. If you don’t already have an account, you will need to create one in order to request an API Key.

In your project's root directory, inside the local.properties file (create one if unavailable) include the following lines:

DOG_API_KEY="YOUR_API_KEY"
DOG_API_BASE_URL="https://api.thedogapi.com/v1/"
DOG_IMAGE_URL="https://cdn2.thedogapi.com/images/"

Screenshots

Credits

LICENSE

MIT License

Copyright (c) 2025 Tom Munyiri

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Doggo Discover is an android app built using Jetpack compose and Kotlin. It fetches a list of dogs from Dog API and diplays dog info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages