Build Demo Apps

Requirements

  • Latest stable Android Studio
  • Latest Gradle plugin
  • Latest NDK

Get the client token

To start working with the Banuba SDK Demo project for Android, you need to have the client token. To receive the trial client token please fill in our form on banuba.com website, or contact us via info@banuba.com.

note

Before building the Android Demo project, place your client token inside appropriate file in the following location(s):

Banuba SDK Demo app: src/app/src/main/java/com/banuba/sdk/demo/BanubaClientToken.java

Beautification example app: src/examples/beautification/src/main/java/com/banuba/examples/beautification/BanubaClientToken.java

Client token usage example

BanubaClientToken.java
final class BanubaClientToken {
public static final String KEY = "YOUR_TOKEN_HERE";
private BanubaClientToken() {
}
}

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),
  • Android project folder (src) which contains two demo apps, located in src/app and src/examples/beautification respectivly,
  • Effect examples located under src/app/src/main/img/bnb-resources/effects.

Build the Banuba SDK Demo app and Beautification example app

  1. Import the Android project under src folder in Android Studio.
  1. Import banuba_effect_player-release.aar: "File โ†’ New โ†’ New Module... โ†’ Import .JAR/.AAR Package"
  1. Open src/banuba_sdk/build.gradle. Replace api project(":banuba_effect_player") with the name of module you've imported within step 2. By default it's api project(":banuba_effect_player-release")
  1. Resync Gradle project.

  2. Select Build Variant from the left side menu in Android Studio.

  • Debug build variant allows to properly debug and profile app during its execution.
  • Release build variant allows to test release variant of application (faster performance).
  1. Select the build target in the top:
Last updated on