Skip to content
CAI
Software that uses CAICheck a score

happysingh23828/Android-Clean-Architecture

54.2

Adequate · 21 September 2026

1.8k

lines of production code

Kotlin

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Android movie application structured around Clean Architecture, separating concerns into distinct modules for domain, data, remote, cache, and presentation. It provides functionality to browse popular movies, view cast and crew details, and save favorites to a local cache. The architecture leverages dependency injection and a repository pattern to manage data flow between the UI, business logic, and external APIs.

Features

Added movie caching layer with 5-minute expiration

A new cache module has been introduced to store and retrieve movie data locally using Room. This includes a \MoviesCacheImp\ implementation that handles saving, fetching, and bookmarking movies, along with a 5-minute cache expiration policy. The update also adds the necessary database models, data access objects, and entity mappers to support this caching behavior.

cache · high confidence

Added movie list and bookmarking capabilities to the presentation layer

The presentation module now includes the core components for displaying a list of movies and managing their bookmark status. This includes the MovieListViewModel to handle fetching movie data and processing bookmark changes, the MovieMapper to convert domain models to view models, and the MovieView data class. Additionally, unit tests have been added for the MovieMapper and MovieListViewModel to verify the mapping logic and state transitions.

presentation · high confidence

Added movie listing and credits retrieval via the remote layer

Users can now fetch popular movies and retrieve movie credits (cast and crew) through the remote layer. This change introduces the MoviesRemoteImp implementation, which uses a new MoviesService (built with Retrofit and RxJava2) to call the 'movie/popular' and 'movie/{id}/credits' endpoints. The update also includes data models (e.g., MovieModel, CastModel, CrewModel) and entity mappers that convert API responses into domain entities, along with corresponding unit tests for the remote implementation and mappers.

remote/src · high confidence

Centralized dependency and version management for the build system

The buildSrc module now includes a centralized configuration for all project dependencies and versions. A new \Dependencies.kt\ file defines all library coordinates (e.g., Dagger, Retrofit, Glide, AndroidX, Room) and plugin IDs, while \Version.kt\ holds the corresponding version numbers. This change allows for easier updates to libraries and ensures consistent versions across the project's build scripts.

buildSrc · high confidence

Domain layer introduces use cases and repository interfaces for movie data

The domain layer now includes abstract base classes for use cases (Single, Completable, Flowable, Observable) that standardize how business logic is executed on background threads. Specific use cases for retrieving movie lists, fetching movie credits, and bookmarking/unbookmarking movies have been added, along with the corresponding MovieRepository interface defining the data contract. This establishes the core logic layer for the app's movie features.

domain · high confidence

Introduce data layer with movie caching and remote data stores

The application now includes a new data layer that manages movie data through a factory pattern, allowing the app to switch between cache and remote data sources. This includes a \MovieDataRepository\ that handles popular movies, movie credits, and bookmarking, alongside mappers for cast, crew, and movie lists. The implementation supports caching popular movies and bookmarks, with a \MovieDataStoreFactory\ that decides whether to use cached or remote data based on cache expiration. Tests have been added for the mappers and data stores.

data · high confidence

Introduced clean architecture with dependency injection and a new movie list screen

The app now uses a clean architecture with Dagger 2 for dependency injection, enabling features like caching and a bookmarking system. A new MovieListActivity displays a list of movies with support for bookmarking, while the previous MainActivity has been removed. The change also adds utility extensions for view visibility and toast messages.

app/src/main/java · medium confidence

Behavioural changes

1 commit (0 fixes) modifying files

A change to existing behaviour in files — 1 commit, 2 files.

files · medium confidence · unverified

Test coverage

Updated test imports and assertions

The Android and unit test files have been updated to use specific JUnit assertions (e.g., assertEquals) and updated test runner imports (AndroidJUnit4), replacing wildcard imports with explicit ones. This change improves code clarity and ensures the tests rely on specific method signatures rather than all available assertions.

app/src/androidTest · high confidence

Dependencies

Introduce Clean Architecture module structure and dependency management

The project has been restructured into a multi-module Android application following a Clean Architecture pattern, introducing separate Gradle modules for domain, data, remote, cache, and presentation layers. Each module now has its own build configuration and dependency declarations, with the app module wiring them together. The root build script now applies code quality tools (Detekt, ktlint) and JaCoCo for test coverage reporting. This change establishes the foundational build and dependency structure for the application's architecture.

(dependencies) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 51 → 54 (+3.0)
  • Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 100 → 86 (-13.7)
  • Maturity 73 → 73 (+0.0)
  • Readiness 57 → 57 (+0.0)
  • Security 65 → 95 (+30.2)
  • Domain Modelling 33 → 36 (+2.2)

Resolved (14)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • No exposed public API
  • Test reliability not included
  • The README contains only a banner and a single bulleted How-to section; it does not describe what Clean Architecture this app demonstrates (e.g., the four layers, modules, or the domain/presentation/remote boundaries). (README.md)
  • early-stage repository — too few commits for a meaningful bus factor
  • early-stage repository — too little history to judge knowledge freshness

New (15)

  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • Documentation: no contributor guidance (README.md)
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • No dependency advisory monitoring
  • Workflow token permissions not restricted

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

happysingh23828/Android-Clean-Architecture was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 63777c3d98929b31294719a99c9bf0ae4d7cd616 — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-fa71c66cabd8.