NOTE: This is alpha software. Breaking changes are likely to be made as the interfaces are refined.
babble-android allows developers to easily integrate the Babble consensus engine into their Android apps.
A complete API reference can be found here
A tutorial can be found here
For the impatient, add the following to your app's
and start coding!
At the core of the library is the BabbleNode class. This is a wrapper around our golang implementation of Babble. However we don't recommend you use this class directly (not initially anyway). We've included a number of ancillary classes in the library, which can be used as scaffolding so that you can focus on building your app logic. These components can easily be swapped out with your own custom implementations later on.
The scaffolding architecture is shown below.
There are five classes which you will need to implement, these will either extend classes or implement interfaces from the library. For a comprehensive tutorial on writing these classes see here.
The library can then be built, either by calling the relevant gradle commands from the command line or from within Android Studio.