-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the official documentation for Project Codex Vanguard. This project is a highly scalable, platform-agnostic UI and core engine framework built natively on Kotlin Multiplatform (KMP).
The architecture is driven by the principle of Extreme Separation of Concerns, ensuring absolute decoupling between business logic, state management, and user interfaces.
The core math engine and control logic ("Brain") are strictly isolated from the UI layer ("Heart").
-
Zero-Dependency Shared Logic: The
:sharedmodule contains pure Kotlin domain logic with zero platform-specific (e.g., Android framework) dependencies. -
Unified Design System: The
:sharedUImodule hosts Jetpack Compose UI components that are consumed seamlessly across both Android and Native Windows environments, eliminating UI duplication.
State management follows strict Unidirectional Data Flow principles:
- EventLink Interface: Decouples UI from Worker logic. Direct worker instantiation inside UI components is prohibited.
-
StateFlow Integration: Centralized state managers (
LocalManager,EventManager) expose immutable UI states (LocalUiState,EventStatus).
The repository is structured into distinct, highly cohesive modules to accelerate build times and enforce architectural boundaries:
| Module | Responsibility |
|---|---|
:shared |
Platform-agnostic domain logic, pure math engines. |
:sharedUI |
Multiplatform Jetpack Compose design system and UI components. |
:app |
The Android application entry point and execution sandbox. |
:desktopApp |
The standalone Native Windows (JVM) application entry point. |
:Wave_Engine |
A dedicated library submodule for advanced audio processing and visualization. |
:sensoryUnit |
KMP module handling platform-specific hardware/sensor bridging (Android, iOS). |
-
Compose Canvas Particle Engine: Features a responsive 2D starfield particle engine capable of rendering asynchronously at 60fps. Utilizes a low-overhead state metronome pattern (
LaunchedEffect,withFrameMillis) for efficient canvas recompositions. - Dynamic Scaling: Device-agnostic scaling logic maps a virtual 2000x2000 grid to any physical screen size.
- Schwarzschild Radius Mechanics: Advanced particle trajectory math (handling event horizons) is separated entirely from the Compose layer.
-
Scoped Audio Streaming: The
AudioSourceinterface provisions a standardizedSharedFlowfor raw 16-bit PCM audio chunks. -
Platform-Agnostic Activation: The
AudioPlatformLinkorchestrates specific threaded execution logic viaExecuteAudioAndroidandExecuteAudioWindows. -
Amplitude Tracking: The
AmplitudeTrackersmooths and tracks audio amplitude peaks for real-time visual feedback via the newAIScreenWavecomponent.
Project Codex Vanguard has successfully graduated from the Android UI testing sandbox and is actively deploying across multiple platforms.
- Android: Native execution targeting modern Android SDKs.
-
Windows (JVM): Native Windows execution utilizing JetBrains Compose Desktop. Pre-configured for native
.exeand.msidistributions with ProGuard obfuscation and optimization. -
iOS (Experimental): Initial
Platform.ios.ktimplementation established within the:sensoryUnitmodule.
This wiki is dynamically maintained to reflect the master branch architecture.