ericcornelissen / NervousFish

An app for your :iphone: to exchange public-keys in a secure manner.
GNU Lesser General Public License v3.0
2 stars 4 forks source link

Add an Eventbus to send messages #56

Closed jverbraeken closed 7 years ago

jverbraeken commented 7 years ago

What

This PR makes it possible to send messages between modules to communicate

Why

You want to send message from a module to another module, for example you'll want to notify all modules when they can start using the service locator, you want to let the UI know when a new Bluetooth device is detected and you'll want to communicate with other modules recently received public keys.

How

This PR is implemented by using Greenrobot's Eventbus, arguably the best open-source Eventbus library optimized for Android

Alternative implementation

I have considered to implement an Eventbus myself, but Greenrobot's eventbus is proven to work and has some advanced features like support for multithreading.

Notes

-