getditto / DittoAndroidTools

Diagnostic and Debugging Tools for Ditto Android SDK
MIT License
6 stars 1 forks source link

Tools Entry Point #111

Closed rajramsaroop closed 3 months ago

rajramsaroop commented 3 months ago

Fixes #24

Provides a Composable interface that clients can implement within their app to quickly get all of the tools. Only need to import one dependency live.ditto:dittotoolsviewer:TOOLS_VERSION and then include the below Composable providing a Ditto instance.

DittoToolsViewer(
     ditto = <your ditto instance>
)

Optional parameters include modifier if the layout needs to be adjust on client integrations. onExitTools lambda function that will be executed when the "Exit Tools" button is tapped. Can use this to do any back navigation or dismiss the tools UI on the client integration.

All other configuration steps for tools still apply. For example if you want Data Exporter to work, you still need to configure a log location (as described in the current readme).

UI was reused from tools demo app.

Sample integrations

Video demo of it running in the chat app:

chat_tools_entry_demo.webm

zmarkan commented 3 months ago

Picking this up now

zmarkan commented 3 months ago

"new tools who dis" 👏 🤣