How whsprs/android-whisp-sdk works
High-Level Architecture Components
a) SDK Modules (Core Components):
• SDK-UI Module (UI Components)
• SDK-BE Module (Backend Services)
• SDK-ALL Module (Integration Layer)
b) Supporting Infrastructure:
• Build System
• Common Components
• Core Services
Component Relationships
Client Application
• ↓
SDK-ALL (Integration Layer)
• ↙ ↘
SDK-UI SDK-BE
• ↓ ↓
Common Components
• ↓
Core Services
Detailed Component Breakdown
SDK-BE Module:
• Chat Core System
• Session Management
• Message Controllers
• Transport Layer
• WebSocket Server
• API Integration
SDK-UI Module:
• Chat UI Components
• Theme System
• Animations
• Message Input/Output
• Custom Views
Common Components:
• DI System
• MVI Architecture
• UI Components
• Build Conventions
Data Flow Representation
Key flows:
• Message Flow: Client → SDK → Backend Services
• UI Updates: Backend → SDK-BE → SDK-UI → Client
• WebSocket Events: Backend ↔ SDK-BE
• Transaction Handling: SDK-BE → Blockchain
Technical Details
Implementations:
• Message Queue System
• Session Management
• Transaction Signing
• Polling Mechanism
• Component Dependencies
The dependency injection system
Keep the abstraction level high enough to be understandable but detailed enough to show the sophisticated architecture of the SDK.