Customize Dependencies

Control the modules added to your Android Project
The Leia Media SDK allows customizing the modules you want to add to your project. You can get access to the entire SDK using the dependency for the bundled SDK.
This is the most recommended way to use the SDK, since it will always include the latest modules while also maintaining compatibility among them.
dependencies {
implementation "com.leiainc:androidmediasdk:0.0.2"
Optionally, you might want control over the modules added to your Android application, in order to optimize apk sizes.
The Android SDK provides standalone modules which you could include in your app, depending upon the use case of your app. The individual modules are packaged based on the different steps of the decoding pipeline.

Leia SDK Module Summary

Latest Version
Available APIs

Core Module

The core SDK provides the QuadView and the LeiaDisplayManager. If your use case is to only display Quad images, display Quad videos and control the backlight, add the core SDK to your app's build.gradle file.
dependencies {
implementation 'com.leiainc:androidsdk-core:1.7.22'

PhotoFormat Module

The PhotoFormat module includes the MultiviewImage and the MultiviewImageDecoder. If your work primarily involves decoding different Leia formats to the MultiviewImage, add this module to your app's build.gradle file
dependencies {
implementation 'com.leiainc:androidsdk-photoformat:5.0.11'

SBS Module

This module packages the Multiview Synthesizer which can be used for a variety of operations like View Synthesis, retrieving Quad Bitmaps and Disparity Estimation.
To include this module, add this dependency to your app's build.gradle file
dependencies {
implementation 'com.leiainc:androidsdk-sbs:1.8.24'

SBS Video Module

The module packages the SbsVideoSurfaceRender which enables support for SBS videos in your Android project.
Add the following dependency to your app's build.gradle file to support playing SBS videos.
dependencies {
implementation 'com.leiainc:androidsdk-sbs-video:0.16.3'