flipper-plugin-eventbus-logger
v1.0.1
Published
An inspector to visualize the events emitting from your mobile application using eventbus. It works with the mobile application plugin that sends event data.
Downloads
6
Maintainers
Readme
Introduction
![Product Name Screen Shot][product-screenshot]
EventBus Logger flipper is an event inspector to visualize the GreenBot EventBus' event traffic from a mobile app. The mobile app plugin acts as an interceptor for the events, collects each event data and sends to the Flipper desktop plugin. Any additional data can be send but plugin supports timestamp, eventType, stacktrace and eventBody out of the box.
This Plugin is especially helpful during the debugging phase to track-down the events and their removal along the course of app feature usage.
Built With
Getting Started
In order to use the EventBus logger, follow these steps.
Prerequisites
You'll need to integrate the Flipper in your app. Follow the official instructions here.
Installation
Application setup
- Clone the repo
git clone https://github.com/SaqibJDev/EventBusLogger-Flipper.git
- Copy the Android plugin in your app.
- Register the Plugin with flipper client at app startup. (Please see the sample app for a reference)
- Adapt your eventbus base class to add EventBusLoggerFlipperPlugin as an interceptor.
- Install the app on the device or an emulator
Flipper setup
- Open Flipper App
- Open Plugin Manager from left top
- Select install plugins
- Search for
eventbus
- Install eventbus-logger
- Reload Flipper
Usage
Once the setup is done and app is installed, FLipper will recognize your app supporting EventBusLogger. It will be shown in the list of active plugins with a bus icon. Select the plugin to visualize the event traffic. In order to see the details, simply click on any event row.
The plugin supports the following details:
- Event Class name
- Event type (Post Event, Post Sticky, Remove Sticky)
- Timestamp
- Details
- Key Value map data (if sent via application plugin)
- Json Event Body (if class has data members)
- Stacktrace to trace down the event execution
Roadmap
See the open issues for a list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Hafiz Saqib Javed - @Saqib_J - [email protected]
Project Link: https://github.com/SaqibJDev/EventBusLogger-Flipper