Modules
DevView uses a modular architecture where each module provides specific developer tools functionality. Modules are plug-and-play and integrate seamlessly with the DevView core. You can include only the modules you need, and modules can be conditionally enabled based on build type, feature flags, or other criteria.
Available Modules
| Module | Purpose/Features | Link |
|---|---|---|
| Core | Foundation, navigation, module system | Always required |
| FeatureFlip | Feature flag management (local/remote), persistent state, search/filter UI | Learn more -> |
| Analytics | Real-time analytics event monitoring, event logging, tabular display, filtering | Learn more -> |
| Console Logger | Native console output (logcat/stdout) in-app, untethered, with level filters and text search | Learn more -> |
| TimeCapsule | Per-screen state history with restore, resets on navigation | Learn more -> |
| NetworkMock | Mock network requests/responses, UI for toggling mocks, Ktor plugin integration | Learn more -> |
| Custom Modules | Extend DevView with your own developer tools | Creating Custom Modules -> |
When to Use Each Module
- Core: Required for all DevView functionality.
- FeatureFlip: Use for dynamic feature toggling.
- Analytics: Use for monitoring and debugging analytics events.
- Console Logger: Use to view native console output (logcat/stdout) in-app on a device with no debugger attached.
- TimeCapsule: Use to capture and replay recent app states during debugging.
- NetworkMock: Use for simulating network responses, testing error handling, or developing offline features.
- Custom Modules: Use for bespoke developer tools tailored to your workflow.
Module Architecture
graph LR
A[DevView Core] --> B[FeatureFlip]
A --> C[Analytics]
A --> D[TimeCapsule]
A --> E[NetworkMock]
A --> F[Custom Modules]
A --> L[Console Logger]
B --> G[DataStore]
E --> G
C --> H[Event Logger]
D --> I[State Timeline]
E --> J[Mock Engine]
F --> K[Your Tools]
L --> M[Native Console Capture]
DevView modules are plug-and-play, integrating seamlessly with the core. Modules can be conditionally enabled based on build type, feature flags, or other criteria.
Integration Example
val modules = rememberModules {
module(FeatureFlip)
module(Analytics())
module(Console())
module(TimeCapsule)
module(NetworkMock(resourceLoader = NetworkMockResourceLoader { path -> Res.readBytes(path) }))
module(MyCustomModule)
}
If you are new to DevView, start with the Core module and add others as your project requirements evolve. For advanced usage, see the guides and examples sections.