Skip to content

v0.7-beta: LightNotes Lite v1.0

Choose a tag to compare

@mt1240405 mt1240405 released this 23 Nov 21:33
· 18 commits to main since this release

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, and Platform Services.
  • Portable Domain Models: Note, Folder, SyncState, and SyncOutboxEvent are 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 UUID globalId, 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.md and docs/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, and Ctrl+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 .md source.

3. Search, Folders & Portable Backups

  • Offline SQLite FTS4 Search: Title-weighted pure Kotlin SearchRanker scoring title matches strictly above body matches.
  • Linear List Default View: Fast, flat Material 3 outlined cards with smooth 144Hz refresh rate animations.
  • Portable lightnotes-backup v1 JSON: Standard, vendor-independent JSON backup and restore with non-destructive merge safety.
  • Encrypted Backups: Optional AES-256-GCM .enotes archives using standard javax.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, and prism4j.

🧪 Automated Test Suite

  • 100% pass rate across 5 Robolectric + Espresso JVM test suites:
    • EditorRegressionTest.kt
    • SearchAndFolderTest.kt
    • SyncOutboxAndMigrationTest.kt
    • BackupAndSecurityTest.kt
    • PerformanceBenchmarkTest.kt