Skip to content

salute-developers/native-sdk

Repository files navigation

Native-App SDK of smart devices

SmartApp — is an app that can be launched on smart devices. SmartApp consists of front-end and back-end part. Front-end part is represented by Android App running on a device, using native libraries we provide. Back-end part can be developed using the SmartMarket Studio tools. This repository contains SDK that enables use of Salut virtual assistants in your app, enriching UX for your users. You can use Computer Vision libraries as well to get gestures and visual information recognition for you app.

Libraries

  • AppState is a small library that transmits current state of the app from back-end part of smartapp to the front-end. Data is transmitted via JSON message. The app state is pulled from native APK and transmitted to back-end with every user’s voice request.
  • EnvironmentInfo is a small library that provides info about environment params (version, device type, child mode status and etc).
  • Messaging is a library that serves as messaging interface between native app and smartapp back-end. The library enables sending events (eg user’s actions) to smartapp back-end. It also allows native app receive messages from back-end (eg user’s voice requests).
  • mic-camera-state is a library that provides current state of device camera and microphone (microphone can be disabled and camera can be covered).
  • cv и camera libraries helps recognize user’s gestures and pose using devices camera. Works only on devices with built-in cameras.
  • PayLib is a small library that provides SmartPay service functionality. The library opens payment dialog for invoice id and returns the PayResultCode. For more details see native app processing.
  • Additional libraries: asserts, camera, logger and binderhelper.

Dependency info

In order to connect an SDK (All libs except for CV lib):

implementation "ru.sberdevices.smartapp:sdk:1.2.0"

If you want to use the power of CV features you shold also add:

implementation "ru.sberdevices.smartapp:cv:1.1.1"

Usage samples

For libs usage samples see our demo.

Documentation

KDocs pages describing libraries

Documentation regarding development of Native Apps is available at developer’s portal (in Russian).

Support

Please send your feedback and feature requests to our issues board.