Repository navigation
v0.7-beta: LightNotes Lite v1.0
LightNotes Lite v1.0 (v0.7-beta) — Sync-Ready Local-First Architecture
Open -> Write -> Read -> Share
Local-first now. Sync-ready by design. Cloud when needed.
LightNotes Lite v1.0 (v0.7-beta) marks a complete architectural reset and modernization, stripping out bloated webview-heavy runtimes and native toolchains in favor of an ultra-fast, local-first technical notebook and developer scratchpad.
📦 APK Size & Footprint Breakdown
| Artifact | Size (Bytes) | Size (MB) | Status |
|---|---|---|---|
app-release.apk |
2,586,741 B | ~2.47 MB | Verified R8 Code & Resource Shrinking (< 2.5 MB) |
app-debug.apk |
8,377,268 B | ~7.99 MB | -38.8% reduction from 13.05 MB baseline |
🚀 Key Improvements & Architectural Reset
1. Stage A Sync-Ready Local-First Architecture
- 4-Layer Decoupled Design: Strict boundary separation across
App UI,Core Domain,Storage Persistence, andPlatform Services. - Portable Domain Models:
Note,Folder,SyncState, andSyncOutboxEventare decoupled from Android and Room annotations. - Non-Destructive Room Migration (
MIGRATION_2_3): 100% of existing notes, folders, timestamps, pinned states, and favorites are preserved. Backfills UUIDglobalId, document revisions, and tombstones while keeping legacy tables intact. - Transactional Local Change-Log (
sync_outbox): Atomic commit of entity writes and mutation events for offline delta replay. - Persistent Device Identity: Anonymous RFC 4122 UUID v4 generated on install and attached to all sync events.
- Architecture Blueprints: Comprehensive specifications in
docs/SYNC_ARCHITECTURE.mdanddocs/ARCHITECTURE.md.
2. Note Editor Overhaul (Open -> Write -> Read -> Share)
- Single Adaptive Chrome: Clean minimal top bar (
Back,Preview / Edit,Share,Overflow Menu) removing competing dual toolbars. - Single Docked Formatting Toolbar: Horizontally scrollable bar docked cleanly above the IME (
Bold,Italic,Heading,Bullets,Numbers,Checklist,Link,Code Block,Quote,Undo,Redo). - Interactive Checklists in Native Preview: Zero WebViews. Tapping
- [ ]/- [x]in preview mode toggles markdown source directly, updates preview in place preserving scroll position, and triggers debounced autosave. - Physical Keyboard Shortcuts: Full support for
Ctrl+B,Ctrl+I,Ctrl+Z, andCtrl+Shift+Z/Ctrl+Y. - Instant Native Sharing (< 100ms): Reads live in-memory buffers immediately. One-tap sharing as clean Plain Text (Markdown stripped) or raw
.mdsource.
3. Search, Folders & Portable Backups
- Offline SQLite FTS4 Search: Title-weighted pure Kotlin
SearchRankerscoring title matches strictly above body matches. - Linear List Default View: Fast, flat Material 3 outlined cards with smooth 144Hz refresh rate animations.
- Portable
lightnotes-backupv1 JSON: Standard, vendor-independent JSON backup and restore with non-destructive merge safety. - Encrypted Backups: Optional AES-256-GCM
.enotesarchives using standardjavax.crypto. - Biometric App Lock: Optional biometric authentication gate, requiring verification before disabling.
4. Bloat & Dependency Pruning
- Zero NDK/JNI: Removed
app/src/main/cpp/and CMake toolchain. - Zero WebViews in Core Workflow: Removed KaTeX and Mermaid bundled web assets and bridges.
- Pruned Libraries: Removed
WorkManager,Coil,ZXing,jlatexmath, andprism4j.
🧪 Automated Test Suite
- 100% pass rate across 5 Robolectric + Espresso JVM test suites:
EditorRegressionTest.ktSearchAndFolderTest.ktSyncOutboxAndMigrationTest.ktBackupAndSecurityTest.ktPerformanceBenchmarkTest.kt