Code Monkey home page Code Monkey logo

multimodulemovies's Introduction

Multi-Module Movies

Multi-Module Movies is a The Movie DB project that demonstrates how to build a scalable multi-module architecture for Android apps that use Jetpack Compose.

image screenshots

How to build locally

Add your API key in local.properties file.

tmdb_api_key=API_KEY

Materials

Learn more about this project from the publications linked below.

Technologies

The codebase is written in Kotlin language with Jetpack Compose as a primary UI framework.
In addition, the following technologies are used in the project:

  • Compose Paging - for displaying paginated UI lists.
  • Coil - for loading images.
  • Compose Navigation - for navigating between features.
  • Kotlin Coroutines - for concurrency.
  • Dagger - for dependency injection.
  • Retrofit - for networking.
  • Room - for persistence and offline mode.

Architecture

The project implements a scalable multi-module architecture that aims to achieve the following goals:

  • Separation of concerns - strict isolation and separation of logic between features for easier testability and maintainability of a codebase.
  • Scalability - the architecture is applicable for projects that use hundreds or thousands Gradle/Bazel modules.
  • Dependency graph optimization - allows keeping a developer productivity on a decent level by preventing long build times and ensuring efficient incremental builds.

All the project modules could be separated into 3 types:

  • Feature modules - which hold a logic related to a specific feature and consist of API and Impl modules. Former are framework-agnostic and hold lightweight interfaces as feature entry points.
  • Library modules - commonly used logic by other features.
  • Injector modules - modules that build a dependency graph of the app. E.g. app module.

Feature module architecture

multimodulemovies's People

Contributors

morfly avatar

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.