How julianclemot/buzzerbeater works
Main Components
a. Cross-Platform Components:
• Shared Module (Core Business Logic)
• Bluetooth Communication Layer
• Common Platform Interfaces
• Shared Game Logic
b. Platform-Specific Components:
• Android Application
• UI Layer (Compose)
• Platform-specific Bluetooth Implementation
• Navigation System
• iOS Application
• SwiftUI Interface
• Platform-specific Bluetooth Implementation
Architecture Pattern Representation
┌─────────────────────────────────────────────────────────┐
• Platform-Specific UI │
• ┌───────────────────┐ ┌───────────────────┐ │
• Android App │ │ iOS App │ │
• (Compose UI) │ │ (SwiftUI) │ │
• ┬──────────┘ └────────┬──────────┘ │
• ┌────────┴──────────┐ ┌───────┴───────────┐ │
• Android-Specific │ │ iOS-Specific │ │
• Implementation │ │ Implementation │ │
• ┬──────────┘ └────────┬──────────┘ │
• ┼────────────────────────────────┼────────────┘
┌───────────┴────────────────────────────────┴────────────┐
• Shared Module │
• ┌─────────────────────────────────────────────────┐ │
• Business Logic │ │
• ┌─────────────────┐ ┌───────────────────┐ │ │
• Game Logic │ │ Bluetooth Helper │ │ │
• ┘ └───────────────────┘ │ │
• ┘ │
• ┘
Key Elements to Highlight
• Blue: Platform-specific UI components
• Green: Shared business logic
• Yellow: Platform-specific implementations
• Gray: External interfaces (Bluetooth)
Additional Details
• Permission handling for Bluetooth
• Navigation flow in the Android app
• State management (HomeScreenUiState)
• Theme and styling systems for both platforms
Technical Stack Indicators
• Kotlin Multiplatform Mobile
• Jetpack Compose for Android UI
• SwiftUI for iOS UI
• Bluetooth Low Energy for device communication
This system design should effectively communicate how the application maintains a shared codebase while providing platform-specific implementations where necessary, particularly for the Bluetooth functionality and UI components.