socure-inc / socure-sigmadevice-sdk-android

Android library for the Socure Device Risk
1 stars 1 forks source link
android android-app android-library androidsdk identity risk socure

Device Risk Android SDK Quick Start Guide

This document details the integration steps required to integrate the Device Risk Android SDK into your application or library.

What's new in version 4.3.1

Minimum requirements

Before getting started, check that your development environment meets the following requirements:

Installation

Follow the steps below to set up the Android SDK.

  1. Add the Socure Maven URL to the root/project level in build.gradle:
allprojects {
   repositories {
       ...
       maven {
           url "https://sdk.socure.com/"
       }
   }
}
  1. 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.3.1'
  1. Specify android:allowBackup="true" in your app's AndroidManifest.xml application attributes. This will improve persistence of your sessionToken when your app gets reinstalled for clients who have enabled backup in their device settings.

Proguard Rules

If minify is enabled in Gradle minifyEnabled true add the following in your proguard rules:

-keep class com.socure.idplus.** { *; }

Configuration and usage

For instructions on how to configure the SDK, see the Android SDK documentation on DevHub.