Add the SDK to Your App

View this page for | |

The recommended development environment is:

  • Google Android Studio® (latest available version)
  • The minimum Android SDK API level supported is 21 (Android 5.0)

However, if you want to leverage biometric authentication features, API level 23 (Android 6.0) is required.

The HID Approve SDK is delivered as an AAR file (HID_Approve_SDK.aar). It is available in the Android/Libraries folder of the delivery package.

Use the SDK in your App

  1. Copy the HID Approve SDK library to your app classpath.
  2. Add the SDK dependencies to your app classpath.

The following gradle snippet provides the list of dependencies:

Copy
dependencies {
  implementation group: 'org.slf4j', name: 'slf4j-api',version: '1.7.26'
  implementation 'com.github.tony19:logback-android-classic:1.1.1-2'
  implementation group: 'net.minidev', name: 'json-smart', version: '2.3'
  implementation group: 'net.sourceforge.jregex', name: 'jregex', version: '1.2_01'
  implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.9.1'
  implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.7.9'
  implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-jaxb-annotations', version: '2.7.9'
  implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.7.9'
  implementation('com.nimbusds:oauth2-oidc-sdk:5.38') {
         exclude group: 'net.minidev'
    }
  implementation('com.nimbusds:nimbus-jose-jwt:5.1') {
         exclude group: 'net.minidev'
  }
  implementation group: 'com.nimbusds', name: 'lang-tag', version: '1.4.3'
  implementation "androidx.appcompat:appcompat:1.2.0"
  implementation "androidx.appcompat:appcompat-resources:1.2.0"
  implementation "com.google.firebase:firebase-messaging:21.0.0"
  implementation "androidx.biometric:biometric:1.1.0"

  // HID Approve SDK
  implementation fileTree(include: ['*.aar'], dir: 'libs’)
}

Add Functions to your App