SDK Configuration using only Iris technology
Android
In order to use MobbID Android SDK in your application only for the iris technology you must follow these steps:
- Include the sdk libraries by copying it to your application’s libs folder and add this line (change it to the current version) to your
build.gradle
file (dependencies section):
dependencies {
...
implementation(name:'MobbIDSDK-Core-Android-5.0.0', ext:'aar')
implementation(name:'MobbIDSDK-Iris-Android-5.0.0', ext:'aar')
}
- Add a flatDir repository to your
build.gradle
file so that gradle can find the.aar
files in yourlibs
folder:
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
- Add third party dependencies and package exclusions to your
build.gradle
file:
dependencies {
...
// MobbID SDK 3rd party libraries
// CORE
implementation 'com.google.code.gson:gson:2.7'
implementation 'com.google.protobuf:protobuf-java:2.5.0'
// IRIS
implementation(name:"camera-android-1.3.6", ext:'aar')
implementation(name:'opencv-android-3.2.0', ext:'aar')
}
iOS
The different MobbID biometric options are stand-alone technologies. In order to use only the MobbID Iris technology you will need to follow the same steps detailed under the General Configuration section.
Instead of embedding all the frameworks in this case you will be needing just the following ones:
MobbIDSDK_Core.framework
MobbIDSDK_Iris.framework
Likewise, the Run Script build phase only need to run those scripts belonging to the embedded frameworks:
sh "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/MobbIDSDK_Core.framework/remove_simulator_archs.sh"
sh "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/MobbIDSDK_Iris.framework/remove_simulator_archs.sh"
Finally, the access to the device microphone is not required for Iris technology thus it should not be specified unless another feature of your app requires it.