Skip Navigation

Integrate the
BlackBerry Spark SDK
into your
Android
app

Use
Gradle
to integrate
BlackBerry Spark SDK
into your
Android Studio
project.
  1. In your root-level (project-level)
    Gradle
    file (
    build.gradle
    ), add a rule to include the
    BlackBerry
    Maven repository.
    allprojects { repositories { google() jcenter() maven { url "https://software.download.blackberry.com/repository/maven/" } } }
  2. In the app-level module of your
    Gradle
    file (usually
    app/build.gradle
    ), declare a dependency on the
    BlackBerry Spark SDK
    for
    Android
    .
    # BlackBerry Spark SDK implementation 'com.blackberry.security:appsecure:0.1+'
  3. Sync your app to ensure that all dependencies are downloaded.