Project structure¶
The current settings.gradle.kts declares 58 Gradle modules.
Client/shared modules¶
| Module | Responsibility |
|---|---|
:androidApp |
Android host, manifest, packaging and app version resolution |
:shared |
app shell, shared DI and application runtime/startup tasks |
:startup |
startup contract/presentation gate |
:navigation |
application navigation graphs |
:resources |
shared Compose resources |
:core:base |
shared base/domain primitives including the message-part hierarchy |
:core:util |
cross-cutting utilities |
:core:crypto |
crypto implementations/providers |
:core:ui |
shared Compose/navigation primitives |
:protocol |
client wire packets, codecs, operation messages and protocol contracts |
:data:database |
Room schema v55, DAOs/entities/migrations |
:data:datastore |
key/value/settings persistence |
:feature:embedding |
local embedding runtime/model lifecycle |
:feature:identity |
identity lifecycle/exchange/backup/recovery persistence |
:feature:applock |
device-owner app lock |
:feature:invite |
Direct/Group invitations and inbox |
:feature:contacts |
contacts, blocking, routing/peer projection |
:feature:contactimport |
device/shared contact import |
:feature:autoreply |
automatic reply rules |
:feature:avatar |
avatar observation/editing/cache |
:feature:linkpreview |
link extraction/cache/rendering |
:feature:chats |
Direct/Group chat UI plus read-only conversation/message data; submits writes as commands |
:feature:conversationorchestration:api |
ConversationOrchestrator, ConversationCommand, states/results |
:feature:conversationorchestration:engine |
workflow state-machine runtime, locks, command routing |
:feature:conversationorchestration:delivery |
delivery state, outgoing transport policy, mailbox/routing |
:feature:conversationorchestration:message |
Direct/Group messages, operations, polls, forwarding |
:feature:conversationorchestration:groupstate |
group title, description, avatar, pin and expense board |
:feature:conversationorchestration:membership |
group administration, joining a group and verification |
:feature:conversationorchestration:lifecycle |
direct chat lifecycle: open, invite, reconnect, delete, identity/invitation results, recovery |
:feature:conversationorchestration:incoming |
incoming packet routing and Receive* workflows |
:feature:membership |
group membership/security/admin lifecycle |
:feature:attachments |
encrypted blob transfer/cache/storage and attachment UI state |
:feature:media |
gallery/camera/files/media viewers/export |
:feature:ocr |
on-device text recognition and receipt parsing |
:feature:voice |
recording/playback/local transcription |
:feature:polls |
poll creation and poll-specific presentation |
:feature:expenses |
group expenses, splits, balances, settlements, exchange rates |
:feature:payment |
settle-up payments: bank details and SEPA payment QR codes |
:feature:messaging |
durable outbox/incoming-envelope execution |
:feature:transport |
discovery, circuits, alias claims and mailbox gateways |
:feature:onboarding |
onboarding flows |
:feature:notification |
notification/background integration |
:feature:settings |
user/developer/network/AI/app-lock settings |
:feature:search |
exact + semantic message search |
:feature:safety |
local message-safety analysis |
:quality:detekt-rules |
project-specific Detekt rules |
Server modules¶
The server family remains :server:protocol, :server:security, :server:persistence, :server:observability, :server:node-registry, :server:presence-directory, :server:gateway, :server:federation, :server:mailbox, :server:link-preview and :server:exchange-rates.
Deployment folders under server/control-plane, server/community-node, server/installer and server/control-plane-directory are operator/runtime packaging rather than additional Gradle modules.
Feature layering¶
Typical feature layout is:
presentation/
domain/model/
domain/repository/
domain/usecase/
data/datasource/
data/model/
data/repository/
data/mapper/
device/
di/
Cross-feature shared models are placed in an explicit shared module rather than duplicated inside features. The current message-part hierarchy is the main example: MessagePartDto / MessagePart / MessagePartUi live under :core:base.
Conversation workflows use a different layout (domain/workflow/<area>/…Workflow.kt plus runtime/ for observers); see Conversation orchestration.
See the generated Module catalog for the source-derived dependency/declaration inventory.