Skip to content

About

MiryoNotes — an Android application for creating, editing, and managing notes. Developed by MiryoLove.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MiryoNotes

English · Русский

A minimalist, fully offline notes app for Android. Open → create → write → save.

Current version: 1.2.0 — link detection plus a link editor for the address and the display text (see CHANGELOG.md).

  • Author: Мельников Богдан
  • Developer & brand: MiryoLove
  • Website: https://miryolove.org
  • Platform: Android 8.0+ (minSdk 26, targetSdk 34)

MiryoNotes is built with Kotlin, Jetpack Compose and Material 3, stores everything in a local Room database, and never talks to the network. The interface follows the calm, card-based look of Apple Notes: warm paper background, soft rounded cards, a large title, search, and a bottom tab bar.

Features

Notes

  • Create notes in TXT and MD (Markdown is plain text, no visual editor required).
  • Editor with a title field and a growing text area.
  • Autosave with debounce (600 ms), plus an immediate save on back, on background and before archive/delete; a status line shows "Сохранение…" / "Сохранено".
  • Rename, delete (with confirmation), archive.
  • Search across titles and note bodies.
  • Last-modified date on every card, format badge (TXT/MD), word count.

Links inside notes

  • Automatic detection: http/https URLs, www. addresses, bare domains with a real TLD (miryolove.org, пример.рф), e-mail addresses and mailto: links, phone numbers (+7 (999) 123-45-67, +79991234567, 8 999 123-45-67).
  • Detected links are shown blue and underlined while typing and in the read-only Просмотр (preview) mode, with WCAG-AA contrast in both light and dark themes.
  • Tap a link in preview to open it with the standard Android intent: browser for websites, mail app for e-mail (mailto:), dialer for phone numbers (tel:).
  • Long press opens the menu Открыть · Копировать ссылку · Поделиться ссылкой.
  • Punctuation is handled carefully: https://example.com, or (https://example.com) keep the URL intact and never swallow the trailing , . ) » ".
  • Ordinary text is not turned into a link: note.txt, README.md, 1.2.3, 12.05.2026, 1 000 000 and similar stay plain.
  • The note text is never rewritten: highlighting is a pure visual transformation with an identity offset mapping, so the cursor, the selection and the text itself are unchanged.

Editing a link (1.2.0)

  • Single tap on a link in preview opens the menu Открыть · Редактировать ссылку · Копировать ссылку · Поделиться ссылкой.
  • Double tap goes straight to the link editor and never opens the link by accident.
  • The editor shows two fields: Адрес ссылки (what the link opens) and Отображаемый текст (what the reader sees). Both are pre-filled with the current values.
  • Saving replaces only that link in the note; nothing around it changes, and the change is stored immediately through the usual autosave.
  • A display text that differs from the address is stored as a plain-text Markdown inline link [MiryoLove](https://miryolove.org). The reading view collapses it to MiryoLove, while the editor still shows the raw text, so exports, search and the file format stay readable.
  • Markdown links are recognised on their own: [label](https://example.com), [label](<https://example.com/a_(b) c>), bare domains, mailto:, tel: and phone numbers inside the brackets.
  • Additional schemes keep their own meaning: ftp://, ftps://, tg://, whatsapp:, xmpp:, matrix:, geo: and magnet:. Nothing is rewritten to https://.
  • Unicode addresses work in detection, display and opening: https://пример.рф/путь is shown as typed and converted to punycode (xn--e1afmkfd.xn--p1ai) only for the system intent.

Archive

  • Swipe a note right-to-left in the list to reveal Archive and Delete.
  • Archived notes disappear from the main list.
  • Archive tab: open, restore, delete. Restore/delete are undoable through a snackbar.

History

  • Recently opened notes (last 20) and recently modified notes.
  • Per-note version history: every save stores the previous revision (last 30 kept per note) and a previous version can be restored from the editor.

Android integration

  • Registered for ACTION_VIEW of text/plain (.txt) and text/markdown / text/x-markdown (.md), so MiryoNotes appears in "Open with".
  • SAF import (ACTION_OPEN_DOCUMENT) and export (ACTION_CREATE_DOCUMENT) to TXT/MD.
  • Share sheets via FileProvider + ACTION_SEND (the note is written to the app cache and shared as a real .txt/.md file).
  • An opened file is imported as a copy only after confirmation; the original is never modified.

Privacy

No ads, analytics, telemetry, accounts, subscriptions, cloud sync, social or AI features. No INTERNET permission. All notes stay on the device.

Tech stack

Layer Technology
Language Kotlin 1.9.24
UI Jetpack Compose (BOM 2024.06.00), Material 3, own warm theme (light + dark)
Architecture Single Activity, Navigation Compose, ViewModel + StateFlow
Storage Room 2.6.1 (KSP), Flow-based DAO; DataStore Preferences for settings
Async Kotlin Coroutines 1.8.1
Build Gradle 8.7, Android Gradle Plugin 8.5.2, Kotlin DSL

Building from a terminal (no Android Studio)

Requirements:

  • JDK 17
  • Android SDK platform 34 and build-tools 34.0.0
  • Gradle 8.7 (a wrapper is included, so only JDK + SDK are strictly required)

On Arch Linux:

sudo pacman -S --needed jdk17-openjdk
# Android SDK: install command-line tools, then:
sdkmanager "platforms;android-34" "build-tools;34.0.0" "platform-tools"
export ANDROID_HOME="$HOME/Android/Sdk"

Build and test:

./gradlew assembleDebug    # APK -> app/build/outputs/apk/debug/app-debug.apk
./gradlew assembleRelease  # APK -> app/build/outputs/apk/release/app-release.apk
./gradlew test             # unit tests

Release signing is described in BUILD.md: if keystore.properties is present next to settings.gradle.kts, the release APK is signed with that key; otherwise the release build falls back to the debug key so the APK stays installable for testing.

If the wrapper is missing an executable bit, run chmod +x gradlew. Alternatively, with a system Gradle: gradle assembleDebug.

The SDK location is taken from ANDROID_HOME/ANDROID_SDK_ROOT, or from a local local.properties file (sdk.dir=/path/to/Android/Sdk). local.properties is machine-specific and is not part of the archive.

Project structure

MiryoNotes/
├── app/
│   ├── build.gradle.kts
│   └── src/
│       ├── main/
│       │   ├── AndroidManifest.xml
│       │   ├── java/org/miryolove/miryonotes/
│       │   │   ├── MiryoApp.kt              # Application, initializes AppGraph
│       │   │   ├── AppGraph.kt              # manual DI container
│       │   │   ├── MainActivity.kt          # edge-to-edge, theme, ACTION_VIEW intake
│       │   │   ├── data/
│       │   │   │   ├── NoteFormat.kt        # TXT/MD detection
│       │   │   │   ├── NoteRepository.kt    # notes + revisions
│       │   │   │   ├── AppPreferences.kt    # theme mode (DataStore, migrates 1.0.0 prefs)
│       │   │   │   └── db/                  # Room entity, DAOs, database
│       │   │   ├── viewmodel/               # Notes, Archive, History, Editor
│       │   │   ├── ui/
│       │   │   │   ├── MiryoNotesApp.kt     # nav graph, bottom bar, import dialog
│       │   │   │   ├── Routes.kt
│       │   │   │   ├── components/          # NoteCard, swipe row, dialogs, LinkText
│       │   │   │   ├── screens/             # Notes, Archive, History, Editor, About
│       │   │   │   └── theme/               # colors, typography, shapes
│       │   │   └── util/                    # LinkDetector, LinkActions, files, text, dates
│       │   └── res/                         # adaptive icon, themes, strings
│       └── test/java/org/miryolove/miryonotes/   # unit tests
├── build.gradle.kts
├── settings.gradle.kts
├── gradle.properties
├── LICENSE
└── README.md / README.ru.md

Data model

notes — id, title, content, format (TXT/MD), createdAt, updatedAt, lastOpenedAt, archived. note_versions — id, noteId (FK, cascade delete), title, content, savedAt; trimmed to the newest 30 revisions per note.

Tests

./gradlew test runs 108 unit and Robolectric tests (each test class is executed for both the debug and the release variant):

  • 52 detection tests: LinkDetectorTest (26) covers URLs, www, bare and Cyrillic domains, e-mail, mailto:, phone formats, trailing punctuation, brackets, multiple links per paragraph, links on their own line, false positives (note.txt, README.md, 1.2.3, dates, prices) and a 44 000 character performance case; LinkDetector12Test (16) covers Markdown inline links (label, offsets, angle-bracket destinations, bare domains, e-mail and phone destinations, Unicode labels), the extra schemes ftp/tg/tel/sms/geo/magnet, that Note:-style prose is not a link, and Markdown + plain links in one paragraph.
  • 24 presentation tests: LinkPresentationTest (14) checks that plain links keep every character, that [label](url) collapses to the label with separate display/source offsets, that editing only the URL keeps a plain link plain, that a new label produces Markdown, label escaping, angle-bracket wrapping and address validation; LinkVisualTransformationTest (6) proves the text is unchanged, the offset mapping is identity and only spans are added; LinkColorContrastTest (4) checks WCAG-AA link contrast in light and dark themes.
  • 13 LinkActionsTest Robolectric tests: ACTION_VIEW for web, ACTION_SENDTO + mailto: for e-mail, ACTION_DIAL + tel: for phones, sms:/ftp:/tg: schemes, a Markdown link opening its destination rather than its label, punycode conversion for international hosts, intent launch, clipboard copy and the share chooser.
  • 11 end-to-end Compose flows: EditorLinkFlowTest (7) types a note with links, opens a link through the real Intent, copies it from the menu, edits the address, edits the display text and checks the collapsed preview and the raw note text, reopens the note from the list to prove the edit was saved, copies a Markdown link without its syntax, opens a Unicode address and a tel: link; LinkGestureTest (4) checks that a single tap opens the menu, a double tap opens the link editor without starting any activity, Cancel closes it, and system Back closes the editor first.
  • The rest of the suite: format detection, file names, title derivation, snippets, plurals, repository behaviour on fake DAOs, theme persistence (DataStore), migration of the 1.0.0 theme setting, ACTION_VIEW resolution for .txt/.md and the create/type/archive flow.

Author

Мельников Богдан — author. MiryoLove — developer and brand. https://miryolove.org

License

See LICENSE. The license text is maintained by the project owner.

About

MiryoNotes — an Android application for creating, editing, and managing notes. Developed by MiryoLove.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages