Installation

Adding the SpruceKit Mobile Kotlin SDK to an Android Project

Prerequisites

Ensure you have the following tools installed:

  • Android Studio (latest version recommended)

  • Java 8 or higher

  • Gradle (included with Android Studio)

Adding the SDK to your project

Follow these steps to add the SpruceID Kotlin SDK to your Android project:

Update build.gradle File

  1. Add the Maven Central repository to your project-level build.gradle file:

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}
  1. Add the SpruceID dependency to your app-level build.gradle file:

dependencies {
    implementation "com.spruceid.mobile.sdk:mobilesdk:<latest-version>"
}

Replace <latest-version> with the latest version of the SDK available on Maven Central.

After updating the build.gradle file, sync the Gradle project to download the dependencies.

Last updated

Was this helpful?