Everything here came from running the account flow against a real Nextcloud rather than from reading the code. Discovery - A typed bare origin now gets the RFC 6764 well-known probe. It was returned as the only candidate, so `https://cloud.example.com` — what people actually type — was PROPFIND'd against the web UI, answered 405, and a working Nextcloud reported as "not a CalDAV server". - A same-host HTTPS→HTTP redirect is put back on TLS instead of refused (`dav` change 7). A Nextcloud behind a TLS-terminating proxy without `overwriteprotocol` builds every redirect with http://, including the /.well-known/caldav hop discovery depends on. Cross-host still throws. - Outcomes carry a `Cause` the UI translates, not the server's own words. "HTTP 405 Method Not Allowed" told someone entering an address nothing, in a language they may not read, from outside strings.xml. - An IPv6 origin keeps its brackets: `HttpUrl.host` returns "fd00::1", so the rebuilt origin did not parse and a homelab address came back as "not an address". Login Flow v2 - The poll response's scheme is coerced, never refused. Nextcloud returns the app password exactly once, so throwing there burned a live credential and left it dangling in the user's device list. The host mismatch already worked this way; the scheme now matches it. Accounts - The accounts screen observes Room and the sign-in state instead of taking a snapshot, so a sync landing — or a 401 stopping an account — reaches a screen that is already open. - A per-account detail screen, and provider identity (`CalDavProvider`) shared with the quirk table so one list drives both the icon and the warning. - The password field masks: floret-kit's `InlineTextField` gained a visual transformation, since `KeyboardType.Password` only tells the IME to drop suggestions.
182 lines
9.9 KiB
TOML
182 lines
9.9 KiB
TOML
[versions]
|
|
agp = "9.2.1"
|
|
kotlin = "2.3.21"
|
|
ksp = "2.3.9"
|
|
hilt = "2.59.2"
|
|
coreKtx = "1.19.0"
|
|
appcompat = "1.7.1"
|
|
lifecycleRuntime = "2.10.0"
|
|
activityCompose = "1.13.0"
|
|
composeBom = "2026.05.01"
|
|
# Material 3 Expressive APIs currently live only in the 1.5 alpha line.
|
|
# Pin explicitly to override the BOM (which ships stable 1.4.0).
|
|
# Re-evaluate when 1.5.0 stable lands.
|
|
material3 = "1.5.0-alpha21"
|
|
datastore = "1.2.1"
|
|
# Room — Agendula's own task store (docs/OWN-STORE.md).
|
|
room = "2.8.4"
|
|
kotlinxSerialization = "1.8.1"
|
|
# SAF directory writing for export/backup (DocumentFile).
|
|
documentfile = "1.1.0"
|
|
junit = "6.1.0"
|
|
junitPlatform = "6.1.0"
|
|
truth = "1.4.5"
|
|
androidxJunit = "1.3.0"
|
|
espressoCore = "3.7.0"
|
|
kotlinxDatetime = "0.7.0"
|
|
kotlinxCoroutines = "1.10.2"
|
|
turbine = "1.2.0"
|
|
# androidx.hilt — one version for the whole group. hilt-work and
|
|
# hilt-navigation-compose splitting versions inside a group is the kind of thing
|
|
# that resolves fine and then fails at runtime.
|
|
androidxHilt = "1.3.0"
|
|
# WorkManager: sync runs here, triggered *through* the sync-adapter framework.
|
|
work = "2.11.2"
|
|
# Custom Tabs, for Nextcloud Login Flow v2.
|
|
browser = "1.10.0"
|
|
navigationCompose = "2.9.0"
|
|
lifecycleCompose = "2.10.0"
|
|
androidxTestRules = "1.7.0"
|
|
# Glance: 1.1.1 is the latest stable (1.2.0 is still rc, 1.3.0 alpha).
|
|
glance = "1.1.1"
|
|
|
|
# --- :dav (vendored dav4jvm) -------------------------------------------------
|
|
# dav4jvm 2.2.1 is the last OkHttp release; 3.0.0 deleted the OkHttp package for
|
|
# Ktor and 4.x additionally requires Java 21 bytecode, which we do not target.
|
|
# See dav/PROVENANCE.md. OkHttp 4.12.0 is what the vendored tree was written
|
|
# against and what DAVx5 ships.
|
|
okhttp = "4.12.0"
|
|
# org.xmlpull.v1 ships in the Android framework, so xpp3 is compileOnly +
|
|
# testImplementation and never reaches the APK.
|
|
xpp3 = "1.1.6"
|
|
|
|
# --- :caldav (our CalDAV protocol layer) -------------------------------------
|
|
# SRV/TXT lookups for RFC 6764 discovery. Android's resolver exposes no SRV API
|
|
# below API 29's DnsResolver (which is callback-only and cannot do TXT paths),
|
|
# and JNDI's DNS provider does not exist on Android at all. dnsjava is what DAVx5
|
|
# uses. BSD-3 — it goes on the attribution screen with the rest.
|
|
dnsjava = "3.6.3"
|
|
|
|
# --- :provider (vendored dmfs task provider) ---------------------------------
|
|
# Versions the upstream 1.4.2 source was written against. These are its runtime
|
|
# dependencies, not ours — nothing above the data layer touches them, and they
|
|
# only move when we deliberately resync the fork. See provider/PROVENANCE.md.
|
|
dmfsJems = "1.43"
|
|
dmfsRfc5545Datetime = "0.2.4"
|
|
dmfsLibRecur = "0.12.2"
|
|
# The provider's own test suite is JUnit 4 + Robolectric, unlike the app's
|
|
# JUnit 5. Kept as upstream wrote it (rewriting ~13 test classes would forfeit
|
|
# the regression coverage that makes vendoring safe), but on current versions:
|
|
# upstream pins Robolectric 3.5.1, which predates AGP's resource handling.
|
|
robolectric = "4.16"
|
|
junit4 = "4.13.2"
|
|
hamcrest = "3.0"
|
|
mockito = "5.20.0"
|
|
|
|
[libraries]
|
|
# AndroidX core
|
|
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
|
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
|
|
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntime" }
|
|
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
|
|
|
|
# Compose BOM + libs
|
|
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
|
|
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
|
|
androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
|
|
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
|
|
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
|
|
androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
|
|
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
|
|
|
|
# Material 3 (Expressive lives in this artifact for 1.5+)
|
|
androidx-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "material3" }
|
|
androidx-compose-material-icons-core = { group = "androidx.compose.material", name = "material-icons-core" }
|
|
androidx-compose-material-icons-extended = { group = "androidx.compose.material", name = "material-icons-extended" }
|
|
|
|
# Hilt
|
|
hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
|
|
hilt-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "hilt" }
|
|
|
|
# Room — the own-store database
|
|
androidx-room-runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" }
|
|
androidx-room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" }
|
|
androidx-room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
|
|
androidx-room-testing = { group = "androidx.room", name = "room-testing", version.ref = "room" }
|
|
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
|
|
|
|
# DataStore
|
|
androidx-datastore-preferences = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastore" }
|
|
|
|
# SAF — writing the export into a user-chosen folder
|
|
androidx-documentfile = { group = "androidx.documentfile", name = "documentfile", version.ref = "documentfile" }
|
|
|
|
# Unit tests
|
|
junit-jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junit" }
|
|
junit-jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junit" }
|
|
junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher", version.ref = "junitPlatform" }
|
|
truth = { group = "com.google.truth", name = "truth", version.ref = "truth" }
|
|
|
|
# Android tests
|
|
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidxJunit" }
|
|
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
|
|
|
|
# Domain time
|
|
kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinxDatetime" }
|
|
|
|
# Coroutines (transitively pulled by hilt-android, pinned explicit)
|
|
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }
|
|
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "kotlinxCoroutines" }
|
|
|
|
# Test - Flow assertions
|
|
turbine = { group = "app.cash.turbine", name = "turbine", version.ref = "turbine" }
|
|
|
|
# Hilt navigation-compose (for hiltViewModel() in Composables)
|
|
androidx-hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navigation-compose", version.ref = "androidxHilt" }
|
|
androidx-hilt-work = { group = "androidx.hilt", name = "hilt-work", version.ref = "androidxHilt" }
|
|
androidx-hilt-compiler = { group = "androidx.hilt", name = "hilt-compiler", version.ref = "androidxHilt" }
|
|
androidx-work-runtime-ktx = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "work" }
|
|
androidx-browser = { group = "androidx.browser", name = "browser", version.ref = "browser" }
|
|
|
|
# Navigation-compose (the NavHost / back stack)
|
|
androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navigationCompose" }
|
|
|
|
# Lifecycle compose (for collectAsStateWithLifecycle)
|
|
androidx-lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycleCompose" }
|
|
# ProcessLifecycleOwner — the WAL checkpoint hangs off ON_STOP.
|
|
androidx-lifecycle-process = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "lifecycleRuntime" }
|
|
|
|
# Glance — Jetpack home-screen widgets (Compose-like RemoteViews)
|
|
androidx-glance-appwidget = { group = "androidx.glance", name = "glance-appwidget", version.ref = "glance" }
|
|
androidx-glance-material3 = { group = "androidx.glance", name = "glance-material3", version.ref = "glance" }
|
|
|
|
# Android tests - GrantPermissionRule
|
|
androidx-test-rules = { group = "androidx.test", name = "rules", version.ref = "androidxTestRules" }
|
|
|
|
# :dav — vendored dav4jvm (see dav/PROVENANCE.md)
|
|
okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp" }
|
|
okhttp-mockwebserver = { group = "com.squareup.okhttp3", name = "mockwebserver", version.ref = "okhttp" }
|
|
# Test-only: MockWebServer over TLS, so an HTTPS-only code path can be exercised.
|
|
okhttp-tls = { group = "com.squareup.okhttp3", name = "okhttp-tls", version.ref = "okhttp" }
|
|
xpp3 = { group = "org.ogce", name = "xpp3", version.ref = "xpp3" }
|
|
|
|
# :caldav — RFC 6764 service discovery
|
|
dnsjava = { group = "dnsjava", name = "dnsjava", version.ref = "dnsjava" }
|
|
|
|
# :provider — vendored dmfs task provider (see provider/PROVENANCE.md)
|
|
dmfs-jems = { group = "org.dmfs", name = "jems", version.ref = "dmfsJems" }
|
|
dmfs-jems-testing = { group = "org.dmfs", name = "jems-testing", version.ref = "dmfsJems" }
|
|
dmfs-rfc5545-datetime = { group = "org.dmfs", name = "rfc5545-datetime", version.ref = "dmfsRfc5545Datetime" }
|
|
dmfs-lib-recur = { group = "org.dmfs", name = "lib-recur", version.ref = "dmfsLibRecur" }
|
|
robolectric = { group = "org.robolectric", name = "robolectric", version.ref = "robolectric" }
|
|
junit4 = { group = "junit", name = "junit", version.ref = "junit4" }
|
|
hamcrest = { group = "org.hamcrest", name = "hamcrest", version.ref = "hamcrest" }
|
|
mockito-core = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" }
|
|
|
|
[plugins]
|
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
|
android-library = { id = "com.android.library", version.ref = "agp" }
|
|
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
|
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
|