Skip to content

Releases

LightNotes v1.3.0

Choose a tag to compare

@mt1240405 mt1240405 released this 04 Dec 06:22

⚡ LightNotes v1.3.0

Note: Use v1.3A for a smoother version without the scroll bars.

Architecture, Database & Reliability

  • Room v5 Schema Hardening (MIGRATION_4_5): Removes dormant Room entities and redundant legacy columns (uuid, previewText, isDeleted, tagsCsv, etc.) plus the duplicate index_note_metadata_noteId index while preserving legacy SQLite tables non-destructively, cutting home-list PSS to 63.7 MiB (192.2 MiB peak RSS) and SQLite memory to 0.62 MiB across 2,396 notes.
  • Search, Export & Backup Fixes: Escapes FTS4 special characters (_, %, #, etc.) via LIKE ... ESCAPE '\', filters archived notes from favorites/folder/search queries, preserves CREATE outbox entries and folder unlink tombstones inside db.withTransaction, improves HeyTapImporter HTML/date parsing & deterministic IDs, and prevents duplicate-entry collisions in batch ZIP export.
  • Security & Biometrics: Uses API-aware BiometricHelper authenticators (BIOMETRIC_WEAK | DEVICE_CREDENTIAL on API 28–29, BIOMETRIC_STRONG on API 30+), locks NoteEditorActivity (exported="false"), disables cloud auto-backup (allowBackup="false"), configures HTTPS-default network_security_config.xml with local LLM exceptions, and moves Settings SAF backup I/O off the Main thread.

UI, Editor & Material 3 Upgrades

  • Static Home Header & 4-Tab Bar: Fixed non-collapsing header/search/folder bar above homeContentContainer with 4 equal-width tabs (All Notes, Favorites, Archive, Trash) plus a top-right Folders button (showAllFoldersDialog) for browsing, creating, renaming, and deleting custom folders.
  • Clamped Non-Blocking Fast Scroller (RecyclerFastScrollView): Spans cleanly from right below the static folder bar to the bottom navigation inset and clamps scrubbing to the last note without blank overscroll (0.00% list-scroll jank at 120 Hz).
  • Material 3 AI Output Modal (dialog_ai_result.xml): Upgraded to an outlined 28dp M3 MaterialCardView, inset surface container body, 48dp close target, and responsive Flow pill buttons (Copy, Append, Replace Selection / Replace Note).
  • Resolved Known Editor Issues: Supports Title + Body + Preview Find-in-Note with offsetDescendantRectToMyCoords scrolling, Archive/Trash pin guards & Trash Restore / Delete permanently actions, EditHistoryManager snapshots on all formatting actions, sequential numbered-list continuation, blank-line-spaced fenced code blocks, and unified Light / OLED Dark XML theme tokens + API 27+ navigation bar contrast.

Verification & Footprint

  • Release APK (app-release.apk): 2.54 MiB (2,658,741 bytes) — versionCode = 7, versionName = "1.3.0".
  • Unit Tests: 43/43 tests passing across all 7 Robolectric + Espresso JVM suites (BugFixVerificationTest.kt added).

LightNotes v1.3A (no-scroll)

Choose a tag to compare

@mt1240405 mt1240405 released this 04 Dec 06:33

⚡ LightNotes v1.3A (no-scroll Branch)

A dedicated variant of LightNotes v1.3.0 built from branch no-scroll with all custom scrollbar/fast-scroll overlay widgets removed to isolate native scrolling CPU and memory overhead.

What Is Removed Compared to v1.3.0 (main)

  • Removed RecyclerFastScrollView.kt (rvFastScroll overlay on Home list, attach/detach/inset listeners, and per-frame scroll redraws).
  • Removed custom editor scrollThumb (View, scroll_thumb_pill.xml drawable, setupScrollThumb(), triggerScrollThumbOnOpen, and 4s fadeOutRunnable handler callbacks in NoteEditorActivity).
  • Preserves standard Android NestedScrollView / RecyclerView scrolling alongside every v1.3.0 upgrade:
    • Room v5 schema hardening (MIGRATION_4_5), FTS4 escaping, transactional outbox & HeyTap/JSON/.enotes backup improvements
    • Static 4-tab fixed home header (All Notes, Favorites, Archive, Trash) + top-right Folders manager
    • Outlined 28dp Material 3 AI Result modal (dialog_ai_result.xml)
    • Unified Day/Night XML tokens, API 27+ nav bar contrast, Find-in-Note coordinate scroll fixes, and all resolved Section 9 issues

Verification & Footprint

  • Release APK (app-release.apk): 2.53 MiB (2,657,889 bytes) — versionCode = 8, versionName = "1.3A".
  • Unit Tests: 42/42 tests passing across all 7 Robolectric + Espresso JVM suites.

LightNotes v1.2.1

Choose a tag to compare

@mt1240405 mt1240405 released this 02 Dec 17:59

⚡ LightNotes v1.2.1

Performance & Architecture

  • Dedicated note_metadata Index Split: Separates lightweight list metadata (title, write-time preview truncated at \n or 100 chars, flags, and checklist counts) from full note bodies, eliminating mid-scroll database reads.
  • Zero-Jank 120 Hz Scrolling: Achieves 0.00% list-scroll jank (99.8% frames ≤ 8 ms, 5 / 5 / 5 / 6 ms p50–p99) across 2,394 notes.
  • Faster Startup & Lower Memory: Cuts cold start mean to 407.0 ms, hot resume mean to 70.5 ms, list CPU to 0.375 ticks/frame, home-list PSS to 76.2 MiB, and SQLite memory to 0.70 MiB.
  • Plain-Text Open & Lazy Markwon Preview: Opens notes directly in plain text and initializes Markwon lazily only when switching to Preview mode (95.1% frames ≤ 8 ms, 1.80% jank, 92.4 MiB in-preview PSS).

AI Assistant & Editor Improvements

  • Responsive AI Result Window: Adjusted dimensions so Append, Replace, and Copy remain visible at all times while keeping long AI responses scrollable.
  • Horizontal Dividers & Undo Support: Appended AI output is wrapped with horizontal dividers (---) above and below, and both AI Append and Replace register cleanly in undo history.

Documentation & Migration

LightNotes Lite v1.2.0

Choose a tag to compare

@mt1240405 mt1240405 released this 24 Nov 20:22

⚡ What's New in LightNotes Lite v1.2.0

📘 New User Guide — Check out the clean, step-by-step guide (also linked directly in Settings) covering writing, checklists, folders, batch ZIP sharing, backups, and optional AI tools.

  • 🗂️ Home Screen Batch Multi-Selection:

    • Long-press any note card or tap the checkmark icon in the top bar to select multiple notes at once.
    • 1-tap Select All, Pin/Unpin, and Delete/Restore across selected notes.
  • 📦 Discrete ZIP Archive Export:

    • Share multiple selected notes together as a single .zip file.
    • Every note is exported as its own separate file (with automatic duplicate-title handling) in your choice of Markdown (.md), Plain Text (.txt), PDF (Light / Print), PDF (OLED Dark), or High-Res Image (.png).
  • 🖤 OLED Dark PDF Mode:

    • Export notes with a true #000000 pitch-black page background, crisp off-white text, dark-styled tables, and amber link accents—available right alongside standard Light / Print PDF in the Share sheet.
  • 📊 Improved Tables & Inline Images in PDF and Preview:

    • Wide multi-column tables now wrap and scale cleanly within A4 PDF pages without right-edge text clipping.
    • Embedded gallery photos render directly inside exported PDFs and appear cleanly in Preview without extra black vertical gaps.
  • 🧭 Compact Overflow Menu & In-App Guide Links:

    • Tidied the editor ⋮ overflow menu into a compact popup and added quick links to the User Guide and GitHub Repository inside Settings.

Build Metrics

  • Release APK Size: 2.50 MB (2,626,034 bytes) — zero external telemetry, zero WebViews, 100% local-first.

LightNotes Lite v1.1

Choose a tag to compare

@mt1240405 mt1240405 released this 24 Nov 12:02

What's New in v1.1

  • True #000000 Zero-Pixel OLED Dark Mode: Pure pitch-black canvas with 1dp hairline borders (#242426) and #FFB200 amber accents.
  • Pinned Undo & Redo: Fixed left of formatting bar, always accessible while typing.
  • Zero-Dependency Export: 1080px rendered PNG note card & standard printable A4 multi-page PDF via native Android Canvas and PdfDocument.
  • Local Inline Images: Pick photos into private storage, rendered with background downsampling to screen width (zero Coil/Glide).
  • Home Screen Shortcuts: Pin any note directly to your Android launcher.
  • Zero-SDK BYOK AI Assistant: Private ~15 KB helper via HttpURLConnection for OpenAI, OpenRouter, Groq, or local Ollama (off by default).
  • Spacious Markdown Tables: Explicit TableTheme with cell padding and styled borders.
  • Ultra-Lightweight Footprint: 2.49 MB Release APK (R8 code and resource shrinking verified).

v0.7-beta: LightNotes Lite v1.0

Choose a tag to compare

@mt1240405 mt1240405 released this 23 Nov 21:33

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