Skip to content
CAI
Software that uses CAICheck a score

drakeet/MultiType

60.9

Adequate · 13 November 2026

2.8k

lines of production code

Kotlin

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add sample app demonstrating multi-type list capabilities

The sample application now includes a comprehensive set of demo activities showcasing the library's features, including a main menu for navigation, a normal list with text and image items, a complex Bilibili-style layout with headers and horizontal scrolls, a one-to-many data binding example, and a payload-based update demonstration. These additions provide practical examples of using ViewDelegates, ItemViewBinders, and nested RecyclerViews within the sample app.

sample/src/main/kotlin · high confidence

Initial project scaffolding and CI configuration

The repository was initialized with core project files including a Travis CI configuration for Android testing, a CHANGELOG tracking releases from 1.1-beta1 through 4.2.0, and standard documentation (README, CONTRIBUTING, LICENSE). The diff also includes a checkstyle.xml for code style enforcement, a findbugs.xml filter, and updated Gradle wrapper scripts (gradlew, gradlew.bat) that now include Apache 2.0 license headers and improved path resolution logic.

(repo-wide) · high confidence

Simplified view binding with ViewDelegate and ItemViewBinder

The library introduces new base classes to simplify view binding. A new \ViewDelegate\ abstract class allows developers to bind views without managing \RecyclerView.ViewHolder\ boilerplate, automatically handling view holder creation and binding. Additionally, an \ItemViewBinder\ class is added as a compatible, simpler alternative to \ItemViewDelegate\, providing a more straightforward API for creating view binders. These changes streamline the process of creating custom item views by reducing the amount of code required to manage view holders and bind data to views.

library/src/main/kotlin · high confidence

Architecture

Migrated library to Kotlin and updated module documentation

The library has been migrated to Kotlin, a significant architectural shift for the project. Additionally, the module description in module.md has been updated to reflect the new package name (me.drakeet.multitype) and the library's purpose. The proguard-rules.pro file has been removed, likely because ProGuard rules are now handled differently in the new build configuration or language setup.

library · medium confidence

Behavioural changes

The library has removed several legacy classes including ItemContent, ItemType, ItemTypeFactory, ItemTypePool, ItemTypesAdapter, ItemViewProvider, and Savable. This cleanup eliminates deprecated APIs and simplifies the internal architecture, meaning developers must update their code to use the new multi-type adapter interface.

library/src/main/java · high confidence

Removed obsolete sample code using deprecated API

The sample application's main activity has been removed from the codebase. This eliminates the use of the deprecated \ItemType\ and \ItemTypeFactory\ API in favor of the modern \register\-based approach demonstrated in other sample files, ensuring the sample code aligns with current library usage patterns.

sample/src/main/java/me/drakeet/multitype/sample/page · high confidence

Removed sample item implementations

The sample application's item content and view provider classes for Text, Image, and Rich items have been removed. This eliminates the sample's demonstration of how to implement custom item types and view providers within the multitype library.

sample/src/main/java/me/drakeet/multitype/sample · high confidence

Test coverage

Added Android UI tests for the sample app; Added unit tests for the multitype library components; Removed Android instrumentation test; Removed obsolete unit test file.

Dependencies

Updated Gradle wrapper to version 6.8.2

The Gradle wrapper has been upgraded from version 2.10 to 6.8.2, which may require users to update their local Gradle installation or rely on the new wrapper for building the project.

gradle · high confidence

Upgraded Android build system and dependencies to modern standards

The project has been migrated to AndroidX, updated to compileSdkVersion 30, and upgraded the Android Gradle Plugin to 4.2.1 with Kotlin 1.4.32. Dependencies have been updated to use AndroidX libraries (e.g., androidx.recyclerview, androidx.appcompat) and modern test tools (Robolectric 4.3.1, Truth 1.0). The build configuration now enforces Java 8 compatibility and includes new Gradle scripts for Maven publishing and documentation generation.

(dependencies) · high confidence

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

How this codebase got here

Score

  • CAI 59 → 61 (+2.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 99 → 98 (-0.5)
  • Architecture 100 → 99 (-0.1)
  • Maturity 48 → 47 (-0.4)
  • Readiness 43 → 47 (+4.6)
  • Security 100 → 100 (+0.0)

Resolved (6)

  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • Documentation: no architecture or design documentation (README.md)
  • Duplicate intent with ambiguous parameter substitution. Similar to ItemViewDelegate, having two onCreateView methods differing only by the presence of the parent ViewGroup is inconsistent with standard Android patterns where parent is often required for proper layout inflation, yet here it's optional/overloaded.
  • Duplicate intent with ambiguous parameter substitution. The two methods differ only by Context vs LayoutInflater. In Android, LayoutInflater is typically obtained from Context, making this distinction confusing for users who must choose between them without clear guidance on when to use which.
  • Duplicate intent with redundant parameters. The second method includes the Holder, but the first does not. Since Holder is a wrapper around View, the first method effectively discards holder context. This creates confusion about whether the holder is available or necessary for binding logic.
  • Inconsistent lifecycle method naming and structure compared to ItemViewDelegate. ItemViewDelegate uses onCreateViewHolder/onBindViewHolder, while ViewDelegate uses onCreateViewHolder/onBindView (with view extraction). This split in naming convention (ViewHolder vs View) and method structure (bindViewHolder vs bindView) creates two parallel, confusing APIs for similar concepts.

New (119)

  • Outdated (compile): classworlds:classworlds
  • Outdated (compile): com.almworks.sqlite4java:sqlite4java
  • Outdated (compile): com.google.auto.service:auto-service
  • Outdated (compile): com.google.auto.value:auto-value-annotations
  • Outdated (compile): com.google.auto:auto-common
  • Outdated (compile): com.google.code.gson:gson
  • Outdated (compile): com.google.errorprone:error_prone_annotations
  • Outdated (compile): com.google.guava:failureaccess
  • Outdated (compile): com.google.guava:guava
  • Outdated (compile): com.google.j2objc:j2objc-annotations
  • Outdated (compile): com.google.jimfs:jimfs
  • Outdated (compile): com.google.protobuf:protobuf-java
  • Outdated (compile): com.google.truth:truth
  • Outdated (compile): com.googlecode.json-simple:json-simple
  • Outdated (compile): com.ibm.icu:icu4j
  • Outdated (compile): com.squareup.moshi:moshi
  • Outdated (compile): com.squareup.okhttp3:okhttp
  • Outdated (compile): com.squareup.okio:okio
  • Outdated (compile): com.squareup.osstrich:osstrich
  • Outdated (compile): com.squareup.retrofit2:converter-moshi
  • …and 99 more

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

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

Survey your own repository

drakeet/MultiType 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 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 84cd8fad89b0c6df661f32afae3b090cbf0cb0f5 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.63+preprod-4a8cc97a9484.