Skip to content
CAI
Software that uses CAICheck a score

burhanrashid52/PhotoEditor

59.9

Adequate · 13 November 2026

5.2k

lines of production code

Kotlin

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Android photo editing library and sample application that enables users to annotate images with text, shapes, and drawings. It provides core editing capabilities including brush strokes, erasing, emoji insertion, and precise text positioning, supported by undo and redo functionality. The codebase has been modernized to Kotlin with comprehensive instrumentation and unit tests to verify these interactive features.

Removals

Removal of legacy PhotoEditorSDK implementation and supporting files

The \photoeditorsdk\ module has removed the legacy \PhotoEditorSDK\ implementation and all its associated components, including the \BrushDrawingView\, \MultiTouchListener\, \ScaleGestureDetector\, and \Vector2D\ classes, as well as the \OnPhotoEditorSDKListener\ interface, \ViewType\ enum, and related layout resources. This change eliminates the previous brush, text, image, and emoji editing capabilities provided by this specific SDK version, effectively removing the product feature that allowed users to add and manipulate these elements on photos within this module.

photoeditorsdk · high confidence

Removal of legacy sample and helper components

The \app/src/main/java/com/burhanrashid52/imageeditor\ package has removed several legacy classes that were part of the sample application or internal helpers: \BarChart.java\, \ColorPickerAdapter.java\, \DrawView.java\, \EditImageActivity.java\, and \MainActivity.java\. This cleanup eliminates unused drawing views, color picker adapters, and the previous image editing activity implementation from the source tree.

app/src/main/java/com/burhanrashid52/imageeditor · high confidence

Behavioural changes

Photo editor app converted to Kotlin with new UI components and undo/redo controls

The photo editing sample app has been rewritten in Kotlin, introducing several new UI components and behavioral improvements. A new ColorPickerAdapter provides a horizontal list of preset colors for text, shapes, and filters. The editing interface now includes a ShapeBSFragment that allows users to draw lines, arrows, ovals, rectangles, or freehand brush strokes. Text editing has been enhanced with a tap-to-place positioning system via a dedicated overlay and a new TextEditorDialogFragment. The main EditImageActivity now features Undo and Redo buttons that are automatically disabled when there is no action to undo or redo, and image saving has been migrated from AsyncTask to Kotlin coroutines for better lifecycle management.

app/src/main/java/com/burhanrashid52/photoediting · high confidence

Text placement now supports tap-to-position and explicit coordinates

Developers can now place text labels at specific locations on the image rather than having them always centered. The \PhotoEditor.addText()\ API accepts an optional \Position\ parameter to define the initial coordinates, and the sample app demonstrates a tap-to-place interaction where users tap the image to set the text location before entering the content. This change removes the previous limitation that forced text insertion to the center of the canvas.

(repo-wide) · high confidence

Test coverage

Added instrumentation tests for DrawingView behavior and API; Added instrumentation tests for photo editing interactions; Added unit tests and migrated test code to Kotlin; Removed obsolete instrumented test.

Dependencies

Gradle wrapper upgraded to version 8.9

The project's Gradle wrapper has been updated from version 4.1 to 8.9. This upgrade brings modern build performance improvements and compatibility with newer Android Gradle Plugin versions, while also adding network timeout and distribution validation settings for more reliable builds.

gradle · high confidence

Migrate to AndroidX, modernize build tooling, and switch Maven publishing to Central Portal

The project has been upgraded to compile and target SDK 34, migrated from the legacy Android Support libraries to AndroidX, and updated to use Kotlin 2.0.0, Gradle 8.5.1, and Android Gradle Plugin 8.5.1. The old \photoeditorsdk\ module was removed and replaced by the \photoeditor\ module, which now includes dependencies for coroutines, Glide, and Material components. Additionally, the library's publishing infrastructure has moved from Jcenter/Bintray to Maven Central via the Gradle Nexus Publish Plugin, and the demo app now references the local \photoeditor\ implementation for easier testing.

(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 57 → 60 (+2.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 96 → 96 (-0.5)
  • Architecture 95 → 95 (+0.0)
  • Maturity 58 → 56 (-1.8)
  • Readiness 44 → 50 (+5.1)
  • Security 64 → 64 (+0.0)
  • Performance 88 → 100 (+12.0)

Resolved (10)

  • Conflicting listener patterns for view lifecycle. BrushDrawingStateListener and BrushViewChangeListener provide granular, view-specific callbacks (onViewAdd, onStartDrawing) that appear to overlap significantly in intent (tracking drawing activity). Meanwhile, OnPhotoEditorListener provides a higher-level, aggregated callback (onAddViewListener) with counts. The distinction between BrushDrawingStateListener and BrushViewChangeListener is particularly unclear as their method signatures are identical.
  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Duplicate operation on different layers. Similar to brushEraser, both the controller (PhotoEditor) and the view (DrawingView) expose methods to clear content (clearAllViews vs clearAll). This suggests a lack of clear separation of concerns or redundant API surface.
  • Duplicate operation on different layers. PhotoEditor (the high-level controller) and DrawingView (the low-level UI component) both expose brushEraser(). It is unclear if calling the method on PhotoEditor delegates to the view, or if they perform distinct operations. This creates ambiguity for the caller regarding which object owns the state.
  • Duplicated block (12 lines × 2) (app/src/main/java/com/burhanrashid52/photoediting/EmojiBSFragment.kt)
  • Inconsistent parameter ordering and mixing of concerns in overloads. The editText overloads mix specific style parameters (Typeface, Color) with a general TextStyleBuilder. The second overload places textTypeface before inputText, while the third places styleBuilder last. This forces users to memorize specific signatures rather than following a consistent pattern (e.g., always view, text, style...).
  • No ADRs found
  • Off-boarding risk: anonymized user #1

New (103)

  • Dependency hygiene PARTLY measured — Gradle build resolved part of the dependency graph, currency reported but not scored
  • Duplicated block (11 lines × 3) (photoeditor/src/main/java/ja/burhanrashid52/photoeditor/shape/LineShape.kt)
  • Duplicated block (12 lines × 2) (app/src/main/java/com/burhanrashid52/photoediting/EmojiBSFragment.kt)
  • Edited copy of a member (14 corresponding lines) (app/src/main/java/com/burhanrashid52/photoediting/EditImageActivity.kt)
  • Edited copy of a member (18 corresponding lines) (app/src/main/java/com/burhanrashid52/photoediting/EmojiBSFragment.kt)
  • No ADRs found (app/build.gradle)
  • Off-boarding risk: anonymized user #1
  • Outdated (compile): com.github.bumptech.glide:annotations
  • Outdated (compile): com.github.bumptech.glide:disklrucache
  • Outdated (compile): com.github.bumptech.glide:gifdecoder
  • Outdated (compile): com.github.bumptech.glide:glide
  • Outdated (compile): com.google.api.grpc:proto-google-common-protos
  • Outdated (compile): com.google.auto.value:auto-value-annotations
  • Outdated (compile): com.google.code.gson:gson
  • Outdated (compile): com.google.crypto.tink:tink
  • Outdated (compile): com.google.errorprone:error_prone_annotation
  • 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
  • …and 83 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

burhanrashid52/PhotoEditor 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 4a6967d3067d37010f9673034db27f53cf70e449 — 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.