Git Product home page Git Product logo

my-pokedex's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.