Try the alpha

Choose your platform.

Connect your existing Nextcloud account. Android, Linux and Windows builds are ready to try.

Alpha software: keep another copy of important data. macOS is a packaging preview without sign-in; iOS is planned.

Release notes and checksums
Documentation
nati.ve documentation

Repository documentation

Platform architecture

How Android, Linux, Windows and macOS share domain rules while keeping native system integrations, and how iOS would fit later.

Reading time 39 minutesRepository file PLATFORMS.md View source
On this page

This document defines which code is shared across platforms and which code belongs to one operating system. Read it before adding a source file, moving code between source sets, or implementing a platform service. Shared code must not erase native security, lifecycle, accessibility, or filesystem behavior.

Last reviewed: 2026-10-02. The implementation and release availability may have changed since then. The GitHub Releases page is the source of truth for published artifacts and their limitations. Planned work and acceptance gates live in ROADMAP.md.

Layers

The app is built from four layers. Only the last one is platform-specific.

  1. Semantic compiler. The Kotlin compiler turns discovered app contracts into the schema the app renders. The Rust crate keeps a smaller reference model; see schema ownership.
  2. Shared repositories. Kotlin repositories own account state, caching, pagination, conflicts, and actions.
  3. Shared Compose UI. Compose components render semantic workflows without HTML.
  4. Platform launchers and services. Each platform owns lifecycle, layout adaptation, secure storage, background work, files, notifications, media, sharing, and packaging.

Modules and source sets

Last reviewed: 2026-10-17. This section describes where code lives; the code may have changed since, and the default branch is the source of truth. The Gradle build has three modules (settings.gradle.kts); the Rust crate is built separately.

Location What it owns
ui/src/commonMain Platform-neutral models, policies, repositories, the dynamic descriptor compiler (nativeui/model), the native renderer (nativeui/runtime), and Compose screens. The NextcloudPlatformServices interface is declared here.
ui/src/jvmMain Code that is identical on Android and desktop: OkHttp request helpers, the authenticated app-read session, the App Store contract acquisition boundary, detached downloads, resumable uploads, text-draft encryption, and support diagnostics.
ui/src/androidMain Android actual implementations used by the shared UI, such as audio and video playback services, image decoding, back handling, the embedded Office editor, and server certificate trust.
ui/src/desktopMain The complete desktop platform: DesktopNextcloudServices, secret stores, the desktop sync engine and its SQLite stores, Linux FUSE virtual files, Windows Cloud Files, tray integration, in-app video playback through vlcj and libVLC, and packaging resources.
androidApp/src/main The Android application: MainActivity, AndroidNextcloudServices, Keystore-backed credentials, WorkManager workers, NextcloudDocumentsProvider, folder sync, media backup, and share-target activities.
contractAcquisition A plain Kotlin/JVM module that verifies signed App Store packages and extracts app contracts. androidApp and both ui JVM targets depend on it, so shared jvmMain code can translate its results; commonMain does not.
src/ (Rust crate) The reference schema and descriptor compiler, plus the Windows Explorer shell registrar binary that the desktop Windows package bundles. The Rust compiler is not linked into the app.

jvmMain is not a separate Kotlin Multiplatform source set. The ui build adds src/jvmMain/kotlin as an extra source directory to both androidMain and desktopMain, so each target compiles its own copy of that code. Files named *.jvm.kt there provide one actual implementation for both targets. Because the code is compiled for Android too, it must work on the Android runtime as well as on desktop JVMs.

Android platform services live in the androidApp module, not in ui/src/androidMain. Desktop platform services live in ui/src/desktopMain. That asymmetry is why some Android and desktop implementations look alike without being in a shared source set.

Shared code ownership status

This subsection records which Android and desktop implementations are shared and which remain duplicated, with their migration status. Keep entries scoped to code that exists in source and link each one to its tracking issue.

AGENTS.md forbids byte-identical Android and desktop source files. Code that behaves identically on both JVM targets belongs in ui/src/jvmMain. Code that differs because of lifecycle, storage, or operating-system APIs stays in the platform module, with the difference documented and tested.

Last reviewed: 2026-10-17. This is a source inventory, not a plan. The code may have changed since; the default branch is the source of truth. Similarity figures came from comparing function bodies on 2026-10-02 after removing the Android and Desktop name prefixes, and were not remeasured on the review date.

Already shared. All Compose UI, the sync domain model (planning, conflicts, checkpoints), groupware and media DAV models, virtual-file eviction policy, and the NextcloudPlatformServices interface live in commonMain. Both service containers implement that interface. Talk chat requests, response parsing, capability gating, and write recovery live in commonMain (TalkChatProtocol.kt, TalkChatController.kt); each platform only forwards a reviewed TalkTransportRequest to executeTalkRequest. jvmMain shares login and authenticated request policy, application read sessions, App Store contract acquisition results and failures, cancellable Talk reads and long polls (JvmTalkTransport.kt), detached downloads, the resumable chunk-upload state machine, staging-space reservations, support diagnostics and intake, text-draft encryption, and WebDAV href decoding.

Still duplicated. The gap is below the shared interface: each platform has its own HTTP request code, protocol adapters, XML parsers, and sync executor.

Priority Area Android Desktop Shared owner to aim for
High Protocol adapters and HTTP request code. About 57 functions are at least 90% similar; desktop has template functions Android lacks AndroidNextcloudServices.kt DesktopNextcloudServices.kt One jvmMain HTTP gateway plus typed per-domain adapters in commonMain
High WebDAV and XML parsing, written four ways with different hardening SafeXmlParser.kt, NextcloudDocumentWebDav.kt DocumentBuilderFactory setups in DesktopNextcloudServices.kt and DesktopFileVersionDav.kt, DesktopFileSyncDavParser.kt One hardened parser and typed multistatus parsers in jvmMain, with Android runtime tests
High Same-origin redirect rule, written three times AndroidNextcloudRedirect.kt DesktopNextcloudServices.kt NextcloudAuthenticatedRequestPolicy in jvmMain
High Folder sync execution and owned-upload reconciliation. Behavior differs: when a folder replaces a remote file, desktop keeps a backup and Android does not; desktop records the uploaded ETag and Android rescans AndroidFileSyncEngine.kt, AndroidFileSyncRemoteTree.kt, NextcloudChunkUploadWebDav.kt DesktopFileSyncEngine.kt, DesktopFileSyncRemoteTree.kt, DesktopFileSyncChunkUploadRemote.kt Step by step: a jvmMain owned-stage reconciler, then one WebDAV file client, then a commonMain orchestrator. Each step needs restart, conflict, cancellation, and ambiguous-result tests
Medium Sync persistence. Desktop uses SQLite; Android stores encoded blobs AndroidFileSyncStore.kt, AndroidFileSyncUploadCleanupStore.kt DesktopFileSyncStore.kt and related stores A commonMain SQLite store with a tested one-time Android migration
Medium Dynamic discovery cache. Most of the logic is identical AndroidDynamicDiscoveryCache.kt DesktopDynamicDiscoveryCache.kt One jvmMain cache
Medium Deck card draft codec, capacity, and migration policy AndroidDeckCardDraftStore.kt DesktopDeckCardDraftStore.kt commonMain policy behind a storage port
Medium File read cache. Android skips leased entries during eviction; desktop eviction has no lease check AndroidFileReadCache.kt, AndroidVirtualFileCache.kt DesktopFileReadCache.kt A jvmMain blob store
Medium Account removal stages and journals Four AndroidAccountRemoval* files DesktopAccountRemoval.kt A commonMain removal state machine
Medium Pure policy kept in platform code AndroidFileSyncContentEvidence.kt DesktopFileSyncRetryPolicy.kt, DesktopFileSyncBatchResult.kt, DesktopFileSyncContentSlices.kt commonMain
Low Small identical helpers: streaming multipart body, document-editing capability parsing, bounded reads, sha256Hex copies, update-channel preferences Several files Several files jvmMain

Intentionally platform-specific. Credential storage (Keystore versus Secret Service, Credential Manager, and Keychain), local file access (SAF and MediaStore versus java.nio), virtual files (DocumentsProvider versus FUSE and Windows Cloud Files), background scheduling (WorkManager versus the desktop tray and runtime conditions), and external file launch. Only the logic around them, such as range hashing and handoff validation, should be shared.

Test gap. jvmMain code is tested only by desktopTest; Android unit tests do not run it. Several suites exist once per platform and should merge when the code they test is shared: dynamic discovery cache, Deck draft store, account operation guard, file read cache, and file sync store.

Check gap. The byte-identical check in tools/check-kotlin-architecture.sh compares only same-named files in ui/src/androidMain and ui/src/desktopMain. Most Android platform code lives in androidApp, and its files carry an Android prefix, so the check cannot detect the duplicates listed above.

Platform status

This table describes the repository at the review date. It is not a support guarantee. A platform supports a workflow only after that workflow's platform acceptance tests pass and its limitations are recorded in COMPATIBILITY.md. Packaging alone is not feature parity.

Platform Runtime State in source and packaging Platform-specific direction
Android Compose Multiplatform Active launcher; signed alpha APK and AAB. Source includes Keystore-backed credentials, WorkManager workers, a DocumentsProvider, selected-folder sync, media backup, Media3 playback sessions, and share targets. System notifications and push, calls, and the platform acceptance gates in the roadmap
Linux Compose Desktop Primary interactive desktop target; alpha RPM and DEB. Source includes Secret Service storage through secret-tool, a StatusNotifier tray, selected-folder sync, and a FUSE virtual filesystem (LinuxVirtualFileSystem.kt). Portals, notifications, media keys, and conventional sync roots
Windows Compose Desktop Unsigned x86-64 MSI with Credential Manager storage, build provenance, and a Cloud Files provider (WindowsCloudFilesProvider.kt) under prerelease qualification. Explorer validation, trusted signing when available, notifications, media controls, and updates
macOS Compose Desktop Early DMG packaging artifact. Keychain storage (MacOsKeychainSecretStore) is present in source and unit-tested, but authenticated use has not been live-validated or qualified. Keychain, File Provider and Finder integration, notifications, media controls, and updates
iOS / iPadOS None No iOS target exists in the Gradle build and no launcher is shipped. Keychain, File Provider, background transfer, share extension, notifications, media, and CallKit

Standard CI builds Android packages and runs Android unit tests. It does not run connected-device instrumentation, although instrumented tests exist under androidApp/src/androidTest. A package or a passing unit-test job is not evidence that device acceptance criteria have passed.

Shared boundaries

These rules decide where new code goes:

  • Shared modules must not import Android, Apple, Windows, macOS, or Linux APIs.
  • Platform services implement interfaces owned by shared domain code.
  • Protocol parsing, permission rules, sync policy, retries, conflicts, and account identity belong in shared code. Move existing duplication toward that boundary instead of designing a new platform-specific copy.
  • Credentials stay inside the platform credential store.
  • Filesystem providers and sync roots expose shared file and transfer semantics while keeping each operating system's native provider model.
  • Shared Compose components carry behavior and semantics. Platform layouts may arrange them differently.

Shared application read session

Android and desktop use the same JVM adapter for dynamic application reads, including native audio stream requests (JvmAuthenticatedAppReadSession.kt).

  • Playback refreshes an expired session per request on a stream worker, and cancelling the stream cancels its preparation.
  • Account retirement clears pending Android requests and stops the matching MediaSession queue. Leaving a screen does not stop background playback.
  • Desktop retirement cancels the matching download and disposes its player and staged file.
  • Queue identities prevent a delayed cleanup from stopping a replacement queue.

Deterministic JVM tests cover cookie rotation, path isolation, credential replacement, cancellation, and retirement. They do not establish Android device or live-server compatibility; that evidence belongs in COMPATIBILITY.md.

Shared workspace components

This section describes behavior present in source, not availability in a published package. Shared rendering and deterministic tests do not prove identical input handling on every operating system or touchpad; native-device interaction validation is still required.

Navigation and app shell

  • NextcloudCollectionWorkspaceScaffold uses the same typed destinations and selection callbacks in every layout. Compact layouts use short text tabs for small destination sets. For larger sets, the workspace title opens a section chooser, which adds search above seven sections. Tablets and desktop keep rails and collapsible sidebars. Changing section never bypasses the host's draft or mutation navigation guards.
  • The app shell uses Home on every platform. On phone and tablet, the Apps navigation slot names the open app and opens an app switcher with pinned and recent apps, installed-app search, Folder sync, and the full catalog. Opening the switcher keeps the workspace mounted, and switching apps still uses the host's guarded callbacks.
  • A phone-to-tablet layout change moves the same workspace composition, so local drafts survive within the running session.
  • Desktop sidebars collapse on request and below 900dp. Both widths keep pinned, recent, and current apps with labeled controls and full-name tooltips. Settings and the account entry share a utility footer that scrolls in short windows. Collapse state is a saved presentation preference, not a server setting.
  • The desktop sidebar sits on the window background beside a bordered workspace panel. The sidebar, bottom bar, and rail share one selection style (nextcloudSelectionColors): a soft accent tint, an accent icon, and a heavier label, so selection does not rely on color alone. Sidebar tooltips name the keyboard shortcut for each destination that has one, such as Ctrl+1 for Home.
  • Photos, Talk, Calendar, Deck, Folder sync, and the Apps catalog each set an app accent (NextcloudAppAccentFamily) for the shell and workspace. Home, Activity, Settings, Files, and apps without a family keep the brand mint. The accent replaces only Material's primary roles; status colors never change. Navigation selection colors glide to the new accent, while the workspace switches on the frame its entrance starts. A deterministic test checks WCAG AA contrast for every accent in light and dark themes.
  • Shell motion uses shared tokens in NextcloudMotion. The desktop sidebar draws one selection highlight (NextcloudSelectionHighlightState) that springs to the selected entry. App sidebars use the same highlight: the Photos library, the Files places list, the Folder sync sections, and the section list of dynamic apps. Other selected rows, cards, and segments fade between their colors with nextcloudAnimatedColor. The desktop sidebar width animates when it collapses or expands, switching entry layout at the midpoint. Switching root destinations or apps fades the workspace in with a small rise in every layout. The workspace stays one composition during the entrance, so drafts and saved state are never duplicated. Android follows the system "Remove animations" setting through LocalNextcloudReducedMotion, which turns these animations off. Desktop has no reduced-motion source yet and keeps full motion.
  • Desktop detail panes for Files, Calendar, Deck, Contacts, and Tasks slide in from the side when they open and out when they close. Choosing another item in an open pane, including the always-visible Folder sync inspector, slides its details in from the side. On phones, Deck card, Folder sync pair, contact, and task details open in NextcloudDetailSheet, a bottom sheet over the board or list that closes with Back, Escape, Close, or a tap outside, and reopens after recreation from the saved selection. Narrow desktop windows keep the Deck card, contact, and task dialogs and the full Folder sync page. File info stays a full page because of its version history and restore flow, and Calendar event details stay in place because Edit continues in the same page with keyboard input and draft guards.
  • Lists keyed by stable ids use nextcloudItemMotion: new items fade in and moved items glide into place in the Files list and grid, transfers, Talk conversations, Deck cards, the Apps catalog, and the desktop sync table. Lists that replace every item at once, such as another folder or transfer page, skip the fade-out so rows never overlap. Deck cards skip the fade-out and stop gliding during a drag, so drop targets never read moving bounds. The phone sync list is not lazy and has no item motion. Reduced motion turns item motion off. Dynamic app lists, grids, tables, and boards use the same motion without fade-out, and stop gliding during a drag.
  • Workspace states share NextcloudStatusState, NextcloudLoadingState, and NextcloudSkeleton (in design/NextcloudStatusState.kt). Empty and error states are centered with an icon, a title, and their action, and ease in. First loads wait briefly before appearing, so fast or cached loads do not flash; list and grid screens, including dynamic apps, show placeholders shaped like the coming content, announced as one busy indicator. Content refreshing in place shows NextcloudRefreshBar, which eases open and closed. A refresh failure over content that is still shown uses RetainedContentNotice instead of a full error state.
  • In-app section switches ease in the new content: Photos destinations, desktop Settings sections, Calendar Month, Week, Day, and Agenda views, and dynamic app views, record details, the inline editor, and content that finished loading. Segmented controls spring a shared selection pill between options. Details, insights, and inventory disclosures in dynamic apps unfold with NextcloudDisclosureContent and a turning chevron, and record details keep their open state across recreation.
  • Navigation inside an app follows its direction (AppRouteTransitions.kt): opening a folder, a full-page detail such as file info, a chat, a note, or an editor slides in from the end, and going back slides the previous page in from the start. Full-page details move over the whole window, while routes inside the shell move only the workspace. Switching apps or root destinations keeps the shell's rise instead. Dynamic apps slide the same way between views, records, and the inline editor, and fade in content that finished loading. Reduced motion places pages at once.
  • The media viewer opens over the screen it came from instead of replacing it (MediaViewerZoom.kt), so the timeline, album, or folder below keeps its place and scroll position. The tapped thumbnail grows into the photo's fitted place while the screen behind darkens, and stands in for the photo until the viewer's own image loads. Closing, with Back, Escape, or Close, shrinks the photo now shown back into its tile, or fades out when that tile is not on screen. Thumbnails in the timeline, albums, people, folder stacks, media collections, and the Files grid are zoom sources. While the viewer is open, the screen below takes no pointer input, keyboard focus cannot move into it, and it is hidden from accessibility services. Reduced motion opens and closes the viewer at once.
  • Feed readers (any app whose contract exposes feeds and articles) show filters and feeds in a rail beside the article list and reader from 980dp, a rail beside the list or reader from 680dp, and filter chips above the list on narrower screens, where system back closes the open article. A filtered list says in one line that it covers only the loaded articles. The selected filter and feed survive recreation; the open article does not. Item-state rule recovery uses encrypted account-scoped draft storage on Android and desktop, with a shared JVM safety-store owner. Pending operations survive restart and remain separate from optimistic UI state. This source slice has synthetic shared/JVM coverage. On an isolated API 36 emulator, TextEditorDraftStorageInstrumentedTest also verified encrypted store recreation, orphan recovery cleanup, pending and other-account draft retention, and account retirement using Android Keystore and app-private storage. That storage test does not qualify feed UI lifecycle or live servers (Last reviewed: 2026-11-06; see the implementation boundary, which may change).
  • Managed board LABEL commands use the same encrypted draft and safety stores as feed rules, with shared typed membership postconditions. Synthetic planner, executor, recovery and board-controller tests cover this source slice. No new emulator/device, live Deck or packaged-artifact qualification is claimed. Existing API 36 Boolean/storage evidence does not qualify label picker lifecycle or the new recovery envelope on a device (Last reviewed: 2026-11-07; may change; see the implementation boundary).
  • Mailboxes (any app whose contract exposes accounts, mailboxes, and messages) use the shared mailbox workspace. When the contract describes a send operation, a Compose button opens a composer that fills the screen on compact layouts and is a dialog on wider ones; Reply, Reply all, and Forward sit with the opened message. Closing a draft with content needs a separate discard confirmation, and sending again after an unconfirmed result needs its own confirmation. The draft and any running send belong to a per-account owner outside every screen, so closing the composer, leaving the workspace, or recreating the activity neither cancels a send nor loses the draft. The draft is saved shortly after each edit to the encrypted, account-scoped text draft storage that the text editor uses, and restored after process death; an attempt is recorded before its request starts, so a send interrupted by process death comes back as unconfirmed. Drafts are never written to saved instance state, and removing the account deletes them.
  • Text shown on both sides of a navigation carries across it (NextcloudSharedElements). A conversation's name flies from the Talk list into the chat header, a file's name from the Files list into file details, the inspector, the editor, or preview, and the same for note titles, Deck cards and their inspector, calendar events and their inspector, and Settings sections and their header. In dynamic apps, a record's title in a list, grid, board, task, recipe, contact, media, ledger, mailbox, table, or inventory card flies to the detail headline, and a record opened into its children carries its name into the app header. Detail headlines use the resource the selection named, because a detail read often belongs to another resource than its list. The element is drawn above both screens while it travels, so neither screen is composed twice. Only arrivals right after a navigation fly, so lists scrolling items back into view do not, and elements in dialogs or sheets do not. An element removed by a navigation waits up to two seconds for its counterpart, so a detail that loads before showing its title still receives it. Reduced motion turns this off.
  • Content chosen from an ordered set moves toward the side that was picked: Calendar views, Photos destinations, and the sync inspector's tabs slide from the right for a later tab and from the left for an earlier one, and desktop Settings sections rise or fall with the section list. Loaded thumbnails and cover art fade in over their placeholders, refresh notices fade in, and grouped Activity and file version history unfold with a turning chevron.
  • Toggles animate: NextcloudFilterChip eases its fill, label, icon, and outline between states and widens smoothly for its check mark, and NextcloudAnimatedIcon pops in a changed icon such as favorite, play and pause, layout, or search. Material switches, checkboxes, and radio buttons keep their built-in motion.
  • A dynamic app view never shows the previous view's records while its own load is pending; it shows its loading state until its data arrives.
  • Each dynamic app location, a view together with the record it was opened for, keeps its own list and grid scroll position (GenericRendererLocationScope). Opening a record or child collection starts at its top, and Back returns to the parent's position, including after the navigation history is restored. Saved keys contain a digest instead of record ids, and only the most recent locations are retained.
  • The compact Apps browser is a searchable list with category filters and pinned shortcuts. Long labels truncate explicitly and the header grows with text size. Desktop keeps its catalog grid. App tiles open directly; pinning and compatibility details are in overflow menus.

Media

  • MediaImageCanvas shares bounded zoom and pan across touch, mouse, touchpad, keyboard, and visible controls. Pinch or double-tap zooms, and scrolling zooms around the pointer. With keyboard focus, + and - zoom, 0 fits, 1 shows actual size, and arrow keys pan while zoomed. At fit size, Left and Right move to the previous or next item.
  • Fit and 1:1 controls distinguish fitting the window from one decoded pixel per viewport pixel. Percentages describe the decoded image, not an original that has not been loaded. These controls never edit the source image.
  • Photos places the date scrubber over edge-to-edge timeline content. The thumb and narrow rail keep date navigation while the surrounding area still accepts photo taps.
  • An open album has an actions menu in its header. Owners can rename or delete the album; collaborators can leave a shared album. Each change is confirmed separately, never addresses the original files, and is followed by a fresh read of the album list. The viewer's actions include Favorite, which sets the Files favorite explicitly instead of toggling a possibly stale value. NativeMediaAlbumManagementTest covers the album plans.

Files, Activity, and Folder sync

  • Desktop Files can hide the library or details pane. At intermediate widths only one secondary pane is shown, so the file list stays usable.
  • Activity separates actionable notices from the rest of the event history. Settings opens account details on demand.
  • The Activity destination opens on a Notifications inbox when the server advertises the Notifications app, with a switch to the Activity history. Phone layouts show the list with pull-to-refresh and replace it with the selected notification, returning on system back. Windows 840dp and wider, including desktop, keep the list beside a detail pane. Inline action buttons appear only for actions the server advertised; DELETE actions and Dismiss all need a separate confirmation. The bottom bar, navigation rail, and desktop sidebar badge Activity with the number of notifications the server still lists. That count is read when the account opens, when the inbox opens, and on refresh; there is no background polling, push, or system notification yet. The settings buttons in the inbox and in Activity open a native Notification settings screen instead of the browser. It lists what this app does with the server and describes the Notifications and Activity settings read-only, because neither app offers an API to read them. NotificationsInboxScreenTest covers the phone and desktop layouts, the settings screen, and the badge semantics.
  • Files has a Deleted files view, opened from the desktop library pane or the phone Files menu, when the server advertises files.undelete. Items can be restored to their original folder one at a time or as a selection. Delete permanently and Empty ask for a separate confirmation and are hidden when the server sets files.delete_from_trash to false. Every batch is verified with a fresh listing, and an item whose result could not be checked stays locked until the next listing.
  • Select items in the Files menu opens a multi-select list for the visible items with Favorite, Move, Copy, and Delete. Moves and copies keep the item's ETag precondition and never overwrite; deletes use the same per-item fence and verified outcome as a single delete. A result card lists what completed, what failed, and what is safe to try again.
  • File details on phones and the desktop inspector show tags and comments. Tags marked assignable can be added or removed and new public tags created; comments can be posted, and your own comments edited or deleted after a confirmation. A post with an unknown result is checked against a fresh read before it can be sent again. These Files additions are covered by deterministic tests (FileTrashbin*Test, FileBulkOperationsTest, FileCommentsTest, FileSystemTagAssignmentsTest).
  • Folder sync shows queue state and last scan time separately. A completed scan is never presented as a completed sync. Phone pair rows open dedicated details; desktop keeps a pair table and inspector. Conflict choices explain their consequences before the existing confirmation and revision checks.
  • Last reviewed: 2026-11-13. Android folder sync retains typed scan failures and saved pairs while account discovery is unavailable. Writes remain disabled until identity is available. The selected pair and detail tab survive recreation, settings saves, and layout changes; long phone lists are virtualized. Android's Settings editor changes direction, conflict, deletion, connection, power, and device-label policies with explicit Apply and discard confirmation. It preserves content-selection rules and rejects stale edits. These are source behaviors, not a claim of availability in a published build. The state may have changed; see the current work and published releases.
  • Storage distinguishes integration availability, connection state, and retained edits. Transfer history uses the verified receipt time for completed uploads.

Editors

  • Existing Calendar events and editable dynamic records use in-place workspace editors with the same fields, validation, and mutation paths as their dialog versions. Save and Cancel stay with the form. A dirty draft needs an explicit discard decision before navigation, and a pending save blocks leaving. Creation, pickers, and short confirmations may still use dialogs.
  • Notes uses an editor toolbar with Save outside the scrolling content. In short windows, title and folder controls move into an accessible Details dialog. Shared Markdown typography uses content-sized headings in Notes, Files, Deck, and Talk. NoteEditorContentTest covers the short-window controls and preservation of temporary form values.
  • Contact detail bodies scroll independently of their Edit and Delete buttons. Email addresses and phone numbers open the system mail or phone app with one tap, and an address can be copied.
  • Tasks can be completed or reopened from the list's checkbox, through the same ETag-guarded update as the editor. The editor's due date has a date picker and a clear action.

Notes, Contacts, and Tasks

  • At 840dp and wider (NextcloudWorkspaceBreakpoints.TwoPaneDp), these apps show the selected item beside the list on Android and desktop. Narrower phone layouts keep their single list.
  • Notes opens the editor beside the folder and note list on wide layouts and in every desktop window. Narrow windows and phones show the editor alone with Back to the list, inside the notes app's own screen. A note opened beside the list stays open when the window narrows, so its draft is kept, and the open note is saved selection that reopens after recreation. The open note is also the notes app's saved location, so it reopens after a relaunch, and a note editor saved by an earlier version reopens that note when it still exists.
  • The in-place note editor registers with the shell's edit guard (NativeInlineEditorNavigation): choosing another note, creating a note, renaming or deleting a folder, switching apps, following a link, and Back all ask before a dirty draft is discarded and wait for a running save.
  • Create note adds a note titled "New note" in the current folder and opens it in the editor, on phones as well, instead of asking for a title and Markdown in a dialog first.
  • Contacts shows address books as list filters when there is more than one: tabs on phones, a rail on tablets and narrow desktop windows, and a sidebar on wide desktop windows. New contacts default to the filtered address book when it is writable. Tasks does the same with task lists, which show their open-task counts and mark read-only lists.
  • Contact and task editors remain dialogs on every layout. A to Z contact sections, task grouping, and note sorting are not implemented.
  • Contacts edit several labelled (home, work, mobile, other) emails, phone numbers, postal addresses, and websites, plus groups (vCard CATEGORIES), job title, and birthday. Properties the editor does not show, such as photos and fields written by other apps, are kept, and unchanged entries keep their original vCard lines. "Manage address books" creates (MKCOL), renames (PROPPATCH), shares, and deletes address books; server-generated address books stay read-only. Contact photos are not shown and cannot be changed yet.
  • Tasks edit priority, progress, start date, tags, and the parent task (RELATED-TO;RELTYPE=PARENT, as Nextcloud Tasks writes it). Subtasks follow their parent in the list, indented, and task details list them with "Add subtask". A task cannot be moved under its own subtasks. The header menu creates, edits, shares, and deletes task lists and opens the trash bin.
  • The Notes list has All notes and Favorites filters. Favorites lists favorite notes from every folder. Each note card has a menu, also reachable by long press, to add or remove a favorite and to share the note's file. The header opens the app's settings when its contract describes them; a folder-valued setting uses the native remote folder browser. Actions the app's contract does not describe are not shown.
  • NotesWorkspaceLayoutTest, ContactsWorkspaceLayoutTest, and TasksWorkspaceLayoutTest cover phone, tablet, and desktop widths, recreation, and the dirty-draft guard against synthetic servers. They do not establish behavior on a device or against a live server.

Calendar and Talk

  • Calendar shares view selection, time-first event rows, named calendar checkboxes, and event detail facts. Phone Month is a full-screen grid whose days show their events as colored chips with a "+N" count; tapping a day opens its Day view. Week and Day are a shared time grid (CalendarTimeGrid) on phone and desktop: hour lines, timed events placed by start and length, overlapping events side by side, all-day and day-spanning events in a row above, and a current-time line on today. Tapping empty time starts a new event at that half hour. On phones, swiping sideways moves to the previous or next period. Desktop keeps its continuous month grid with event overflow.
  • Calendar colors come from the color set on the server, with a theme color as the fallback, so events match the web calendar. "Today" follows the device's local date. Event times are shown and edited in the device's time zone: UTC times and times with a TZID are converted once after recurrences are expanded, while floating times stay as written. Saving keeps an event's own TZID, so a repeating event keeps its wall time across daylight-saving changes; events without one are stored in UTC. Unknown zones are shown as written rather than guessed.
  • The calendar list manages calendars as the web calendar does: "New calendar" creates a calendar (optionally also holding tasks) with CalDAV MKCALENDAR, or subscribes to an iCalendar link (https, http, or webcal, never with credentials) the way Nextcloud stores subscriptions. Each calendar's menu renames or recolors it (PROPPATCH), deletes it, ends a subscription, or removes a calendar shared with the user, after a confirmation. Shared calendars name their owner and subscriptions are always read-only. Every change is confirmed against a fresh calendar list, so a lost response is reported as unknown rather than as success or failure, and retrying a new calendar reuses its address instead of creating a second one. Calendars in Nextcloud's trash bin are not listed as calendars; the "Trash bin" below the calendar list restores deleted calendars, events, and tasks (MOVE into trashbin/restore/) or deletes them for good, one at a time or all at once with a report of any that failed. Owned calendars can be shared with people and groups, read-only or with edit rights, and published as a public read-only link, through Nextcloud's DAV sharing and publishing POSTs; people and groups are found with a DAV principal search. "Show contact birthdays" turns the birthdays calendar back on. Importing and exporting .ics files, free/busy lookup, and the web calendar's own settings (such as a default reminder) are not available.
  • Events carry reminders (VALARM) and guests. Reminders set relative to the start can be added and removed; others are kept as stored. The organizer, or anyone on an event without guests, can invite people by email, which makes them the organizer; the server then sends invitations, updates, and cancellations, and Save says so. An invited user answers Going, Maybe, or Not going from the event details. Editing or deleting a repeating event asks whether the change is for this occurrence (an exception with RECURRENCE-ID, or an EXDATE) or for every occurrence. "This and following occurrences" is not offered.
  • Time-grid events show only the lines that fit: short events keep one readable line, and narrow overlapping lanes wrap at words rather than inside them.
  • Shared date grouping includes multi-day events within a bounded window and respects exclusive all-day end dates. The editor puts title and schedule first, with compact recurrence and calendar selectors.
  • Talk bounds the composer and the desktop message width. A failed send keeps the draft. Refresh only reads the conversation, and an uncertain resend needs explicit confirmation. Timestamps show UTC and do not imply delivery or read state.
  • An open conversation waits for new messages with Talk's long-polling chat API while the app is visible. Hiding the app, leaving the conversation, or switching rooms cancels the waiting request. Polling never sets the read marker, clears notifications, or updates presence. Offline and server errors back off and retry; a removed conversation, an active lobby, or an expired sign-in stops polling and says why.
  • Reply, react, edit, and delete appear only when the server advertises the matching Talk feature and the conversation and attendee permissions allow the write. Edit and delete are limited to this account's own plain-text messages within Talk's documented time windows. Delete needs a separate confirmation. Message actions open with a long press on touch, and with a right click or the overflow button on desktop; all are also exposed as accessibility actions. A send carries a Talk reference ID when supported, so an unconfirmed send is checked against the conversation before the user may send it again. An unconfirmed edit, delete, or reaction is read back before its result is shown.
  • Windows at least 840 dp wide show the conversation list beside the open conversation. Up and Down move through the list, Alt+Up and Alt+Down switch conversations from anywhere in the workspace, Enter sends, Shift+Enter adds a line, and Escape cancels a reply or edit. Compact windows show one pane and use system back. TalkWorkspaceInteractionTest covers both layouts.
  • The settings button in a conversation header opens a conversation settings sheet: name, description, notification level, and, for moderators, read-only, lobby, guest access, moderator roles, and participant removal. Controls are shown only for the participant and conversation types that Talk allows, removal and guest-access changes need a separate confirmation, and every change is read back before it is reported as done. Read receipt and typing privacy live in Settings. TalkConversationSettingsTest covers the protocol and verification; there is no device evidence yet.

Settings and administration

  • Settings adds Personal info, App settings, and (when Talk is installed) Talk sections. Personal info shows the profile with each field's visibility and links to the online status screen. App settings lists every installed app and opens its workspace, or the matching Settings section for Talk and status. These sections use the same phone and two-pane layouts as the rest of Settings.
  • Administration opens one screen with Apps, Accounts, Groups, and Server tabs. Accounts use a searchable, paged list beside the selected account on windows 720 dp and wider, and a list that opens the account on phones, returning on system back.
  • Profile and administration are read-only. Nextcloud requires a password confirmation for those changes that the app-password sign-in cannot provide, so each screen explains that the change waits for an explicit authenticated handoff. Nothing opens the browser, and the app never asks for the account password. NativeSettingsScreensSceneTest covers the phone and desktop layouts; there is no device or live-server evidence yet.

Office

  • Office uses native document selection. Android embeds only a Direct Editing session the user asked for, never the Nextcloud dashboard or app navigation. Desktop opens editing sessions in the system browser. Preview and Edit are separate actions, and Edit is gated by advertised MIME support and current permissions. This is not an automatic web fallback for other apps. See ADR 0001 for the authentication, provider selection, and retry boundaries.

Focused scene tests cover many of these interactions. Device rotation, visual evidence, and dated device observations belong in COMPATIBILITY.md.

Mobile product rules

Every mobile surface must provide:

  • correct safe-area insets, system back, touch targets, and permission flows;
  • state restoration across rotation, activity recreation, and process death;
  • durable background work that is honest about Android and iOS scheduling limits;
  • progressive layouts for large phones, tablets, foldables, and external displays;
  • native share and open-with, notifications, media sessions, filesystem providers, camera and media discovery, and calling surfaces.

App-specific presentation groups related values around the task. These surfaces reuse the existing typed models, action bindings, and recovery policies:

  • Budget puts account balance and period spending first, keeps category limits and carryover together, and omits unavailable totals instead of showing zero.
  • Music playlists keep ordered tracks and playback controls together.
  • Calendar editors group Schedule and Details, with Save and Cancel outside the scrolling body.
  • Transfer history puts queue status and the failed-upload filter before the records, centered and bounded on wider windows.
  • Pantry collection cards emphasize household and list descriptions. Grocery rows show quantity without replacing completion recovery.
  • Tables cards keep declared counts visible and secondary metadata expandable. Record details group typed cells under their primary value without repeating it. Compact table controls wrap when space is limited.

View switchers and form choices use shared native components on phone and desktop. Calendar, compact Chores, Budget categories, and dynamic enum fields share selection, focus, and overflow behavior without sharing domain state or write policy. See shared native choice controls.

Desktop product rules

Every desktop surface should provide, where the workflow benefits:

  • resizable master-detail and multi-pane workspaces;
  • keyboard navigation, pointer selection, context menus, drag-and-drop, and accessibility focus;
  • dense tables, persistent inspectors, multi-selection, and broad content views instead of phone cards stretched across a window;
  • conventional sync roots or native virtual-file providers, according to the operating system;
  • secret storage, notifications, system media controls, file associations, updates, and native packaging.

Desktop account recovery

These are source and deterministic-test guarantees, not claims about a published installer.

  • Interrupted account cleanup has its own retry screen, separate from unavailable secure storage. It keeps the saved sign-in and offers no sign-in reset while cleanup is pending or needs review. Unrecognized cleanup records direct the user to Obiente support. The screen explains how to reopen the app for another attempt; its check action only reloads session state.
  • Credential-save recovery persists a terminal marker before erasing its identity fields, so a restart can finish cleanup at any interruption point without mistaking a completed save for an incomplete rollback. See DesktopCompletedCredentialSaveCleanupTest.
  • Legacy Deck drafts that cannot be attributed, because the keyring or encrypted content is unreadable, keep account cleanup pending and the files preserved. Restoring keyring access permits a retry. A permanently damaged draft can keep blocking cleanup until its ownership or deliberate removal is resolved; corrupt encrypted drafts are not recovered automatically.
  • A registry written by a newer format blocks sign-in with compatibility guidance. Credentials and registry data are unchanged, and the user must reopen a compatible app version instead of repeating browser login.
  • Malformed registry data without a recoverable legacy session shows retained-data and support guidance, without a reset or an update claim. A valid legacy session can still repair malformed registry data.

Desktop TLS trust

Last reviewed: 2026-10-08. These are source and deterministic-test guarantees, not claims about a published installer; the code may have changed.

  • Desktop clients that contact the Nextcloud server use one process-wide trust manager from DesktopTlsTrust.kt. It accepts a chain when the bundled Java runtime roots validate it, or, after they reject it, when the operating system's trust decision accepts it. OkHttp hostname verification is unchanged, and no trust-all path exists.
  • Linux: DesktopSystemTrustAnchors.kt reads the first complete system CA bundle into a PKIX trust manager limited to those anchors. An unreadable, oversized, truncated, or malformed bundle contributes no anchors.
  • Windows: WindowsChainEngineTrust.kt passes the presented chain to the current user's Windows chain engine (CertGetCertificateChain with the server-authentication usage, then the SSL policy) through JNA. Windows roots are not copied into Java, so Windows store policy such as the Disallowed store and certificate purpose restrictions stays in force. Chain building uses cached data only and does not fetch AIA or root updates. End-certificate revocation is requested with CERT_CHAIN_REVOCATION_CHECK_END_CERT and CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLY, because CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL does not cover revocation. Unknown or offline revocation status is ignored, so only a revocation already present in the Windows cache can reject a chain. After the bundled roots accept a chain, the same Windows check runs once more as a veto: explicit distrust, a cached revocation of the server certificate, or a stored purpose that excludes server authentication rejects the chain. An untrusted or unknown Windows root, unknown revocation status, other rejections, and failed native calls keep the bundled decision, so a stale Windows root store cannot break public servers. This adds one cached chain build to each new TLS connection.
  • macOS reads no system trust yet. Update checks and project news keep the bundled roots only.
  • DesktopTlsTrustTest and DesktopSystemTrustAnchorsTest cover synthetic CAs, untrusted and expired chains, hostname mismatch, malformed or missing bundles, and the Windows verdict mapping through an injected verifier. WindowsExplicitDistrustVetoTest covers vetoing and non-vetoing verdicts for chains the bundled roots accept, including revoked, unknown, and offline revocation status. WindowsChainEngineTrustTest runs only on Windows hosts and drives the real chain engine with an in-memory exclusive root: a trusted root, an unrelated root, an expired leaf, and a root whose stored purpose excludes server authentication, including that restricted root vetoing a chain the bundled roots also trust. They also confirm that synthetic certificates without revocation data stay trusted with revocation checking enabled. No test modifies a Windows certificate store or revocation cache, so Disallowed handling and a definite cached revocation rely on documented Windows engine behavior. No test establishes behavior inside a Flatpak or other sandbox.
  • User-facing guidance is in sign-in diagnostics.

Desktop video playback

Last reviewed: 2026-10-19. These are source, deterministic-test, and local build observations, not claims about a published installer; the code and packaging may have changed.

  • The media viewer plays videos in the window through vlcj 4 and libVLC 3 (DesktopVlcVideoEngine.kt). libVLC never receives a URL or credentials: it reads through libVLC callback media backed by the app's own size- and ETag-pinned range session, so a server file that changes mid-playback fails the read instead of mixing versions. Frames are copied into Compose and drawn there, so the viewer chrome and transport controls overlay the video.
  • The transport controls (NativeVideoTransportControls.kt) offer play and pause, seeking, time, mute, and volume. They hide while playing and return on pointer movement. A click toggles playback. Space or K plays and pauses, J and L seek 10 seconds, and M mutes. Arrow keys keep moving between media items.
  • libVLC is found once per process (DesktopLibVlcRuntime.kt). A copy bundled in the package is preferred over a system VLC. Discovery uses vlcj's candidate directories and order (the bundled copy, a vlcj configuration file, the JNA library path, the application directory, VLC's install or well-known library directories, and PATH) but checks each directory itself and never searches below it, so a machine without libVLC settles quickly instead of scanning whole system trees. On Linux the well-known directories are the JVM's own Debian multiarch directory (for example /usr/lib/aarch64-linux-gnu) first, then vlcj's /usr/lib/x86_64-linux-gnu, /usr/lib64, /usr/local/lib64, /usr/lib/i386-linux-gnu, /usr/lib, and /usr/local/lib; the remaining Debian triplet directories come after PATH. Versioned runtime names such as libvlc.so.5 are accepted, and vlcj sets the plugin path to <directory>/plugins or <directory>/vlc/plugins unless VLC_PLUGIN_PATH is already set. DesktopLibVlcDiscoveryTest covers this. Windows and macOS packages stage VideoLAN's VLC 3.0.24 release libraries and playback plugins, pinned by SHA-256 in ui/build.gradle.kts, with libVLC's LGPL and GPL texts and a source link in the packaged libvlc folder. Linux packages do not bundle libVLC: the DEB recommends libvlc5 and vlc-plugin-base, and the RPM recommends any package that provides libvlc.so.5. Without libVLC the viewer keeps its "Play video" button, which opens the file in the default video app.
  • Decoder padding is cropped, non-square pixels are scaled, and container rotation is applied exactly once. libVLC 3 rotates callback output itself, and the frame geometry detects that from the buffer shape instead of turning the picture again.
  • DesktopVideoFramesTest, DesktopVideoSurfaceSceneTest, and NativeVideoTransportTest cover these rules with a scripted engine. DesktopLibVlcPlaybackTest plays synthetic clips through real libVLC, including a rotated clip checked by drawn pixel colors. It runs only where libVLC is installed or bundled, so it is skipped on the standard Linux CI runner.
  • The playing video is published to the operating system's media controls (DesktopSystemMediaControls.kt), with its title, play and pause, and previous and next through the viewer's own sequence. Windows uses the system media transport controls through their WinRT ABI with JNA (WindowsSystemMediaControls.kt), Linux exports MPRIS 2 on the session bus (LinuxMprisSystemMediaControls.kt), and macOS uses Now Playing and the remote command center through the Objective-C runtime (MacOsSystemMediaControls.kt). Each runs on its own thread and is dropped without affecting playback when the service is unavailable. Hiding the window pauses playback once; a later play from the media controls keeps playing in the background.
  • The Android viewer's Media3 player is published through AndroidViewerVideoSessionService, a MediaSessionService that provides the media notification, lock-screen, Bluetooth, and headset controls, with previous and next mapped to the viewer's sequence. The viewer does not publish a Live Photo's motion on either platform. On Android, though, LibVLC compatibility playback (AndroidCompatibilityVideoPlaybackService) still creates its own media session for whatever it plays, so motion played in compatibility mode appears in the notification and lock-screen controls without previous or next.
  • Evidence boundary: on Windows, the bundled copy was staged and played in a local build, and a local check through the system media session manager saw the published title, state, and enabled previous and next, and delivered a toggle back as a pause. MPRIS is covered against an embedded D-Bus daemon on Linux hosts. The macOS integration is exercised only by DesktopSystemMediaPlatformTest in the Intel macOS CI job, and macOS staging (hdiutil extraction of the pinned DMG) has not run outside CI. The Android session is compiled and its skip-command rules are unit-tested, but it has not been checked on a device. Subtitles and audio-track selection are not implemented.

Platform delivery rule

Shared code is valuable only when it preserves correct native behavior. Move a rule into shared code when it is domain policy. Keep an implementation in a platform source set when it depends on lifecycle, security, scheduling, filesystem, media, notification, windowing, or accessibility APIs unique to that operating system.

The dependency order and acceptance gates are defined in ROADMAP.md, especially the platform productization milestone.

Installed display names

The displayed brand is nati.ve on every platform:

  • Android's application label is nati.ve.
  • Linux launcher and AppStream names are nati.ve, including the launcher rewritten into Debian packages.
  • macOS packages use nati.ve.app and the nati.ve Dock name.
  • Windows product and shortcut names are described in Windows release packaging.

The Android application ID, Linux package and desktop-file IDs, persisted data paths, and Windows upgrade identity are compatibility identifiers and have not changed. On macOS, remove the previous NextcloudNative.app after installing nati.ve.app; the DMG does not migrate an existing bundle.

These names describe source packaging configuration. Check the release artifacts to see whether a published release contains them.

Desktop SQLite runtime verification

The desktop sync stores use the bundled AndroidX SQLite driver (androidx.sqlite:sqlite-bundled). The version is pinned to 2.6.2 in gradle/libs.versions.toml because the 2.7.0 and 2.7.1 JVM artifacts omit the Intel macOS native library.

  • DesktopSqliteRuntimeTest checks the native resources for each packaged desktop architecture and opens an in-memory database on the test host.
  • An Intel macOS CI job validates relevant dependency, credential-storage, and packaging changes. It includes a synthetic first-account save and restore through the native Keychain. This does not replace a live browser login test.
  • Nightly and prerelease macOS packages run their launcher with --verify-sqlite-runtime before creating application services. This check does not read accounts or modify user databases.

A resource check on one operating system does not establish runtime validation on another.