Compose-Debug-Drawer
Debug Drawer for Jetpack Compose.
This library is built for compose : beta-01
Composable Debug Drawer for Jetpack Compose apps
Install
Add dependencies:
Setup
Wrap your content with DebugDrawerLayout
:
Debug vs Release
If you don't want DebugDrawer layout code in release you can wrap it on a custom function:
src/debug/...
src/release/...
Modules
Add modules as a list of DebugModule
s
Actions Module
This module has a composable slot.
You can build any of the provided actions, or build your own.
Actions
-
ButtonAction: Shows a
Button
with given text, and register a lambda to receive it's click -
SwitchAction: Shows a
Switch
and register a lambda to receive it's changes
Build Module
Shows information about the app: Version code, Version name and Package
Device Module
Shows information about device running the app such as Device, and manufacturer
Custom Module
Debug drawer can show any @Composable
function.
If you want to provide a custom module that looks like the ones provided by the library:
Theming && Customization
Use drawerColors
to customize drawer theme colors.
If you want to modify the drawer colors, use DebugDrawerDefaults.colors.copy(...)
Modules list UI
Update module UI by pass Modifier