# mondony/dony_app architecture

> Architecture diagram of the GitHub repository mondony/dony_app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mondony/dony_app
- Repository: https://github.com/mondony/dony_app

## Overview

Dony is a Flutter mobile app; the available README is generic and does not describe its main product workflow. The feature tree indicates a parcel-and-traveler marketplace with account setup, package/trip publishing, matching, delivery tracking, and payments, alongside messaging and support capabilities. Native Android and iOS code provides platform lifecycle, permissions, Stripe reattachment, and push-notification integration. Most Dart implementation was not sampled, so feature-to-feature links are unverified and shown as dashed; Firebase dependencies are documented in the README.

Main entry points: [`lib/features/matching`](https://github.com/mondony/dony_app/tree/main/lib/features/matching) (Request matching), [`android/app/src/main/kotlin/com/yadony/yadony/MainActivity.kt`](https://github.com/mondony/dony_app/blob/main/android/app/src/main/kotlin/com/yadony/yadony/MainActivity.kt) (Platform lifecycle), [`lib/features/auth`](https://github.com/mondony/dony_app/tree/main/lib/features/auth) (Account and activation), [`lib/features/tracking`](https://github.com/mondony/dony_app/tree/main/lib/features/tracking) (Delivery tracking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App foundation"]
  node_flutter["Flutter application"]
  node_platform["Platform lifecycle<br/>[MainActivity.kt]"]
  node_stripe_attach["Stripe reattachment"]
  node_firebase["Firebase services"]
end

subgraph group_marketplace["Marketplace workflow"]
  node_auth["Account and activation"]
  node_package["Package requests"]
  node_trips["Traveler trips"]
  node_home["Marketplace discovery"]
  node_matching["Request matching"]
end

subgraph group_delivery["Delivery lifecycle"]
  node_tracking["Delivery tracking"]
  node_handoff["Reception and addresses"]
end

subgraph group_engagement["Communication and support"]
  node_messaging["Messaging and calls"]
  node_notifications["Notifications"]
  node_support["Help and support"]
end

subgraph group_money["Payments and trust"]
  node_payments["Payments and wallets"]
  node_billing["Billing and subscriptions"]
  node_kyc["Identity verification"]
end

node_user(("Mobile user"))
node_stripe["Stripe services"]
node_ios_push["APNs and VoIP push"]

node_user -.->|"uses"| node_flutter
node_flutter -.->|"runs on"| node_platform
node_platform -->|"registers plugin"| node_stripe_attach
node_user -.->|"signs in"| node_auth
node_auth -.->|"continues to"| node_package
node_user -.->|"browses"| node_home
node_user -.->|"publishes request"| node_package
node_user -.->|"publishes trip"| node_trips
node_package -.->|"seeks match"| node_matching
node_trips -.->|"offers match"| node_matching
node_matching -.->|"opens conversation"| node_messaging
node_matching -.->|"starts payment"| node_payments
node_payments -.->|"uses"| node_stripe
node_payments -.->|"coordinates"| node_billing
node_auth -.->|"verifies identity"| node_kyc
node_matching -.->|"advances delivery"| node_tracking
node_tracking -.->|"records receipt"| node_handoff
node_tracking -.->|"notifies status"| node_notifications
node_messaging -.->|"alerts user"| node_notifications
node_user -.->|"requests help"| node_support
node_platform -->|"registers push"| node_ios_push
node_firebase -.->|"delivers messaging"| node_notifications

click node_flutter "https://github.com/mondony/dony_app/tree/main/lib/app"
click node_platform "https://github.com/mondony/dony_app/blob/main/android/app/src/main/kotlin/com/yadony/yadony/MainActivity.kt"
click node_stripe_attach "https://github.com/mondony/dony_app/blob/main/android/app/src/main/kotlin/com/yadony/yadony/StripeActivityReattachPlugin.kt"
click node_auth "https://github.com/mondony/dony_app/tree/main/lib/features/auth"
click node_package "https://github.com/mondony/dony_app/tree/main/lib/features/package_request"
click node_trips "https://github.com/mondony/dony_app/tree/main/lib/features/matching"
click node_home "https://github.com/mondony/dony_app/tree/main/lib/features/home"
click node_matching "https://github.com/mondony/dony_app/tree/main/lib/features/matching"
click node_tracking "https://github.com/mondony/dony_app/tree/main/lib/features/tracking"
click node_handoff "https://github.com/mondony/dony_app/tree/main/lib/features/receptions"
click node_messaging "https://github.com/mondony/dony_app/tree/main/lib/features/messaging"
click node_notifications "https://github.com/mondony/dony_app/tree/main/lib/features/notifications"
click node_support "https://github.com/mondony/dony_app/tree/main/lib/features/support"
click node_payments "https://github.com/mondony/dony_app/tree/main/lib/features/payments"
click node_billing "https://github.com/mondony/dony_app/tree/main/lib/features/billing"
click node_kyc "https://github.com/mondony/dony_app/tree/main/lib/features/kyc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_flutter,node_platform,node_stripe_attach,node_firebase,node_user toneBlue
class node_auth,node_package,node_trips,node_home,node_matching toneAmber
class node_tracking,node_handoff toneMint
class node_messaging,node_notifications,node_support toneRose
class node_payments,node_billing,node_kyc,node_stripe,node_ios_push toneIndigo
```

## Components

### App foundation

- [Flutter application](https://github.com/mondony/dony_app/tree/main/lib/app): `lib/app`
- [Platform lifecycle](https://github.com/mondony/dony_app/blob/main/android/app/src/main/kotlin/com/yadony/yadony/MainActivity.kt): `android/app/src/main/kotlin/com/yadony/yadony/MainActivity.kt`
- [Stripe reattachment](https://github.com/mondony/dony_app/blob/main/android/app/src/main/kotlin/com/yadony/yadony/StripeActivityReattachPlugin.kt): `android/app/src/main/kotlin/com/yadony/yadony/StripeActivityReattachPlugin.kt`
- **Firebase services**

### Marketplace workflow

- [Account and activation](https://github.com/mondony/dony_app/tree/main/lib/features/auth): `lib/features/auth`
- [Package requests](https://github.com/mondony/dony_app/tree/main/lib/features/package_request): `lib/features/package_request`
- [Traveler trips](https://github.com/mondony/dony_app/tree/main/lib/features/matching): `lib/features/matching`
- [Marketplace discovery](https://github.com/mondony/dony_app/tree/main/lib/features/home): `lib/features/home`
- [Request matching](https://github.com/mondony/dony_app/tree/main/lib/features/matching): `lib/features/matching`

### Delivery lifecycle

- [Delivery tracking](https://github.com/mondony/dony_app/tree/main/lib/features/tracking): `lib/features/tracking`
- [Reception and addresses](https://github.com/mondony/dony_app/tree/main/lib/features/receptions): `lib/features/receptions`

### Communication and support

- [Messaging and calls](https://github.com/mondony/dony_app/tree/main/lib/features/messaging): `lib/features/messaging`
- [Notifications](https://github.com/mondony/dony_app/tree/main/lib/features/notifications): `lib/features/notifications`
- [Help and support](https://github.com/mondony/dony_app/tree/main/lib/features/support): `lib/features/support`

### Payments and trust

- [Payments and wallets](https://github.com/mondony/dony_app/tree/main/lib/features/payments): `lib/features/payments`
- [Billing and subscriptions](https://github.com/mondony/dony_app/tree/main/lib/features/billing): `lib/features/billing`
- [Identity verification](https://github.com/mondony/dony_app/tree/main/lib/features/kyc): `lib/features/kyc`

### Other components

- **Mobile user**
- **Stripe services**
- **APNs and VoIP push**

## Connections

- Mobile user → Flutter application: uses
- Flutter application → Platform lifecycle: runs on
- Platform lifecycle → Stripe reattachment: registers plugin (evidence: `android/app/src/main/kotlin/com/yadony/yadony/MainActivity.kt`)
- Mobile user → Account and activation: signs in
- Account and activation → Package requests: continues to
- Mobile user → Marketplace discovery: browses
- Mobile user → Package requests: publishes request
- Mobile user → Traveler trips: publishes trip
- Package requests → Request matching: seeks match
- Traveler trips → Request matching: offers match
- Request matching → Messaging and calls: opens conversation
- Request matching → Payments and wallets: starts payment
- Payments and wallets → Stripe services: uses
- Payments and wallets → Billing and subscriptions: coordinates
- Account and activation → Identity verification: verifies identity
- Request matching → Delivery tracking: advances delivery
- Delivery tracking → Reception and addresses: records receipt
- Delivery tracking → Notifications: notifies status
- Messaging and calls → Notifications: alerts user
- Mobile user → Help and support: requests help
- Platform lifecycle → APNs and VoIP push: registers push
- Firebase services → Notifications: delivers messaging (evidence: `README.md`)
