# README
BitBox Android
make build-android
builds android.aar, which can be imported as a module into an Android project
(Android Studio).
# Functions
AuthResult triggers an auth feedback notification (auth-ok/auth-err) towards the frontend, depending on the input value.
BackendCall bridges GET/POST calls (serverless, directly calling the backend handlers).
CancelAuth triggers an auth canceled notification towards the frontend.
HandleURI wraps bridgecommon.HandleURI.
ManualReconnect wraps bridgecommon.ManualReconnect.
Serve serves the BitBoxApp API for use in a mobile client.
Shutdown is cleaning up after Serve.
TriggerAuth triggers an auth required notification towards the frontend.
UsingMobileDataChanged exposes `bridgecommon.UsingMobileDataChanged` to Java/Kotlin.
# Interfaces
GoAPIInterface is used to pas api (GET/POST) responses and websocket push notifications to Android/iOS.
GoDeviceInfoInterface adapts usb.DeviceInfo's Open method to return the adapted ReadWriteCloser.
GoEnvironmentInterface adapts backend.Environment to return only one DeviceInfo instead of a slice of them, as a slice of interfaces does not seem to be supported by gomobile yet.
GoReadWriteCloserInterface adapts io.ReadWriteCloser's Read method to return the byte read byte slice instead of the .Read([]byte) pattern.