Skip to content
CAI
Software that uses CAICheck a score

ChadCSong/ShineButton

65.6

Adequate · 13 November 2026

1.4k

lines of production code

Kotlin

with Java

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Demo app updated with Material 3 theming, dynamic colors, and new demo screens

The demo application now uses the Material 3 (Material You) theme, enabling dynamic colors via DynamicColors.applyToActivitiesIfAvailable in the App class. The main screen now includes a VectorDrawable-based ShineButton and buttons to navigate to new demo activities: a ListDemoActivity that displays a ListView of ShineButtons, a FragmentDemo that shows a fragment with ShineButtons, and a DialogDemo that places a ShineButton inside a Dialog. These additions provide updated examples of the ShineButton in list, fragment, and dialog contexts.

app/src · high confidence

ShineButton library migrated to Kotlin with new Compose integration

The ShineButton library has been rewritten in Kotlin, introducing new classes such as PorterImageView, PorterShapeImageView, and ShineButton. A new Jetpack Compose implementation, ShineButtonCompose, has been added to support modern Android UI development. The change also includes a local implementation of the QuartOutInterpolator to replace an external dependency, and adds unit tests for the interpolator and ShineParams.

shinebuttonlib/src · medium confidence

Behavioural changes

Added ProGuard configuration for ShineButton library

A new ProGuard rules file (proguard-rules.pro) was added to the shinebuttonlib module. This configuration ensures that the ShineButton custom view, its associated ShineParams class, and the OnCheckedChangeListener interface are preserved during code shrinking and obfuscation, preventing runtime errors caused by minification.

shinebuttonlib · medium confidence

Project modernization and documentation overhaul

The repository has been modernized with a new \.editorconfig\ for consistent code styling, a \.travis.yml\ for automated Android builds, and updated \.gitignore\ rules. Documentation is significantly improved with a comprehensive \README.md\ covering installation, usage, and features, alongside a new \CHANGELOG.md\ and \CONTRIBUTING.md\ files to guide contributors.

(repo-wide) · high confidence

Dependencies

Updated Gradle wrapper to version 7.5.1

The Gradle wrapper has been updated to use Gradle 7.5.1, ensuring the project uses a specific, modernized version of the Gradle build tool for consistent builds.

gradle · high confidence

Upgrade Android build configuration and dependencies

The project's build configuration has been updated to target Android SDK 34 and Java 8, with the library module now supporting Jetpack Compose via the Compose BOM and Kotlin 1.7.20. Dependencies have been modernized to AndroidX (e.g., AppCompat 1.6.1, Material 1.11.0) and Gradle 7.4.2, enabling the use of modern Android development features.

(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 68 → 66 (-2.7)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 98 → 97 (-1.1)
  • Architecture 97 → 97 (+0.0)
  • Maturity 58 → 62 (+4.4)
  • Readiness 58 → 50 (-8.0)
  • Security 97 → 97 (+0.0)

Resolved (6)

  • Ambiguous color setting methods. It is unclear if these set different aspects of the button's color (e.g., stroke vs fill) or if they are redundant aliases for the same underlying property. Without documentation, a developer cannot know which to use for a general color change.
  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • Documentation: no architecture or design documentation (README.md)
  • Duplicated block (17 lines × 2) (shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/ShineButtonCompose.kt)
  • Inconsistent animation triggering. ShineButton has a showAnim() method, while the visual component ShineView has showAnimation(). It is unclear if these are meant to be called interchangeably or if one delegates to the other. The naming convention differs (showAnim vs showAnimation), and the scope is ambiguous (does ShineButton.showAnim() trigger the view's animation internally?).
  • No ADRs found

New (31)

  • Duplicated block (17 lines × 2) (shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/ShineButtonCompose.kt)
  • Edited copy of a member (19 corresponding lines) (shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/ShineButtonCompose.kt)
  • No ADRs found (app/build.gradle)
  • Outdated (compile): com.google.errorprone:error_prone_annotations
  • Outdated (compile): com.google.guava:listenablefuture
  • Outdated (compile): net.java.dev.jna:jna
  • Outdated (compile): org.hamcrest:hamcrest-core
  • Outdated (compile): org.jacoco:org.jacoco.agent
  • Outdated (compile): org.jacoco:org.jacoco.ant
  • Outdated (compile): org.jacoco:org.jacoco.core
  • Outdated (compile): org.jacoco:org.jacoco.report
  • Outdated (compile): org.jetbrains.kotlin:kotlin-bom
  • Outdated (compile): org.jetbrains.kotlin:kotlin-compiler-embeddable
  • Outdated (compile): org.jetbrains.kotlin:kotlin-daemon-embeddable
  • Outdated (compile): org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable
  • Outdated (compile): org.jetbrains.kotlin:kotlin-reflect
  • Outdated (compile): org.jetbrains.kotlin:kotlin-script-runtime
  • Outdated (compile): org.jetbrains.kotlin:kotlin-stdlib
  • Outdated (compile): org.jetbrains.kotlin:kotlin-stdlib-common
  • Outdated (compile): org.jetbrains.kotlin:kotlin-stdlib-jdk7
  • …and 11 more

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

Survey your own repository

ChadCSong/ShineButton 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 91983d10e451ed1a294b1556283a6ac274c30c76 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — 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.64+preprod-569132d3dfbe.