API Dependencies - AEVI-AppFlow/pos-android-sdk GitHub Wiki

The AppFlow API makes use of a few other AEVI open source libraries that can be used outside of AppFlow as well.

Android RxMessenger

RxMessenger is a library that provides an RxJava interface around communication between Android services and other components such as activities.

This library is a core part of the AppFlow implementation and is used for all communications between the various applications that form the flow.

Most of the use of this library is abstracted from the clients of the AppFlow APIs, but if you have advanced requirements for how to manage service and activity lifecycles in your application, this may be of help.

There is some direct use in the AppFlow Samples, but for a more thorough illustration of its use, have a look at the RxMessenger sample.

JSON Utils

JsonUtils is a useful companion to RxMessenger and can be used to easily serialise and deserialise models to and from JSON. JSON is an excellent language and platform agnostic way to pass data between components. AppFlow uses JSON exclusively to represent data, configurations, etc.

The main use case for AppFlow applications here is to use the Jsonable interface on any custom models, allowing them to easily be converted to and from JSON as part of AdditionalData values.