feat: v0.4.2.0 — voice notes (Opus 32 kbps mono), toolbar reorder, backup-first release notes
dev / Build debug APK (push) Successful in 57s
release / Build & attach release APK (push) Successful in 1m31s

Voice notes: record in-note via framework MediaRecorder; takes stored as compact Opus-in-Ogg (.opus, 32 kbps, single channel, 48 kHz) on API 29+ with AAC/.m4a fallback on API 26-28; MediaPlayer bar with Download to system Downloads. Editor toolbar reordered Photo / Voice / Attach / Tasks / Shopping list, hashtag justified flush right. Release notes across README / PREVIOUS_HISTORY / ReleaseNotes / CONTRIBUTING / Development Plan now open every release with a back-up-before-installing warning (standing convention). versionCode 38, versionName 0.4.2.0, APP_VERSION lockstep; assembleDebug + assembleRelease green.
This commit is contained in:
Incido Developer committed 2026-09-23 16:56:57 +12:00
1 parent 1d97376aef
commit f87ca17ded
18 files changed
+1012 -59

No files matched your search

@@ -38,6 +38,13 @@ data class Note(
/** Convenience: the first image attachment, or `null` if none. */
val firstImageAttachment: NoteAttachment?
get() = attachments.firstOrNull { it.isImage }
/**
* v0.4.2.0 — Convenience: the first audio attachment (the note's
* voice take, see [NoteType.VOICE_NOTE]), or `null` if none.
*/
val firstAudioAttachment: NoteAttachment?
get() = attachments.firstOrNull { it.mimeType.startsWith("audio/") }
companion object {
/** Shown when a note's content has no usable first line. */
const val UNTITLED = "Untitled"
@@ -24,4 +24,7 @@ data class NoteAttachment(
) {
/** Convenience: true for any image-prefixed mime type. */
val isImage: Boolean get() = mimeType.startsWith("image/")
/** v0.4.2.0 — true for any audio-prefixed mime type (voice-note take). */
val isAudio: Boolean get() = mimeType.startsWith("audio/")
}
@@ -21,7 +21,16 @@ enum class NoteType(val storageKey: Short, val displayName: String) {
TASK_LIST(1, "Task List"),
/** Checklist plus a per-item cost (number pad) and a running total. */
SHOPPING_LIST(2, "Shopping List");
SHOPPING_LIST(2, "Shopping List"),
/**
* v0.4.2.0 — a note carrying a voice recording. The body stays a
* plain text field (title = first line, exactly like [TEXT]); the
* audio itself is an ordinary audio-prefixed attachment (see
* [Note.firstAudioAttachment]), rendered by the editor's audio
* player bar directly above the body.
*/
VOICE_NOTE(3, "Voice Note");
companion object {
/** Convert from the stored [Short] back to the enum, defaulting to [TEXT]. */