...
Option 1: Add match-sdk .aar file as library and add the local path dependency in build gradlein a directory at app level and refer from the required modules build gradle as dependency api.
Option 2: Add dependency in build gradle to get the match-sdk lib remotely. This requires match-sdk to be published to remote repo for example: maven central.
For now, Option 1 is being followed to verify the correctness of the match-sdk and its implementation. It is integrated as follows:
The matchsdk-debug.aar or matchsdk-release.aar file is added to the libs folder of the module integrated in the Android reg client app where the match-sdk validation needs to be invoked. In the client manager module, we are using it for comparing the biometric data of the applicant against the biometric data of the operators.
Adding this to client manager build.gradle as:
...
following the steps below:
Create a "matchsdk" directory at the app level if it doesn't exist already.
Place the matchsdk-debug.aar / matchsdk-release.aar file in a directory within your Android project. For example,
Now create a build.gradle file in matchsdk directory and add the below contents
Code Block configurations.maybeCreate("default") artifacts.add("default", file('matchsdk-debug.aar'))
Add this to your
settings.gradle
fileCode Block include
...
':matchsdk' project(':matchsdk').projectDir = new File('matchsdk')
Include your new module in the module you wish to use the AAR. eg, if you want to use it within your
clientmanager
module, openclientmanager's
Gradle and add the following into yourdependencies { }
sectionCode Block api project(':matchsdk')
In the client manager module, we are using it for comparing the biometric data of the applicant against the biometric data of the operators.
In the code where the match logic must be called, we need to add:
...