How ikooc/baidujiexi_app works
百度解析助手 is a Flutter client that turns pasted Baidu Netdisk share links into direct download URLs, then manages downloads through Gopeed. The main workflow loads remote configuration, obtains session and attestation credentials, solves a slider challenge, streams conversion progress to the home UI, and hands resulting URLs to the download engine. The downloads view uses a manager to synchronize task state; directory selection and Android permission handling support storage. The README documents platform-specific engine bridges and backend configuration. Source excerpts are limited, so edges for documented but unsampled Dart behavior rely on the README.
Main entry points: api_client.dart Conversion client · home_page.dart Link and results UI · remote_config.dart Remote configuration · download_manager.dart Download manager
Components 23
Flutter app
- App startup
lib/main.dart - Startup hooks
lib/core/startup_hooks.dart - Link and results UI
lib/ui/home_page.dart - Downloads UI
lib/ui/downloads_page.dart - Theme
lib/theme/app_theme.dart
Link resolution
- Remote configuration
lib/core/remote_config.dart - Conversion client
lib/core/api_client.dart - Captcha solver
lib/core/captcha_solver.dart - Session signing
lib/core/crypto.dart - Resolution models
lib/core/models.dart
Downloads and storage
- Download manager
lib/core/download_manager.dart - Gopeed engine client
lib/core/gopeed_engine.dart - Directory and permissions
lib/core/storage_service.dart
Platform runtime
- Android activity
android/app/src/main/kotlin/com/liuguang/bdjx/MainActivity.kt - Android Gopeed bridge
android/app/src/main/kotlin/com/liuguang/bdjx/GopeedBridge.kt - Android storage bridge
android/app/src/main/kotlin/com/liuguang/bdjx/StorageBridge.kt - Windows Gopeed process
windows/runner/gopeed-rest.exe
Configuration backend
- Config endpoint
api/app/config.php - Config data
api/app/config.json
Other components
- App user
- Conversion API
- Local preferences
- Bootstrap endpoint
Connections 26
- App user → Link and results UI: pastes link
README.md - App startup → Remote configuration: loads configuration
README.md - App startup → Startup hooks: runs after startup
README.md - Link and results UI → Conversion client: requests conversion
README.md - Conversion client → Conversion API: fetches credentials and converts
README.md - Conversion client → Captcha solver: builds challenge trail
README.md - Conversion client → Session signing: signs normalized link
README.md - Conversion client → Resolution models: aggregates result
README.md - Conversion client → Link and results UI: streams progress
README.md - Remote configuration → Bootstrap endpoint: fetches configuration
README.md - Remote configuration → Local preferences: caches settings
README.md - Remote configuration → Link and results UI: supplies announcement
README.md - Link and results UI → Download manager: creates download tasks
README.md - Downloads UI → Download manager: shows and controls tasks
README.md - Download manager → Gopeed engine client: polls and controls tasks
README.md - Download manager → Directory and permissions: gets task directory
README.md - Directory and permissions → Local preferences: persists custom directory
README.md - Gopeed engine client → Android Gopeed bridge: starts embedded engine
README.md - Android activity → Android Gopeed bridge: registers bridge
android/app/src/main/kotlin/com/liuguang/bdjx/MainActivity.kt - Android activity → Android storage bridge: registers bridge
android/app/src/main/kotlin/com/liuguang/bdjx/MainActivity.kt - Directory and permissions → Android storage bridge: requests directory operations
README.md - Android activity → Android storage bridge: forwards permission result
android/app/src/main/kotlin/com/liuguang/bdjx/MainActivity.kt - Gopeed engine client → Windows Gopeed process: launches local process
README.md - Config endpoint → Config data: reads and writes settings
api/app/config.php - Bootstrap endpoint → Config endpoint: served by
README.md - App startup → Theme: applies theme
README.md