This document details the integration steps required to integrate the Device Risk Android SDK into your application or library.
- Improved the stability and reliability of the SDK.
Before getting started, check that your development environment meets the following requirements:
- Target SDK 34
- Min SDK 21
- Kotlin 1.8.10 and later
- Gradle 8.0 and later
Follow the steps below to set up the Android SDK.
- Add the Socure Maven URL to the root/project level in build.gradle:
allprojects {
repositories {
...
maven {
url "https://sdk.socure.com/"
}
}
}
- Add the SDK dependency to the app's gradle file, make sure to set the version number to the latest one:
implementation 'com.socure.devicerisk.sdk:socure-devicerisk:4.4.0'
- Specify
android:allowBackup="true"
in your app'sAndroidManifest.xml
application attributes. This will improve persistence of yoursessionToken
when your app gets reinstalled for clients who have enabled backup in their device settings.
If minify is enabled in Gradle minifyEnabled true
add the following in your proguard rules:
-keep class com.socure.idplus.** { *; }
For instructions on how to configure the SDK, see the Android SDK documentation on DevHub.