How amir1376/ab-download-manager works
AB Download Manager is a cross-platform download manager. The principal workflow is a user adding a URL, managing the resulting download from the app, and relying on the download engine to process it; queues, browser integration, and scheduling are additional product capabilities. The tree and excerpts support the engine’s HTTP, queue, monitoring, and persistence components, but do not show most UI-to-engine wiring, so those links are omitted or marked unverified rather than presented as observed calls.
Main entry points: DownloadManager.kt Download Manager · AddSingleDownloadPage.kt Add Download · DownloadListFileStorage.kt Download Records · MainActivity.kt Android App Shell
Components 17
Application UI
- Android App Shell
android/app/src/main/kotlin/com/abdownloadmanager/android/ui/MainActivity.kt - Desktop App
desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/App.kt - Add Download
android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt - Download Home
android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt - In-App Browser
android/app/src/main/kotlin/com/abdownloadmanager/android/pages/browser/BrowserUi.kt - App Settings
shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/appsettings/BaseAppSettingsStorage.kt
Download Engine
- Download Manager
downloader/core/src/commonMain/kotlin/ir/amirab/downloader/DownloadManager.kt - HTTP Downloader
downloader/core/src/commonMain/kotlin/ir/amirab/downloader/connection/OkHttpHttpDownloaderClient.kt - Queue Manager
downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/QueueManager.kt - Download Monitor
downloader/monitor/src/commonMain/kotlin/ir/amirab/downloader/monitor/DownloadMonitor.kt
Persistent State
- Download Records
downloader/core/src/commonMain/kotlin/ir/amirab/downloader/db/DownloadListFileStorage.kt - Queue Records
downloader/core/src/commonMain/kotlin/ir/amirab/downloader/db/QueueFileStorage.kt - Download Settings
shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraDownloadSettingsStorage.kt
Platform Services
- Download Service
android/app/src/main/kotlin/com/abdownloadmanager/android/service/DownloadSystemService.kt - Notifications
android/app/src/main/kotlin/com/abdownloadmanager/android/util/ABDMServiceNotificationManager.kt
Other components
- User
- Browser Extension
Connections 13
- User → Android App Shell: uses app
README.md - User → Desktop App: uses app
README.md - User → Add Download: adds URL
- Add Download → Download Manager: submits download
- Download Manager → HTTP Downloader: downloads data
- Download Manager → Queue Manager: uses queues
- Download Manager → Download Records: persists records
- Download Manager → Download Monitor: reports progress
- Download Home → Download Manager: manages downloads
- In-App Browser → Add Download: captures downloads
- Browser Extension → Android App Shell: integrates with
README.md - Download Service → Notifications: uses notifications
android/app/src/main/kotlin/com/abdownloadmanager/android/service/DownloadSystemService.kt - Download Records → Download Settings: stores separately