Download or clone the Github repository for PingOne Verify SDK for Android. You’ll find the *.aar and *.jar dependencies required for PingOne Verify in the SDK directory.

Make the following changes to your build.gradle files in order to add the PingOne Verify component to your application:

  1. Open the top (project) level build.gradle file and add these lines to the repositories section under allProjects:
allprojects {
    repositories {
        dirs 'libs'
        ...
    }
}
  1. Create a libs folder if it doesn’t exist under your module, and copy the downloaded *.aar and *.jar dependencies.

  2. Add the following to your module level build.gradle file to include the dependencies in your module:

dependencies {
    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
    ...
}
  1. Because these components are loaded locally, you will also need to include the SDK’s dependencies in the configuration in order to be able to compile and run it.

    a. Add these UI library dependencies:

     <pre><code class="hljs gradle"><span class="hljs-keyword">dependencies</span> {
     implementation <span class="hljs-string">'io.fotoapparat.fotoapparat:library:2.7.0'</span>
     implementation <span class="hljs-string">'com.shawnlin:number-picker:2.4.9'</span>
     implementation <span class="hljs-string">'com.theartofdev.edmodo:android-image-cropper:2.8.0'</span>
     implementation <span class="hljs-string">'com.google.android.gms:play-services-vision:20.0.0'</span>
     implementation <span class="hljs-string">'androidx.constraintlayout:constraintlayout:2.0.4'</span>
     implementation <span class="hljs-string">'androidx.appcompat:appcompat:1.2.0'</span>
     implementation <span class="hljs-string">'androidx.constraintlayout:constraintlayout:2.0.4'</span>
     implementation <span class="hljs-string">'com.google.firebase:firebase-ml-vision:24.0.3'</span>
     implementation ‘com.google.firebase:firebase-ml-vision-face-model:<span class="hljs-number">20.0</span>.<span class="hljs-number">1</span>’
     implementation ‘androidx.annotation:annotation:<span class="hljs-number">1.1</span>.<span class="hljs-number">0</span>’
     implementation ‘androidx.exifinterface:exifinterface:<span class="hljs-number">1.3</span>.<span class="hljs-number">2</span>’
     implementation ‘org.jetbrains.kotlin:kotlin-stdlib:<span class="hljs-number">1.4</span>.<span class="hljs-number">20</span>’
     }</code></pre>
    

    b. Add these PingOne Verify dependencies:

     <pre><code class="hljs gradle"><span class="hljs-keyword">dependencies</span> {
     implementation <span class="hljs-string">'androidx.security:security-crypto:1.1.0-alpha03'</span>
     implementation <span class="hljs-string">'androidx.security:security-identity-credential:1.0.0-alpha01'</span>
     implementation <span class="hljs-string">'androidx.biometric:biometric:1.1.0'</span>
     implementation <span class="hljs-string">'androidx.appcompat:appcompat:1.2.0'</span>
     implementation <span class="hljs-string">'com.google.firebase:firebase-messaging:21.0.1'</span>
     implementation <span class="hljs-string">'com.squareup.retrofit2:converter-moshi:2.7.2'</span>
     implementation <span class="hljs-string">'com.squareup.retrofit2:retrofit:2.7.2'</span>
     implementation <span class="hljs-string">'com.squareup.moshi:moshi:1.9.3'</span>
     implementation <span class="hljs-string">'org.bitbucket.b_c:jose4j:0.7.4'</span>
     implementation <span class="hljs-string">'org.slf4j:slf4j-api:1.7.30'</span>
     implementation <span class="hljs-string">'com.squareup.okio:okio:1.16.0'</span>
     implementation <span class="hljs-string">'com.squareup.okhttp3:okhttp:3.14.7'</span>
     }</code></pre>