Scanly Documentation
Complete documentation for Scanly v1.0.22 — an offline-first Android document scanner with on-device text search and document signing.
Website: https://www.usescanly.co.in · Google Play: https://play.google.com/store/apps/details?id=in.c1ph3rj.scanly
If you are new to this project, start here. This folder contains everything needed to understand what Scanly is, how users interact with it, and how the codebase is built.
What is Scanly?
Scanly is a local-only document scanner for Android. Users capture or import pages, correct page geometry, apply filters, organize documents, search text recognized on scans, sign PDFs or scanned pages, and export results — all without a backend or cloud sync.
| Attribute | Value |
|---|
| Platform | Android 10+ (API 29), targets API 36 |
| UI | Jetpack Compose + Material 3 |
| Architecture | Single module (:app), clean-architecture-style layers |
| Data | Room database, app-private files, DataStore preferences |
| Processing | CameraX capture, LiteRT multi-model corners + semantic gate, OpenCV filters, on-device text recognition |
| Background work | WorkManager page-text indexing (TextIndexWorker) |
| Export | PDFBox PDFs and image archives; signed PDFs can be saved or shared |
| Distribution | githubRelease (GitHub updates) and playStoreRelease (Play in-app updates) |
| License | AGPL-3.0-only (LICENSE) |
| Current version | 1.0.22 (version code 22) |
Core workflow
Capture or import image
→ Optional physical-document gate
→ Detect document corners (selected LiteRT model) or crop-screen AI Detect / manual handles
→ Perspective correction + filter preset + optional fine adjustments
→ Save as page in a local document
→ Organize in library / groups
→ Search on-device recognized text or open editable extracted text
→ Sign a PDF or add editable marks to a scan
→ Export PDF or share images (save to Downloads/Scanly or custom folder)
Design principles: offline-first, preserve raw captures, treat processed output as derived, keep manual controls when automation fails.
Reading paths
Choose a path based on your goal:
Documentation map
Overview — product context
Architecture — how the app is built
| Document | Contents |
|---|
| overview.md | Layers, packages, DI, connection maps |
| navigation.md | Routes, transitions, user flow diagrams |
| screens.md | Every screen, ViewModel, and responsibility |
| ocr-engines.md | Page text engines (ML Kit, Indra OCR), fallback ladder, crash guard, re-reading |
Data — persistence and storage
Processing — capture, ML, filters, export
Development — build and contribute
| Document | Contents |
|---|
| setup.md | Prerequisites, build commands, release signing |
| running-and-testing.md | Install/run the debug app, emulator/adb, JVM flow tests, device UI automation |
| conventions.md | Layer rules, adding screens, Room migrations |
| testing.md | Test inventory, gaps, how to run tests |
| releasing.md | Version bump checklist, docs to update |
Reference — quick lookup
Releases
| Document | Contents |
|---|
| releases.md | Version policy, current release, links to changelog |
Root-level documents (outside docs/)
These files live at the repository root for GitHub conventions and quick access:
Key source locations
| Area | Path |
|---|
| Entry point | app/src/main/java/in/c1ph3rj/scanly/MainActivity.kt |
| Navigation | app/src/main/java/in/c1ph3rj/scanly/navigation/ |
| Features (UI) | app/src/main/java/in/c1ph3rj/scanly/feature/ |
| Domain logic | app/src/main/java/in/c1ph3rj/scanly/domain/ |
| Data layer | app/src/main/java/in/c1ph3rj/scanly/data/ |
| ML / processing | app/src/main/java/in/c1ph3rj/scanly/core/ |
| Page text | app/src/main/java/in/c1ph3rj/scanly/data/text/ and feature/text/ |
| Signing | app/src/main/java/in/c1ph3rj/scanly/data/sign/ and feature/sign/ |
| Export storage | app/src/main/java/in/c1ph3rj/scanly/data/export/DefaultExportStorageRepository.kt |
| Build config | app/build.gradle.kts, gradle/libs.versions.toml |
| ML models | app/src/main/assets/models/ (Lite/Standard/High/Accurate corners + document gate) |
Screenshots
UI screenshots are in ../screenshots/. The root README.md embeds them for GitHub display.