4. In your module (app-level) Gradle file (usually app/build.gradle), add the Smile ID UI and SDK dependancies
The latest version for smile id sdks can be found here
implementation 'com.smileidentity:smile-id-ui:<latest_version>'
implementation 'com.smileidentity:smile-id-sdk:<latest_version>'
implementation 'com.smileidentity:netjava:<latest_version>'// currently (0.0.8)
NB: If you have already integrated with the Android SDK only Remove the reference to the Smile ID dependency as the Smile UI will automatically pull the correct version in. and also remember to check the latest versionhere
Android Manifest
Permissions
Add the following permissions if they do not exist already
If using Proguard, then please add the following proguard rule to your rules file (usually called proguard-rules.pro)
-keep class com.smileidentity.** { *; }
Smile Config
Place the file you downloaded from the portal as specified here in the android/app folder
That's it android is ready!
Troubleshooting
There are issues that could come up during setup , you can follow the recommended solutions for work arounds\
Execution failed for task ':app:mergeDebugJavaResource'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade More than one file was found with OS independent path 'META-INF/DEPENDENCIES'.
Solution: add this to your module level build.gradle\
D8: Cannot fit requested classes in a single dex file
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.
Solution: enable android dex as documented here by doing the below