Repository navigation
Releases
LightNotes v1.3.0
⚡ 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 duplicateindex_note_metadata_noteIdindex 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.) viaLIKE ... ESCAPE '\', filters archived notes from favorites/folder/search queries, preservesCREATEoutbox entries and folder unlink tombstones insidedb.withTransaction, improvesHeyTapImporterHTML/date parsing & deterministic IDs, and prevents duplicate-entry collisions in batch ZIP export. - Security & Biometrics: Uses API-aware
BiometricHelperauthenticators (BIOMETRIC_WEAK | DEVICE_CREDENTIALon API 28–29,BIOMETRIC_STRONGon API 30+), locksNoteEditorActivity(exported="false"), disables cloud auto-backup (allowBackup="false"), configures HTTPS-defaultnetwork_security_config.xmlwith 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
homeContentContainerwith 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 outlined28dpM3MaterialCardView, inset surface container body,48dpclose target, and responsiveFlowpill buttons (Copy, Append, Replace Selection / Replace Note). - Resolved Known Editor Issues: Supports Title + Body + Preview Find-in-Note with
offsetDescendantRectToMyCoordsscrolling, Archive/Trash pin guards & Trash Restore / Delete permanently actions,EditHistoryManagersnapshots 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,741bytes) —versionCode = 7,versionName = "1.3.0". - Unit Tests:
43/43tests passing across all 7 Robolectric + Espresso JVM suites (BugFixVerificationTest.ktadded).
LightNotes v1.3A (no-scroll)
⚡ 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(rvFastScrolloverlay on Home list, attach/detach/inset listeners, and per-frame scroll redraws). - Removed custom editor
scrollThumb(View,scroll_thumb_pill.xmldrawable,setupScrollThumb(),triggerScrollThumbOnOpen, and 4sfadeOutRunnablehandler callbacks inNoteEditorActivity). - Preserves standard Android
NestedScrollView/RecyclerViewscrolling alongside everyv1.3.0upgrade:- Room v5 schema hardening (
MIGRATION_4_5), FTS4 escaping, transactional outbox & HeyTap/JSON/.enotesbackup improvements - Static 4-tab fixed home header (
All Notes,Favorites,Archive,Trash) + top-right Folders manager - Outlined
28dpMaterial 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
- Room v5 schema hardening (
Verification & Footprint
- Release APK (
app-release.apk): 2.53 MiB (2,657,889bytes) —versionCode = 8,versionName = "1.3A". - Unit Tests:
42/42tests passing across all 7 Robolectric + Espresso JVM suites.
LightNotes v1.2.1
⚡ LightNotes v1.2.1
Performance & Architecture
- Dedicated
note_metadataIndex Split: Separates lightweight list metadata (title, write-timepreviewtruncated at\nor 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 msp50–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 MiBin-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 AIAppendandReplaceregister cleanly in undo history.
Documentation & Migration
- Added HOW_TO_IMPORT_AND_EXPORT.md with step-by-step export/import guides and a copy-pasteable AI migration prompt for converting notes from external apps.
- Updated docs/USER_GUIDE.md (including current known issues) and docs/ARCHITECTURE.md.
LightNotes Lite v1.2.0
⚡ 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
.zipfile. - 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).
- Share multiple selected notes together as a single
-
🖤 OLED Dark PDF Mode:
- Export notes with a true
#000000pitch-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.
- Export notes with a true
-
📊 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.
- Tidied the editor
Build Metrics
- Release APK Size: 2.50 MB (2,626,034 bytes) — zero external telemetry, zero WebViews, 100% local-first.
LightNotes Lite v1.1
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
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