- Latest stable Android Studio
- Latest Gradle plugin
- Latest NDK
Get the client token and configuration file
Together with the token, you will receive a configuration file
config.json which contains the required SDK resources defined by your token. Read more about this in Repack your SDK archive (minify SDK size) section.
Before building your project, place your client token inside the file:
Client token usage example
Get the Banuba SDK archive
With the client token, you will also receive the Banuba SDK archive for Android which contains:
- Banuba Effect Player (compiled Android library project with .aar extension),
- Banuba SDK (compiled Android library project with .aar extension),
- Effect examples located under
Repack your SDK archive (minify SDK size)
The SDK release archive contains all SDK resources by default. They may consume more disk space in the ready build.
To reduce the SDK size please use
sdk_repacking.py script provided with the SDK archive.
Please refer to SDK repacking readme in your SDK archive for more info and usage example.
Build your project with Banuba SDK
libsdirectory in your project and add
- Open build.gradle (Module: app) and add Banuba SDK dependencies for your project
BanubaClientToken.javato your project.
Also check our Android Demo app to use some code snippets
Now you can run your project with BanubaSdk on your device
Minify app size
After integration of Banuba SDK libraries
banuba_sdk.aar your app size may increase significantly. It may happen if you use an 'android.tools' version earlier than
classpath com.android.tools.build:gradle:3.5.0. To minify your app size, update 'android.tools' to a newer version, e.g. classpath
com.android.tools.build:gradle:4.0.1. Then, rebuild your application and check that "strip" phase exists in the build log (
> Task :app:strip...).