All checks were successful
CI / ci (push) Successful in 8m33s
Floret is promoted to the family / design-language (shared-kit) name; the
tasks app itself becomes Agendula (de.jeanlucmakiola.agendula) — agenda
('things to be done') + Calendula's -ula, a twin of the Calendula name.
Renames the package, namespace, applicationId, rootProject.name, app_name,
FloretApp/FloretNavHost/FloretTransitions classes, theme, F-Droid metadata
dir, CI artifact name, and docs. The botanical word 'florets' is preserved in
the name-origin prose, which is rewritten to Agendula's etymology. Clean
build + unit tests green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
39 lines
878 B
Kotlin
39 lines
878 B
Kotlin
package de.jeanlucmakiola.agendula.domain
|
|
|
|
import kotlin.time.Instant
|
|
|
|
/** Builds a [Task] for tests with sensible defaults; override what matters. */
|
|
fun testTask(
|
|
id: Long = 1,
|
|
listId: Long = 1,
|
|
title: String = "task",
|
|
status: TaskStatus = TaskStatus.NEEDS_ACTION,
|
|
priority: Priority = Priority.NONE,
|
|
due: Instant? = null,
|
|
): Task = Task(
|
|
id = id,
|
|
taskId = id,
|
|
listId = listId,
|
|
title = title,
|
|
description = null,
|
|
location = null,
|
|
url = null,
|
|
priority = priority,
|
|
status = status,
|
|
percentComplete = null,
|
|
start = null,
|
|
due = due,
|
|
isAllDay = false,
|
|
timeZone = null,
|
|
completedAt = null,
|
|
listColor = 0,
|
|
taskColor = null,
|
|
listName = null,
|
|
accountName = null,
|
|
parentId = null,
|
|
isRecurring = false,
|
|
distanceFromCurrent = 0,
|
|
created = null,
|
|
lastModified = null,
|
|
)
|