Skip to content

My Pokedex is a demo app based on Clean Architecture (Repository pattern) and MVI pattern with Uniflow

Notifications You must be signed in to change notification settings

vincenzosarnataro/My-Pokedex

Repository files navigation

My Pokedex

My Pokedex is a demo app based on Clean Architecture (Repository pattern) and MVI pattern with Uniflow


Open-source libraries

  1. Coroutines + Flow for asynchronous.
  2. Uniflow Simple Unidirectional Data Flow.
  3. Koin for DI.
  4. Moshi JSON library.
  5. Retrofit2 & OkHttp3 for the REST APIs and paging network data.
  6. Glide, GlidePalette for loading images.
  7. Paging 3 for display pages of data from a larger dataset from local storage or over network.
  8. Room persistence library
  9. Why-Not-Image-Carousel for slidershow images

Nice features

  • Offline
  • Dark Mode support
  • Unit test
  • Android 12 splash screen support
  • New Android Jetpack Paging

Testing

  • For launch all Unit Tests use gradlew testDebugUnitTest
  • For launch all Instrumental Tests use gradlew connectedAndroidTest

Architecture

There are 3 layer in this app. App module import all layer just for resolve the DI in Application Class

Presentation Layer Domain Layer Data Layer
ui/view entity data source, dto
viewmodel usecase repository implementation
ui model repository interface library config(retrofit/room)

clean

App Level Example

Presentation Layer Something in Between Domain Layer Data Layer Outer data layer
PokemonDetailActivity & PokemonDetailViewModel <- GetPokemonDetailUseCase -> <- PokemonRepository (interface) -> <- PokemonRepositoryImplementation RemoteDataSource & CacheDataSource

Design

MAD Score

summary kotlin jetpack

About

My Pokedex is a demo app based on Clean Architecture (Repository pattern) and MVI pattern with Uniflow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages